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

bobsamuel

  • Newbie
  • Posts: 3
    • View Profile
    • BobSamuel
Interrupt to monitor physical micro-switch on and off
« on: December 07, 2013, 03: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

BetterBath

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Interrupt to monitor physical micro-switch on and off
« Reply #1 on: September 20, 2023, 12:37:57 AM »
To monitor the micro-switch for changes from on to off using an interrupt (INTRDEF) and Custom Function, set up a second interrupt routine for this specific condition. This way, you can respond to both state changes of the micro-switch in real-time.
Junkremovalbulktrashpickuprubbishhaulingclickherevisitour sitejunkdisposalhaulingtrashpickup
Click herehaulinglawn carerepairtallahasseeour sitejunk removalclick herehandymanjunk haulingjunk removersclean outcape coralwebsitehandymansour serviceslandscapingfloridajunk removallandscaping.
« Last Edit: May 07, 2024, 12:32:26 AM by BetterBath »