Author Topic: Interrupt to monitor physical micro-switch on and off  (Read 2754 times)

bobsamuel

  • Newbie
  • Posts: 3
    • View Profile
    • BobSamuel
Interrupt to monitor physical micro-switch on and off
« on: December 07, 2013, 11:14:05 PM »
Hi,

Hardware being used: FMD88-10 and T40H-Relay

I have an application in which the NO and NC states of a physical micro-switch must be monitored in real-time to change the state of a Relay and/or Output.  The switch's state must be monitored and responded to without waiting for the next ladder scan.

I understand how to use an interrupt (INTRDEF) and related Custom Function to monitor the micro-switch and set a Relay and/or Output, from off to on.  

Question: How can an interrupt (INTRDEF) and related Custom Function be used to monitor the same micro-switch to re-set a Relay and/or Output, e.g. from on to off?

Suggestions will be appreciated.  Thanks, Bob
Bob Samuel