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 a variable distance for end_print extruder pull back. #658

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions macros/base/end_print.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ gcode:
{% set filter_default_time = printer["gcode_macro _USER_VARIABLES"].filter_default_time_on_end_print|default(600)|int %}
{% set filament_sensor_enabled = printer["gcode_macro _USER_VARIABLES"].filament_sensor_enabled %}
{% set hotend_fan_tach_enabled = printer["gcode_macro _USER_VARIABLES"].hotend_fan_tach_enabled %}

{% set extruder_pull_back_distance_end_print = printer["gcode_macro _USER_VARIABLES"].extruder_pull_back_distance_end_print %}

PARK

{% if klippain_mmu_enabled %}
Expand All @@ -25,7 +26,7 @@ gcode:
{% elif printer.extruder.can_extrude %}
# pull back the filament a little bit
G92 E0
G1 E-10 F2100
G1 E{extruder_pull_back_distance_end_print} F2100
{% endif %}

{% if turn_off_heaters_in_end_print %}
Expand Down
3 changes: 3 additions & 0 deletions user_templates/variables.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ variable_prime_line_margin: 5 # distance of purge line from fl_size rectangle
variable_park_position_xy: -1, -1
variable_park_lift_z: 50

## Extruder parameter in the END_PRINT macro
variable_extruder_pull_back_distance_end_print: -10 # should be negative for a pull

## Automatically disable motors in the END_PRINT macro
variable_disable_motors_in_end_print: False

Expand Down