There is one thing you may be able to help me with. I have optioned all the buttons but I cant figure out how to option the controller to work the z axis touch probe. Any advice on how to get it working would be greatly appreciated.
Regards
Richard
Here is how I do it.
Operator | Edit button Script and select [Auto Tool Zero]
I have the following script there:
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state
If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P3" ' this delay gives me time to get from computer to hold probe in place
Code "G90 G31Z-100. F100" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetOEMDRO(85) 'get the exact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, 19.8 ) ' change 19.8mm to your plate thickness and then adjust for final accuracy
Sleep 100 'Pause for Dro to update.
Code "G1 Z25. F200" 'put the Z retract height 25mm you want here, must be greater than the touch plate thickness
While IsMoving ()
Wend
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if applicable
End If
If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
Code "G91"
End If
If CurrentGMode = 0 Then 'if G0 was in effect before then return to it
Code "G0"
End If
Now I copy this script into a new custom Macro named M798.m1s full path C:\Mach3\macros\Mach3Mill\M798.m1s
Now I config |config plugin | xbox360.....
with the config as attached
Now the A button on the xbox controller is ALSO an [AUTO TOOL ZERO] button.