http://bayimg.com/KAECPaaCp
Here's something that works partially.
BIT's 15-18 are one-shots, 5 seconds apart ( the delay time ), 15 is first, 18 is last.
BIT's 1,3,5 & 7 are stored wanted output states (w.o.s., which can change at any time ).
One-shot at BIT's 11-14 will turn on the outputs ( the DO6_1_OUTx ).
If all the wanted states are ON, and the shooting sequence starts, the outputs will go ON one by one, as wanted.
Let's say only the 4th output wanted state is ON.When the first one-shot occurs, It will skip to the 4th output and turn it on.
Problem:
Let's say the 2nd and 4th w.o.s. are ON.
First one-shot turns on Output2.
Second one-shot can't skip to Output4, it tries to turn on Output2, but it's already on.
If I add the skip case with 2nd w.o.s. ON
and Output2 ON, so it can skip to the next one, my PLC will do it immediately while the first one-shot is active, after turning ON Output2.
http://bayimg.com/KaecJaacP