16301
General Mach Discussion / Re: safety spindle
« on: March 04, 2010, 06:35:08 PM »
Not sure I fully understand but maybe this is what you are wanting?
If GetOemLED(11) And Not IsActive(Input2) Then
Sleep (2000)
If GetOemLED(11) And Not IsActive(Input2) Then
DoOemButton(1021)
MsgBox("Spindle has faulted")
End If
End If
If you need to change the time it is the Sleep(2000) you should change, milli seconds so 2,000 is 2 seconds.
Hood
If GetOemLED(11) And Not IsActive(Input2) Then
Sleep (2000)
If GetOemLED(11) And Not IsActive(Input2) Then
DoOemButton(1021)
MsgBox("Spindle has faulted")
End If
End If
If you need to change the time it is the Sleep(2000) you should change, milli seconds so 2,000 is 2 seconds.
Hood