Skip to content

Spool Commands

These commands are used to manage the spool and its properties. This allows for tracking filament usage if you are not using a spool tracking system such as Spoolman.


[SET_MAP]

This function handles changing the GCODE tool change command for a Lane.

Usage

SET_MAP LANE=<lane> MAP=<cmd>

Example
SET_MAP LANE=lane1 MAP=T1

[SET_COLOR]

This function handles changing the color of a specified lane. It retrieves the lane specified by the 'LANE' parameter and sets its color to the value provided by the 'COLOR' parameter. The 'COLOR' parameter should be a hex color code.

Usage

SET_COLOR LANE=<lane> COLOR=<color>

Example
SET_COLOR LANE=lane1 COLOR=FF0000

[SET_WEIGHT]

This function handles changing the weight remaining of a spool loaded in a specified lane. It retrieves the lane specified by the 'LANE' parameter and sets its weight to the value provided by the 'WEIGHT' parameter.

Usage

SET_WEIGHT LANE=<lane> WEIGHT=<weight>

Example
SET_WEIGHT LANE=lane1 WEIGHT=850

[SET_MATERIAL]

This function handles changing the material of a specified lane. It retrieves the lane specified by the 'LANE' parameter and sets its material to the value provided by the 'MATERIAL' parameter.

Usage

SET_MATERIAL LANE=<lane> MATERIAL=<material>

Example
SET_MATERIAL LANE=lane1 MATERIAL=ABS

[SET_SPOOL_ID]

This function handles setting the spool ID for a specified lane. It retrieves the lane specified by the 'LANE' parameter and updates its spool ID, material, color, and weight based on the information retrieved from the Spoolman API.

Usage

SET_SPOOL_ID LANE=<lane> SPOOL_ID=<spool_id>

Example
SET_SPOOL_ID LANE=lane1 SPOOL_ID=12345

[SET_RUNOUT]

This function handles setting the runout lane (infinite spool) for a specified lane. It retrieves the lane specified by the 'LANE' parameter and updates it's the lane to use if filament runs out by un-triggering prep sensor.

Usage

SET_RUNOUT LANE=<lane> RUNOUT=<lane>

Example
SET_RUNOUT LANE=lane1 RUNOUT=lane4

[RESET_AFC_MAPPING]

This commands resets all tool lane mapping to the order that is setup in configuration. Useful to put in your PRINT_END macro to reset mapping

Usage

RESET_AFC_MAPPING

Example
RESET_AFC_MAPPING