yes, well done, definitely getting there.
why is there an
XIC O:0/0 (Light 0 output) in the start branch of the Light 7 rung 0000? Shouldn't that be an XIO and outside the start/seal-in parallel branches like the XIOs for Lights 1 through 6? Or should it even be there at all, because an
XIO Light 0, when Light 0 was on, would prevent Switch 7 from triggering the logic on Rung 000 to turn on Light 7?
Rung 0001 seems like the basic pattern for most lights' rungs:
XIO Light(N-1) BST XIC Light(N+1) XIC Switch(N) BND XIC Light(N) BND OTE Light(N)
with the caveat that the
Switch(N) is replaced the the timer or counter /DN bit for lights 5 and 3. Most of the others are the same but have the possibly unnecessary
XIO Switch 7. Rung 0009 is the same logically, but the ordering of the first three instructions is (N-1)/N/(N+1), which makes it easier to check visually.
why is there an XIC I:0/7 (Switch 7 input) in most, but not all of the Light N branches?
how will the CTU C5:0, which is counting Switch 3 presses be reset? what happens if Switch 3 is pressed three times while Light 5 is lit, and then Switch 4 is pressed? Ask yourself a similar question for Light 5 i.e. what happens if Switch 5 is held down for 5s+ while Light 7 is on, and then Switch 6 is pressed? to answer these questions, use the technique described in @Ron Beaufort's video series i.e. mentally be the PLC and describe how the logic 1s and 0s change over a scan cycle; it is slow and laborious at first, but with practice you will be able to "see" things much more adeptly. how can we stop that (premature /DN bit value of 1) result from happening i.e. how can we prevent Switches 3 and 5 from accumulating counts or time prematurely?
Do you understand why I sent you to the Patterns of Ladder Logic Programming pages at the Contact and Coil website? Which one of those patterns is used for every light here?
What logic operation (see
here) is implemented by two or more instructions, or compound instructions, in series? What logic operation is implemented by two or more branches in parallel?