I took a look at the link Hood suggested and I love it! So I downloaded all the buttons and scripting.
Now for a stupid question,
I am trying to setup the vb scripting for each of the buttons.... I dont understand how the vb scripting should be done for each button. Here is the snippet from the thread...... can someone help me to understand how exactly each button script should be laid out?
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