I am trying to figure out a way to treat a XYZ probe as an initial tool through the built in tool setter function that comes up with an M6 command before my gcode is loaded. My intention is to use the XYZ probe to probe the material surface and then use the tool change to find the new offset from the work surface for my tool. I have been able to get it to work and was successful using dummy gcode (but not running the same code in a macro), but was hoping there was a better way to initiate this. Does anyone know of a cleaner way to make this work?
Thanks