One other thing I did to disable the spindle when the probe is plugged in was to process input 3 that is indicating the phono jack is plugged in to input 4.
I modified the M3 and M4 macros in Mach3 to check the status of input 3. The modified macros are below;
M3 macro
Code:
If (Not IsActive(INPUT3)) Then
DoSpinCW()
else
Message "Probe is plugged in"
DoOEMButton(1021)
end if
M4 macro
Code:
If (Not IsActive(INPUT3)) Then
DoSpinCCW()
else
Message "Probe is plugged in"
DoOEMButton(1021)
end if
I also changed the the button script for the spindle toggle button on the Mach3 pages that uses the button to the following;
Code:
If (Not IsActive(INPUT3)) Then DoOEMButton(110)
Else
Message "Probe is plugged in"
DoOEMButton(1021)
End If
BTW OEMButton 1021 is the reset button, causing Mach3 to go into reset if an attempt to run the spindle when the probe is plugged in.
Cheers,
Peter