Skip to main content

Pause Cancel Print Custom Position

  • You need to add [include mainsail.cfg] or [include fluidd.cfg] in printer.cfg, otherwise it will not take effect
  • Add the macro below to printer.cfg
Note
  • The gcode: in the configuration file must be retained and cannot be deleted

Chinese Translation

[gcode_macro _CLIENT_VARIABLE]
### Custom settings related to the pause macro
variable_use_custom_pos : False ; Whether to use custom docking coordinates x, y [True/False]
variable_custom_park_x : 0.0 ; X position when pausing printing
variable_custom_park_y : 0.0 ; Y position when pausing printing
variable_custom_park_dz : 2.0 ; Distance (in millimeters) for Z-axis lift when pausing printing

### Custom settings related to the cancel pause macro
variable_park_at_cancel : False ; Whether to allow moving the toolhead to the parking position when executing the cancel print macro [True/False]
variable_park_at_cancel_x : None ; X position after print cancellation
variable_park_at_cancel_y : None ; Y position after print cancellation

### Actions for the extruder when pausing and canceling
variable_retract : 1.0 ; Extruder retraction length (mm) when pausing printing
variable_cancel_retract : 5.0 ; Extruder retraction length (mm) when cancelling printing
variable_speed_retract : 35.0 ; Retraction speed of the extruder mm/s
variable_unretract : 1.0 ; Extrusion length when resuming printing
variable_speed_unretract : 35.0 ; Extrusion speed of the extruder mm/s
variable_speed_hop : 15.0 ; Z-axis movement speed mm/s
variable_speed_move : 100.0 ; Movement speed mm/s

### Configuration for disabling motors and heating
### One day is 86400 seconds
variable_idle_timeout : 0 ; Seconds until idle timeout starts. Setting to 0 means no value will be set or restored

# !!!Note that if you set use_fw_retract: True, [firmware_retraction] must be defined in printer.cfg!!!
variable_use_fw_retract : False ; Whether to use firmware retraction instead of the manual version [True/False]
variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel execution of RESUME when no filament is detected.
# Specify the runout sensor's configuration name, for example "filament_switch_sensor runout". Reminder: use the same as in your printer.cfg
# !!!Custom macros, please use with caution and refer to the corresponding macro section. These macros are for simple operations such as setting a status LED. Please ensure your macro does not interfere with the basic macro functionality. Only single line commands are supported, please create a macro if you need multiple commands.
variable_user_pause_macro : "" ; All content within "" will be executed after the klipper base pause (PAUSE_BASE) function
variable_user_resume_macro: "" ; All content within "" will be executed before the klipper base resume (RESUME_BASE) function
variable_user_cancel_macro: "" ; All content within "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
gcode:

English (Original)

[gcode_macro _CLIENT_VARIABLE]
variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
variable_custom_park_x : 0.0 ; custom x position; value must be within your defined min and max of X
variable_custom_park_y : 0.0 ; custom y position; value must be within your defined min and max of Y
variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
variable_retract : 1.0 ; the value to retract while PAUSE
variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
variable_speed_retract : 35.0 ; retract speed in mm/s
variable_unretract : 1.0 ; the value to unretract while RESUME
variable_speed_unretract : 35.0 ; unretract speed in mm/s
variable_speed_hop : 15.0 ; z move speed in mm/s
variable_speed_move : 100.0 ; move speed in mm/s
variable_park_at_cancel : False ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
variable_park_at_cancel_x : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
variable_park_at_cancel_y : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
# !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!!
variable_use_fw_retract : False ; use fw_retraction instead of the manual version [True/False]
variable_idle_timeout : 0 ; time in sec until idle_timeout kicks in. Value 0 means that no value will be set or restored
variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel the execution of RESUME in case no filament is detected.
# Specify the config name of the runout sensor e.g "filament_switch_sensor runout". Hint use the same as in your printer.cfg
# !!! Custom macros, please use with care and review the section of the corresponding macro.
# These macros are for simple operations like setting a status LED. Please make sure your macro does not interfere with the basic macro functions.
# Only single line commands are supported, please create a macro if you need more than one command.
variable_user_pause_macro : "" ; Everything inside the "" will be executed after the klipper base pause (PAUSE_BASE) function
variable_user_resume_macro: "" ; Everything inside the "" will be executed before the klipper base resume (RESUME_BASE) function
variable_user_cancel_macro: "" ; Everything inside the "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
gcode:
Loading...
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
Loading...