Skip to content

Commit

Permalink
Modification following PR discussion
Browse files Browse the repository at this point in the history
delete macro GOTO_PURGE_BUCKET
rename GOTO_MAINTENANCE to PARK_FRONT
  • Loading branch information
elpopo-eng committed Feb 23, 2024
1 parent 1eb0137 commit 9d58033
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 4 additions & 4 deletions macros/base/park.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ gcode:
{% endif %}


[gcode_macro GOTO_MAINTENANCE]
description: Move over the purge bucket
[gcode_macro PARK_FRONT]
description: Park the toolhead on the front of the printer for maintenance
gcode:
{% set St = printer["gcode_macro _USER_VARIABLES"].travel_speed * 60 %}
{% set Sz = printer["gcode_macro _USER_VARIABLES"].z_drop_speed * 60 %}

{% if "xyz" not in printer.toolhead.homed_axes %}
G28 ; home if not already homed
{% endif %}
SAVE_GCODE_STATE NAME=GOTO_MAINTENANCE
SAVE_GCODE_STATE NAME=PARK_FRONT
G90 ; absolute positioning
G0 Z{printer.toolhead.axis_maximum.z/3*2} F{Sz}
G0 X{printer.toolhead.axis_maximum.x/2} Y{printer.toolhead.axis_minimum.y+10} F{St}
RESTORE_GCODE_STATE NAME=GOTO_MAINTENANCE
RESTORE_GCODE_STATE NAME=PARK_FRONT
7 changes: 0 additions & 7 deletions macros/helpers/nozzle_cleaning.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,3 @@ gcode:

RESTORE_GCODE_STATE NAME=CONDITIONAL_MOVE_TO_PURGE_BUCKET_STATE
{% endif %}


[gcode_macro GOTO_PURGE_BUCKET]
description: Move over the purge bucket (a wrapper to have access in gui)
gcode:
{% set Z_DROP = params.Z_DROP|default(0)|int %}
_CONDITIONAL_MOVE_TO_PURGE_BUCKET Z_DROP={Z_DROP}

0 comments on commit 9d58033

Please sign in to comment.