
'this is an example of how to call a probing routine from ProbeIt called 'post' (OD probe)  Put this file, or one like it in your macros folder.  You can add stuff to be done before and after the probe command also.

setuserDRO(1937,0) '<- this defines the initial probe direction to be zero degrees along +X axis.
runscript("addons\probeit\post") '<-- This calls a probe routine as if pushing a button in ProbeIt wizard.  Note, the path is relative from the Mach3 directory, leave off the file extension for the routine (ie, .mcc)


' Available routines you can call:
' post:  OD of a post or boss
' pocket:  ID of a bore or pocket
' side:  side of part, will do single side touch or and edge depending on if edge mode button is toggled in wizrd!
' corner:  corner of part.  angle in DRO1937 defines direction of the first move towards first edge, ie, lower left corner is 90, as first move is in +Y direction.
' slot-inner:  inside slot/gap
' slot-outer:  outside slot/ridge