Is there a simpler way to express a double click pattern in ladder-logic?
Goals are:
1. One input X1 should trigger either output Y1 or output Y2 based on whether X1 has been active within the past five seconds (e.g.: Y1 = first press, Y2 = second press within five seconds).
2. Activated output should not change during button press (e.g.: holding X1 should not result in Y1 then Y2 activating)
3. Activation of the selected output should match length of input
I came to the solution below which seems to meet the requirements, but seems overcomplicated somehow.
Is there a better way to do this? Perhaps one that eliminates that extra bit of latching memory?
The screenshot above is from AutomationDirect CLICK series - but I'm if other solutions exist in other systems (especially TwinCat or RSLogix)
Goals are:
1. One input X1 should trigger either output Y1 or output Y2 based on whether X1 has been active within the past five seconds (e.g.: Y1 = first press, Y2 = second press within five seconds).
2. Activated output should not change during button press (e.g.: holding X1 should not result in Y1 then Y2 activating)
3. Activation of the selected output should match length of input
I came to the solution below which seems to meet the requirements, but seems overcomplicated somehow.
Is there a better way to do this? Perhaps one that eliminates that extra bit of latching memory?
The screenshot above is from AutomationDirect CLICK series - but I'm if other solutions exist in other systems (especially TwinCat or RSLogix)
