by Vmax549 » Mon Mar 07, 2022 11:06 am
I would try it this way. BUT remember when the M30 runns in the Gcode program the machine IS going to move to this location EVERY time so be aware that it will happen every time. It is programmed to move to machine coordinates. That way it goes back to the exact Table position regardless of what work offsets you may have set. Also programed this way you KNOW what directions the moves will be. First it retracts to Z home, then moves in the Yhome direction and then moves in the X home direction.
IF you want it to retract Z then WAIT for you to check clearance you can program a M00 after the Z move. That way it will stop and wait on you to press the {cyclestart} button to proceed to Y home then X home
(;-) TP
exec.Code("G00 G53 Z0.0000"); // retract Z up to home
while(exec.IsMoving()){}
exec.Code("G00 G53 Y0.0000"); // Move Y to home
while(exec.IsMoving()){}
exec.Code("G00 G53 X0.0000"); // Move X to home
while(exec.IsMoving()){}