Hello Guest it is June 26, 2019, 07:02:21 AM

Author Topic: Is it possable to have an input trigger a feedhold, dwell, shut off spindle?  (Read 732 times)

0 Members and 1 Guest are viewing this topic.

I have a client that wants to wire a switch to his enclosure.  I need to see if I can wire the switch on a input pin (15)  When the door is opened, it will trigger the pin.  I want the machine to stop.  it is running off of a UC100, so an Estop may loose position due to the buffer.  If a feed hold can be commanded, the machine can run out the buffer and stop the machine.  A dwell for a few seconds can allow the buffer to finish out then turn off the spindle./


Any ideas on how to do this?

Offline Hood

*
  •  25,847 25,847
  • Carnoustie, Scotland
    • View Profile
You can probably use the macropump and have it look at the Input and also you would probably want it to also look at the Run LED so that it only does its thing when code  is running.

Something like this may work.

If IsActive(Input2) And GetOemLED (804) Then
DoOemButton(1001)
While IsMoving()
Wend
DoOemButton (1003)
End If


Hood