From 10d6b4f5f6e873fb5c6317499afd4dccd369685f Mon Sep 17 00:00:00 2001 From: Fenikkusu <5033618+Fenikkusu@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:30:07 -0400 Subject: [PATCH] Adding Post-Test Park --- macros/TEST_SPEED.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/macros/TEST_SPEED.cfg b/macros/TEST_SPEED.cfg index a8c3179..fd17d55 100644 --- a/macros/TEST_SPEED.cfg +++ b/macros/TEST_SPEED.cfg @@ -129,6 +129,14 @@ gcode: G4 P1000 GET_POSITION + # Park Nozzle After Testing - Use `SAVE_VARIABLE VARIABLE=test_speed_park_{x,y} VALUE={x,y}` To Change Path + # This is useful is you are using a custom homing that moves the X/Y in a positive direction. + {% set moveX = printer.save_variables.variables.test_speed_park_x | default(printer.toolhead.axis_maximum.x - 1) %} + {% set moveY = printer.save_variables.variables.test_speed_park_y | default(printer.toolhead.axis_maximum.y - 1) %} + + G0 X{moveX} Y{moveY } F{30*60} + + # Restore previous gcode state (absolute/relative, etc) RESTORE_GCODE_STATE NAME=TEST_SPEED