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

Make retract user configurable in nozzle cleaning #645

Closed
wants to merge 2 commits into from
Closed
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
3 changes: 2 additions & 1 deletion macros/helpers/nozzle_cleaning.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ gcode:
{% set OOZE_TIME = params.OOZE_TIME|default(printer["gcode_macro _USER_VARIABLES"].purge_ooze_time)|int %}
{% set TEMP = params.TEMP|default(printer["gcode_macro _USER_VARIABLES"].print_default_extruder_temp)|float %}
{% set Z_DROP = params.Z_DROP|default(1)|int %}
{% set RETRACT = params.RETRACT|default(printer["gcode_macro _USER_VARIABLES"].purge_retract_distance)|default(18.3)|float %}

{% set purge_and_brush_enabled = printer["gcode_macro _USER_VARIABLES"].purge_and_brush_enabled %}
{% set purgeclean_servo_enabled = printer["gcode_macro _USER_VARIABLES"].purgeclean_servo_enabled %}
Expand Down Expand Up @@ -120,7 +121,7 @@ gcode:
# Retract
G92 E0
G1 E-1.7 F2100
G1 E-18.3 F150
G1 E-{RETRACT} F150
G92 E0

# Wait some time to let the nozzle ooze before cleaning
Expand Down
1 change: 1 addition & 0 deletions user_templates/variables.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ variable_brush_center_offset: 0 # Offset of the brush center to start brushing (
variable_brushes: 6 # Number of brushes of the nozzle to perform
variable_purge_bucket_xyz: -1, -1, -1 # Purge bucket position
variable_purge_distance: 30 # Amount to purge (in mm)
variable_purge_retract_distance: 18.3 # Amount to pull filament back (in mm) after purge to reduce ooze
variable_purge_ooze_time: 10 # Time (in seconds) to wait after the purge to let the nozzle ooze before going to the brush

## Servo angles used to define the retracted and deployed positions
Expand Down