Skip to content

Toolchanger Commands

These commands are available when using AFC with a toolchanger setup and [AFC_Toolchanger <name>] has been defined in the configuration.


[AFC_SELECT_TOOL]

Select's tool based off passed in extruder name

Usage

AFC_SELECT_TOOL TOOL=<extruder_name>

Example
AFC_SELECT_TOOL TOOL=extruder1

[AFC_UNSELECT_TOOL]

Unselects current tool loaded in shuttle by calling klipper-toolchanger UNSELECT_TOOL

Usage

AFC_UNSELECT_TOOL

Example
AFC_UNSELECT_TOOL

[AFC_SET_TOOLHEAD_LED]

Macro to set nozzle led in toolhead based on lane/tool mapping. Led config name needs to be set to AFC_extruder led_name variable. Status led in toolhead will not be affected if status_led_idx is set in AFC_extruder config. If nozzle_led_idx is set in AFC_extruder configuration then just those leds will be turned on. If nozzle_led_idx is not provided then all LEDs not in defined in status_led_idx will be turned on.

MAP - is the mapped toolhead to set. ex(T0,T1,etc)

TURN_ON - set to 1 to turn on leds, set to 0 to turn off leds. If not supplied, defaults to 1

Usage

AFC_SET_TOOLHEAD_LED MAP=<T(n) mapping> TURN_ON=<0/1>

Example
AFC_SET_TOOLHEAD_LED MAP=T2 TURN_ON=1