暂停与取消打印自定义位置
本页面用于配置 Mainsail / Fluidd 客户端宏中的 _CLIENT_VARIABLE,控制暂停、恢复、取消打印时的停靠位置、回抽长度和移动速度。
使用前提
printer.cfg中需要包含[include mainsail.cfg]或[include fluidd.cfg]。- 将下方宏添加到
printer.cfg或独立宏文件中。 - 修改后保存并重启 Klipper。
须知
False表示未启用,True表示启用。- 配置文件末尾的
gcode:必须保留,不能删除。 - 自定义停靠坐标必须在机器的 X/Y 软限位范围内。
中文翻译
printer.cfg
[gcode_macro _CLIENT_VARIABLE]
### 暂停宏相关自定义设置
variable_use_custom_pos : False ; 是否使用 X/Y 自定义停靠坐标 [True/False]
variable_custom_park_x : 0.0 ; 暂停打印时的 X 位置
variable_custom_park_y : 0.0 ; 暂停打印时的 Y 位置
variable_custom_park_dz : 2.0 ; 暂停打印时 Z 轴抬升距离,单位 mm
### 取消打印相关自定义设置
variable_park_at_cancel : False ; 取消打印时是否移动到停靠位置 [True/False]
variable_park_at_cancel_x : None ; 取消打印后的 X 位置
variable_park_at_cancel_y : None ; 取消打印后的 Y 位置
### 暂停、恢复与取消时的挤出机动作
variable_retract : 1.0 ; 暂停打印时回抽长度,单位 mm
variable_cancel_retract : 5.0 ; 取消打印时回抽长度,单位 mm
variable_speed_retract : 35.0 ; 回抽速度,单位 mm/s
variable_unretract : 1.0 ; 恢复打印时挤出长度,单位 mm
variable_speed_unretract : 35.0 ; 恢复挤出速度,单位 mm/s
variable_speed_hop : 15.0 ; Z 轴移动速度,单位 mm/s
variable_speed_move : 100.0 ; XY 移动速度,单位 mm/s
### 空闲超时设置
### 一天为 86400 秒
variable_idle_timeout : 86400 ; 设置为 0 表示不修改或恢复 idle_timeout
# 如果设置 variable_use_fw_retract 为 True,printer.cfg 中必须定义 [firmware_retraction]
variable_use_fw_retract : False ; 是否使用固件回抽替代手动回抽 [True/False]
variable_runout_sensor : "" ; 断料传感器配置名,例如 "filament_switch_sensor runout"
# 自定义宏只支持单行命令;如需多条命令,请单独创建宏后在此调用。
variable_user_pause_macro : "" ; PAUSE_BASE 之后执行
variable_user_resume_macro: "" ; RESUME_BASE 之前执行
variable_user_cancel_macro: "" ; CANCEL_PRINT_BASE 之前执行
gcode:
英文(原版)
printer.cfg
[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...