一時停止とキャンセル印刷のカスタム位置設定
このページは、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)
### アイドルタイムアウト設定
### 1日は 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...