From e92631982cdb4fed1d42a03752ff23647c9bf07f Mon Sep 17 00:00:00 2001 From: Bassam Husain <61985779+bassamanator@users.noreply.github.com> Date: Sat, 31 Dec 2022 03:54:06 -0500 Subject: [PATCH] Added PARKING.cfg. --- PARKING.cfg | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 PARKING.cfg diff --git a/PARKING.cfg b/PARKING.cfg new file mode 100644 index 0000000..c5c34b4 --- /dev/null +++ b/PARKING.cfg @@ -0,0 +1,54 @@ +# Park front center +[gcode_macro PARKFRONT] +gcode: + {% if "xyz" not in printer.toolhead.homed_axes %} + G28 ; home if not already homed + {% endif %} + SAVE_GCODE_STATE NAME=PARKFRONT + G90 ; absolute positioning + G0 X{printer.toolhead.axis_maximum.x/2} Y{printer.toolhead.axis_minimum.y+5} Z{printer.toolhead.axis_maximum.z/2} F6000 + RESTORE_GCODE_STATE NAME=PARKFRONT + +# Park front center, but low down. +[gcode_macro PARKFRONTLOW] +gcode: + {% if "xyz" not in printer.toolhead.homed_axes %} + G28 ; home if not already homed + {% endif %} + SAVE_GCODE_STATE NAME=PARKFRONT + G90 ; absolute positioning + G0 X{printer.toolhead.axis_maximum.x/2} Y{printer.toolhead.axis_minimum.y+5} Z20 F6000 + RESTORE_GCODE_STATE NAME=PARKFRONT + +# Park top rear left +[gcode_macro PARKREAR] +gcode: + {% if "xyz" not in printer.toolhead.homed_axes %} + G28 ; home if not already homed + {% endif %} + SAVE_GCODE_STATE NAME=PARKREAR + G90 ; absolute positioning + G0 X{printer.toolhead.axis_minimum.x+10} Y{printer.toolhead.axis_maximum.y-10} Z{printer.toolhead.axis_maximum.z-50} F6000 + RESTORE_GCODE_STATE NAME=PARKREAR + +# Park at center of build volume +[gcode_macro PARKCENTER] +gcode: + {% if "xyz" not in printer.toolhead.homed_axes %} + G28 ; home if not already homed + {% endif %} + SAVE_GCODE_STATE NAME=PARKCENTER + G90 ; absolute positioning + G0 X{printer.toolhead.axis_maximum.x/2} Y{printer.toolhead.axis_maximum.y/2} Z{printer.toolhead.axis_maximum.z/2} F6000 + RESTORE_GCODE_STATE NAME=PARKCENTER + +# Park 15mm above center of bed +[gcode_macro PARKBED] +gcode: + {% if "xyz" not in printer.toolhead.homed_axes %} + G28 ; home if not already homed + {% endif %} + SAVE_GCODE_STATE NAME=PARKBED + G90 ; absolute positioning + G0 X{printer.toolhead.axis_maximum.x/2} Y{printer.toolhead.axis_maximum.y/2} Z15 F6000 + RESTORE_GCODE_STATE NAME=PARKBED \ No newline at end of file