Here are the buttons that I used, not the best buttons however, but a starting point if you choose... Also, if you look at the M1200 Macro, each button is processed via the switch statement below. This allows ALL the tool probe code to be in 1 file, instead of spread across several.
To use, just add the Macro and a VB Parameter to each of your buttons.
Your Mach3 Button Code might look like this for "X-" M1200 P6
' Process the selected tool probe button
buttonId = Param1()
Select Case buttonId
' XYZ Buttons
Case 1 buttonPosXNegY ' X+Y-
Case 2 buttonNegY ' Y-
Case 3 buttonNegXNegY ' X-Y-
Case 4 buttonPosX ' X+
Case 5 buttonNegZ ' Z-
Case 6 buttonNegX ' X-
Case 7 buttonPosXPosY ' X+Y+
Case 8 buttonPosY ' Y+
Case 9 buttonNegXPosY ' X-Y+
' ID and OD Functions
Case 10 buttonCircleID ' C-ID
Case 11 buttonCircleOD ' C-OD
End Select
Hope this helps,
JH