Good day;
I loded this code to auto zero Z and it does work, But I have a question, When it touches the plate, it backs off .25 and sets the DRO to .25 as it should by what I best understand. How can I get it to allow for the thickness of the touch plate so when I set Z to zero it touches the material. My touch plate I am using now is .375.
Also, when I go to auto Zero Z it dwells for 6 minutes before moving, how do I change that?
'Auto Tool Zero Script
CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness =0.375
ProbeFeed = 5
Code "G90 F" &ProbeFeed
If GetOemLed (825)=0 Then
Code "G4 P5000" 'Time to get to the z-plate
Code "G31Z-5 F" &ProbeFeed
Code "G4 P0.25"
While IsMoving()
Sleep(100)
Wend
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos
While IsMoving ()
Sleep(100)
Wend
Call SetDro (2, PlateThickness)
Sleep(100)
Code "G4 P0.5" 'Pause for Dro to update.
Code "G0 Z0.25" 'Change the Z retract height here
Code "(Z axis is now zeroed)"
Code "F" &CurrentFeed
Else
Code "(Z-Plate is grounded, check connection and try again)"
Exit Sub
End If