razzle888
Does OpenPLC have a one shot timer similar to a hard-wired one-shot timer.  The input is a magnetic NC switch, on a door, and with a magnetic present the switch goes open when the door is closed.  The minute the door opens the contact goes closed and activates the one-shot timer for X seconds and then the output turns off.  The switch is still closed until the door is closed again and this resets the timer.  Is there a function block or timer that will mimic this in OpenPLC? 
Reply 0 0
thiagoralves
I just did a mental exercise and believe you can build this with a TON. Just AND the negated (inverse) output of the TON with your magnetic contact, and have your magnetic contact also be connected to the input of your TON. In my mind it seems to work. If it doesn’t, it will get you close enough.
 
Another option is to google for one shot timer built from IEC 61131 blocks. Someone must have built this already
Reply 0 0
Reply