Okay this doesnt work I'm in test phase as we speak.... touches and stops great but the last line doesnt work it just keeps going + forever
Message "Finding Circle Center"
CurrentFeed = GetOemDRO(818)
If GetOemLed (825) <> 0 Then
Message "Z-Plate is grounded, check connection and try again"
Else
Code "G91"
Code "G31 X-7 F8"
While IsMoving()
Wend
X1 = GetVar(2000)
While IsMoving()
Wend
Code "G0 X" & X1*.98
Do I need a X3?
X3 = X1 * .98
then
Code "G0 X" & X3
okay this worked
Message "Finding Circle Center"
CurrentFeed = GetOemDRO(818)
If GetOemLed (825) <> 0 Then
Message "Z-Plate is grounded, check connection and try again"
Else
Code "G91"
Code "G31 X-7 F8"
While IsMoving()
Wend
X1 = GetVar(2000)
While IsMoving()
Wend
X3 = X1*.90
Code "G0 X"&X3
End If
easier way?