Quote Originally Posted by Davek0974 View Post
Ok I'll go search again, sheetcam already inserts M3/M5 as they control the torch on/off for plasma.


dave
Ok well just insert the G31 and all the Dro Zeroing code and any other things you want it to do before the On/Off in the M3 macro.

To be honest after thinking about it just using the G31 G92 way is a little risky because it doesn't do any Error checking on the probe.
By that I mean lets say if your material has curved and is touching the torch or bit of dross just happens to short or cut the wire so it's gone to ground the machine won't know about. The G31 will work just the same has far the g-code is concerned, but in affect it did nothing other than register the point the machine was at already. The G92 offset and retract etc will be applied from this wrong point.!!

So to stay correct you should really have some error checking Code testing if the probe Input is at ground before using G31 which using a Macro you can do.

Your probably thinking not a big deal but I use probe plate all the time and it happens more often than you probably realise and while it not life threatening it's a pain in the arse when you have accidentally grounded the plate. Which by the way your material will act has My plate so if it touchs any part of machine that my ground it same will occur.
So if I didn't have Error checking warning me before starting same would happen and crashes and all sorts of unwanted head scratching stuff would occur.!