The following G-code commands are registered by OAMSManager
(oams_manager.py) and can be executed from the printer's terminal or added to GCODE macros. The OAMSM_ GCODE commands are organized for operations that concern all AMSs (in case of having more than one), while individual AMS commands are prefixed with OAMS_ and listed under their own subsection below.
OAMSM_CURRENT_LOADED_GROUP
CURRENT_LOADED_GROUP
Current Group: T0
OAMSM_FOLLOWER
ENABLE
(required): 1
to enable, 0
to disable.DIRECTION
(required): 1
for forward (push filament towards the toolhead extruder), 0
for reverse (pull filament away from the toolhead extruder)FOLLOWER ENABLE=1 DIRECTION=1
OAMSM_UNLOAD_FILAMENT
UNLOAD_FILAMENT
Unloading currently loaded spool
OAMSM_LOAD_FILAMENT
GROUP
(required): Name of the filament group to load from.OAMSM_LOAD_FILAMENT GROUP=T0
Loaded spool from T0
This document provides a list of all available G-code commands for the OpenAMS (openams.py) (these are for addressing individual AMSs), along with brief descriptions.
ALL commands must contain OAMS=<ams_idx> as the parameter to address the correct AMS.
OAMS_LOAD_SPOOL
Description: Load a specified spool of filament into the system.
Usage: OAMS_LOAD_SPOOL SPOOL=<index>
Parameters:
SPOOL
: Specifies the spool index (0 to 3).OAMS_UNLOAD_SPOOL
Description: Unload the currently loaded spool of filament.
Usage: OAMS_UNLOAD_SPOOL
Parameters: None.
OAMS_FOLLOWER
Description: Enable or disable the follower mechanism and set its direction.
Usage: OAMS_FOLLOWER ENABLE=<0|1> DIRECTION=<0|1>
Parameters:
ENABLE
: Enables (1) or disables (0) the follower.DIRECTION
: Sets the direction (0 for reverse, 1 for forward).OAMS_CALIBRATE_PTFE_LENGTH
Description: Calibrate the length of the PTFE tube for accurate filament measurements.
Usage: OAMS_CALIBRATE_PTFE_LENGTH SPOOL=<index>
Parameters:
SPOOL
: The spool index (0 to 3) for which the calibration should be done.OAMS_CALIBRATE_HUB_HES
Description: Calibrate the range of the hub Hall Effect Sensor (HES) for a specific spool.
Usage: OAMS_CALIBRATE_HUB_HES SPOOL=<index>
Parameters:
SPOOL
: Specifies the spool index (0 to 3).OAMS_PID_SET
Description: Manually set the PID values for filament tracking.
Usage: OAMS_PID_SET P=<float> I=<float> D=<float> TARGET=<float>
Parameters:
P
: Proportional gain value.I
: Integral gain value.D
: Derivative gain value.TARGET
: Target flowrate or performance threshold.