Mach3 Auto Tool Zero
Mach3 Auto Tool Zero
C anI a 0 ffL ne
Ma nten anc e Hours *
YB StripI Edifo r
Edrt Button 5c npt
Set No ma C ond t o n
Resto re Settin gs .
B a n Cont a
B a n Ld tor
Ch eck C anf
g
FI t€g'• No F e oaded
RememberReturn
Safe Z On/Ofi
Ready “ ” * ‘ ”’
L n 1, Col 1 NUM
' Copy this script to Mach3 Button VB Script Editor
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 "G31 Z-30 F100" 'Z goes down a max of 20mm at 100mm/min
Wend
ZProbePos = GetVar(2002) 'get the axact 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, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If
HidderiScript.mls - Mach3 VB Scipt Editor
Edit Rctn Debug BreakP oints
Open File..
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos 'get the axact point the probe was hit
'go back to that point. always a very small amount o1 overrun
While Isfloving ()
Wend
Call SetDro (2. PlateThickness) 'set the Z axis DRO to whatever is set as plate
thickness Code "G4 PO.25" 'Pause 1or Dro to update.
Code "G0 Z6 35" 'retract Z to 6
35mm Code "(Z axis Ss now zeroed)" 'puts this message in the status
bar Code "F" &CurrentFeed 'Returns to prior leed rate
Else
Code "(Z-PIate is grounded. check connection and trg again)" 'this goes in the status bar i1 aplicable
•Ex i t Sub
. End I I