Congratulations on finding one of the many canonical ways to implement a flip flop!
That is almost certainly a misunderstanding of how the scan cycle works in digital PLCs. The canonical PLC paradigm of the power/current flowing from the high voltage on the left rail to the ground on the right rail can be useful, but it can also be misleading; specifically, left-to-right and then top-to-bottom represent time*, not voltage or current or power.
* or sequence, if you prefer.
Watch the first two or three videos in this playlist, which explain how a PLC scan cycle works; watch them repeatedly until you understand everything @Ron Beaufort says before he says it. Then come back and play your code in your head. Then play the code below in your head (it's much simpler).
Summary: only two of the rungs and two-thirds of the instructions are required; the timer is not required; see below (N.B. the Set and Reset instructions have been switched!). If this does not work, and give minimal delay, I'll shut up; the only thing that would cause this to fail is if the operator holds button for less than 100ms.
View attachment 61139
This should also work. Four different bits alternated on one network. (As coil is only writed once with word addressing it works, but Set / Reset more preferrable for bits.)
All other 10 different alternator can be finded from downloads section, Allen bradley and Lancie's example of alternators.
www.plcs.net/downloads/index.php?action=downloadfile&filename=ALTERNATOR%20METHODS.pdf&directory=Allen_Bradley&
Last edited: