Skip to content

Delayed GCode

Dynamic Macros supports a feature similar to delayed_gcode.

Configuration

To configure a DynamicMacro to be run repeatedly/after a delay, update your macro as follows:

1
2
3
[gcode_macro test]
gcode:
    RESPOND MSG="test"
1
2
3
4
5
[gcode_macro test]
initial_duration: 2 # Wait two seconds after Klipper starts to run this, and two seconds between repeats (if enabled)
repeat: true # true means repeat, false means don't repeat
gcode:
    RESPOND MSG="test"

Parameters

initial_duration specifies the delay after Klipper starts that the macro will be run, and the duration between repeats, if repeat is true.

repeat specifies whether or not to repeat the macro.

Comments