Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a retainer to scrape the probe off #183

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Klipper_macros/Klipper_macros.zip
Binary file not shown.
9 changes: 9 additions & 0 deletions Klipper_macros/klicky-macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ gcode:
{% set attachmove_x = printer["gcode_macro _User_Variables"].attachmove_x|default(0) %}
{% set attachmove_y = printer["gcode_macro _User_Variables"].attachmove_y|default(0) %}
{% set attachmove_z = printer["gcode_macro _User_Variables"].attachmove_z|default(0) %}
{% set retainmove_x = printer["gcode_macro _User_Variables"].retainmove_x %}
{% set retainmove_y = printer["gcode_macro _User_Variables"].retainmove_y %}
{% set retainmove_z = printer["gcode_macro _User_Variables"].retainmove_z %}
# Safe Z for travel
{% set safe_z = printer["gcode_macro _User_Variables"].safe_z|float %}
# Set feedrates
Expand Down Expand Up @@ -408,6 +411,12 @@ gcode:
G0 Z{docklocation_z} F{dock_feedrate}
{% endif %}

# Retain Movement - move the probe behind a retainer to scrape it off if needed (eg. Ender Klack).
{% if retainmove_x != -128 or retainmove_y != -128 or retainmove_z != -128 %}
_KlickyDebug msg="Dock_Probe moving to retain probe with G0 {'X' ~ retainmove_x if retainmove_x != -128} {'Y' ~ retainmove_y if retainmove_y != -128} {'Z' ~ retainmove_z if retainmove_z != -128} F{dock_feedrate}"
G0 {'X' ~ retainmove_x if retainmove_x != -128} {'Y' ~ retainmove_y if retainmove_y != -128} {'Z' ~ retainmove_z if retainmove_z != -128} F{dock_feedrate}
{% endif %}

# Probe decoupling
{% if docklocation_z != -128 %}
_KlickyDebug msg="Dock_Probe moving from the dock to G0 Z{docklocation_z|int + dockmove_z|int} F{release_feedrate}"
Expand Down
11 changes: 8 additions & 3 deletions Klipper_macros/klicky-variables.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ Variable_attachmove2_x: 0 # intermediate toolhead movement to attach
Variable_attachmove2_y: 0 # the probe on the dock
Variable_attachmove2_z: 0 # (can be negative)

# Retain Move. Extra movement just before undocking if needed to catch the probe behind a retainer for removal.
Variable_retainmove_x: -128 # X position to move to (-128 to ignore)
Variable_retainmove_y: -128 # Y position to move to (-128 to ignore)
Variable_retainmove_z: -128 # Z position to move to (-128 to ignore)

variable_home_backoff_x: 10 # how many mm to move away from the X endstop after homing X
# this is useful for the voron v0 to enable the toolhead to move out of the way to allow an unstricted Y homing
variable_home_backoff_y: 10 # how many mm to move away from the Y endstop after homing Y
Expand All @@ -84,10 +89,10 @@ variable_override_homing: '' # configures what axis to home first
# '' = default klicky behavior (tries to avoid the hitting the dock)
# 'X' = forces X to home first
# 'Y' = forces Y to home first

variable_dock_on_zhome: True # docks the probe on Z Homing if not necessary (avoids hitting the bed on some printers

variable_bypass_probe_docking: False
variable_dock_on_zhome: True # docks the probe on Z Homing if not necessary (avoids hitting the bed on some printers

variable_bypass_probe_docking: False

# Do not modify below
gcode:
Expand Down