Parking (save homing & position info at shutdown)
Posted: Thu Jun 30, 2022 6:45 pm
This macro allows you to save the current homing and position info during shutdown without having to set GCode system variables.
Simply put, this code sends the machine to a specified location, mine is back center with the Z at full height, so it is out of the way.
The parked location is very machine specific. You MUST modify the XYZ variables in this file, if you don't, you might crash your machine if it doesn't have proper soft-limits set.
Please feel free to provide feedback on how this works on your machine.
Simply put, this code sends the machine to a specified location, mine is back center with the Z at full height, so it is out of the way.
The parked location is very machine specific. You MUST modify the XYZ variables in this file, if you don't, you might crash your machine if it doesn't have proper soft-limits set.
Code: Select all
(File: 'parking.nc')
G20 (imperial mode)
G90 (absolute distance mode)
; use G53 to use machine coordinates and avoid offsets
G53 G0 Z7 (move Z to safe height 1st, do NOT combine XYZ)
G53 G0 X36 Y48
M0 (Msg, Parked and ready for shutdown.)
M2