Skip to content

Buffer 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>

Example
QUERY_BUFFER BUFFER=TN

[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>

Example
SET_BUFFER_MULTIPLIER BUFFER=TN MULTIPLIER=HIGH FACTOR=1.2

[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>

Example
SET_ROTATION_FACTOR BUFFER=TN FACTOR=1.2

[SET_BUFFER_VELOCITY]

Allows users to tweak buffer velocity setting while printing. This setting is not saved in configuration. Please update your configuration file once you find a velocity that works for your setup.

Behavior:

  • Updates the value that the respooler use for forward assist during printing.
  • Setting value to zero disables forward assist during printing.
  • Velocity is not saved to configuration file, needs to be manually updated.
Usage

SET_BUFFER_VELOCITY BUFFER=<buffer_name> VELOCITY=<value>

Example
SET_BUFFER_VELOCITY BUFFER=TN2 VELOCITY=100

[ENABLE_BUFFER]

Manually enables the buffer. This command is useful for debugging and testing purposes.

Usage

ENABLE_BUFFER


[DISABLE_BUFFER]

Manually disables the buffer. This command is useful for debugging and testing purposes.

Usage

DISABLE_BUFFER