Have a look at what I did, it appears to be working:
'*************CheckAirPressure*****************************
If GetOEMLED (824) Then
MsgBox("Low Air Pressure Alert Fix Problem and PRESS (OK)")
If GetOEMLED (824) Then
MsgBox("Problem not fixed, try again")
End If
If GetOEMLED (824) Then
MsgBox("Problem not fixed, canceling routine")
DOButton(1)
While Ismoving()
Wend
Dobutton(3)
While Ismoving()
Wend
DoOembutton(1003)
End
Else
End If
End If
'**********************************************************
In fooling with this I discovered my HSD spindle has signal wires for tool-in-spindle and drawbar open, as well as a pin labeled 'thermal alarm'...know anything about those? I see the wires are already ran to the control cabinet but just not connected to anything. I see a line disabled in the tool change sript: 'SystemWaitFor (7) 'Wait for the tool Release Limit switch - I'm not sure what that's meant to do besides wait but I was thinking I could work scripts similar to the air pressure switch one to make sure the draw bar opens and the spindle is empty before picking up the next tool if I figure out how to get those two wires talking to the inputs.