Buffer Commands
Buffer Related Commands¶
These commands are used to manage the buffer and its properties.
[QUERY_BUFFER]
Reports the current state of the buffer sensor and, if applicable, the rotation distance of the current AFC stepper motor.
Behavior
- If the
turtleneck
feature is enabled and a tool is loaded, the rotation distance of the current AFC stepper motor is reported, along with the current state of the buffer sensor. - If the
turtleneck
feature is not enabled, only the buffer state is reported. - Both the buffer state and, if applicable, the stepper motor's rotation distance are sent back as G-code responses.
Usage
QUERY_BUFFER BUFFER=<buffer_name>
[SET_BUFFER_MULTIPLIER]
This function handles the adjustment of the buffer multipliers for the turtleneck buffer. It retrieves the multiplier type ('HIGH' or 'LOW') and the factor to be applied. The function ensures that the factor is valid and updates the corresponding multiplier.
Usage
SET_BUFFER_MULTIPLIER BUFFER=<buffer_name> MULTIPLIER=<HIGH/LOW> FACTOR=<factor>
[SET_ROTATION_FACTOR]
Adjusts the rotation distance of the current AFC stepper motor by applying a specified factor. If no factor is provided, it defaults to 1.0, which resets the rotation distance to the base value.
Behavior:
- The
FACTOR
must be greater than 0. - If the buffer is enabled and active, and a valid factor is provided, the function adjusts the rotation distance for the current AFC stepper.
- If
FACTOR
is 1.0, the rotation distance is reset to the base value. - If
FACTOR
is a valid non-zero number, the rotation distance is updated by the provided factor. - If
FACTOR
is 0 or AFC is not enabled, an appropriate message is sent back through the G-code interface.
Usage
SET_ROTATION_FACTOR BUFFER=<buffer_name> FACTOR=<factor>
[ENABLE_BUFFER]
Manually enables the buffer. This command is useful for debugging and testing purposes.
Usage
ENABLE_BUFFER
[DISABLE_BUFFER]