This Z-probe macro that works fine for me, as long as Mach3 is in inches:
Message( "Auto Zeroing..." )
If IsSuchSignal (22) Then
code "G31 Z-1 F10"
While IsMoving()
Wend
Call SetDRO( 2, .996 )
code "G1 Z1.5"
End If
But if the previous program is in millimeters, the distances and speeds are all wrong. I've tried adding a G20 ahead of the G31 in the code statement, but it appears to have no effect.
Any idea how to make this work?
Thanks