Manglemender
Member
dim dummy BOOL
dummy = dummy -1
Have done something similar in SCADA scripting as it only executes once per click event.
Nick
dim dummy BOOL
dummy = dummy -1
Here is a single Toggle using 2 bits (kinda long)
The second JMP is not necessary.
That might be a carry-over from learning on another platform.
I'm not sure if it was Omron as the OP learned on, but there was one that a Label would only be gone to if there was a Jump to it.
In that example if the second Jump wasn't there the rung with the Label would be skipped because it wasn't called.
The only way around was put LBL----NOP, then the OTU on the next rung.
Wow, I stand corrected!
anyway, monkey business like those JMPs is why the 2x2 XOR construction seems so much better to me. Or even this:
It has all been done before over the last 20+ years.That's a different and sleeked down way from what I've seen and used before.
It has all been done before over the last 20+ years.
Yah seriously, people don't even bother to search for "toggle" or "flip flop" in this forum first.
..... However, what I have come to know is that once a thread moves off the front page is it lost to most people...