Hi there,
I'm using this script:
Zmove = 10 'amount the tool will move down to hit the probe
Zpos = GetDRO(2)
Tool = GetDRO (24)
ZOffset = 33.32 'enter height of probe here
OldZpos = Zpos
ZPos = Zpos - ZMove
Code "G31 Z" & ZPos & " F40.0"
While IsMoving()
Wend
Zpos = GetVar (2002)
If Zpos = OldZpos - ZMove Then
responce = MsgBox ("ERROR! The tool did not hit the probe and DRO was not set" , 4 , "Probe ERROR!" )
Else
SetDRO (2,ZOffset)
End If
Code "G00 G53 Z-.1"
couple of times, after touching the probe, Z proceedes downward instead of upward causing "injuries" to the blade. Why does it happen?? Where is the the mistake? Help me please...