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_GROUPCURRENT_LOADED_GROUPCurrent Group: T0OAMSM_FOLLOWERENABLE (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=1OAMSM_UNLOAD_FILAMENTUNLOAD_FILAMENTUnloading currently loaded spoolOAMSM_LOAD_FILAMENTGROUP (required): Name of the filament group to load from.OAMSM_LOAD_FILAMENT GROUP=T0Loaded spool from T0This 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_SPOOLDescription: 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_SPOOLDescription: Unload the currently loaded spool of filament.
Usage: OAMS_UNLOAD_SPOOL
Parameters: None.
OAMS_FOLLOWERDescription: 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_LENGTHDescription: 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_HESDescription: 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_SETDescription: 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.