You could write an line in the M6 macro to send the tool post to the home position.

It could lock like:



G53 G0 x0 assuming machine 0 is home to retract the tool in the x direction