Print

Subroutine: How to manage Relay Switch (From a pulse, switch a relay alternately to ON or OFF)

 

The easiest way to handle a Relay Switch in a flowchart or Ladder is to use a subroutine

You can dowload the subroutine here

For your input, if you are using a dry contact from a switch or relay, it may be useful to add a bounce filter (Debounce in ms)