Consider the case of the following two rungs in Ladder 2
XIC B3/0 JSR 3
XIC I:0/0 OTE O:1/0
And the following rungs in ladder 3
XIC I:0/0 OTE O:1/1
TON T4:0 1 100 0
Now imagine the program is run for the very first time.
B3/0 is off and I:0/0 is off.
What is the conditon of O:1/0? (off)
What is the conditon of O:1/1? (off)
Now imagine that B3/0 is off and I:0/0 is on.
What is the conditon of O:1/0? (on)
What is the conditon of O:1/1? (off) - because the subroutine has not been scanned, therefore the rung in ladder 3 has not been executed.
Now imagine that B3/0 is on and I:0/0 is on.
What is the conditon of O:1/0? (on)
What is the conditon of O:1/1? (on) - the rung in ladder 3 is now executing.
Now turn B3/0 off.
What is the conditon of O:1/0? (on)
What is the conditon of O:1/1? (on) - the rung in ladder 3 is not being executed, the value of O:1/1 stays in the last state.
Now turn I:0/0 off.
What is the conditon of O:1/0? (off)
What is the conditon of O:1/1? (on) - the rung in ladder 3 is not being executed, the value of O:1/1 stays in the last state - the rung is never executed to see if I:0/0 is off or on, so the value in the output image table is not changed.
Now cycle power to the PLC.
What is the conditon of O:1/0? (off)
What is the conditon of O:1/1? (on) The value in the output image table remains in the last state until ladder 3 is executed again.
If you change the first rung of ladder 2 to this:
BST XIC B3/0 NXB S:1/15 BND JSR 3
(s:1/15 is on for only the first scan after power-up/run)
Now what will be the state of O:1/1 when power is cycled if B3/0 is off and I:0/0 is off?
What do you think will happen to the timer in ladder 3 if B3/0 is on for 20 seconds and then shut off? Remember, a timer is an instruction, not a physcial device. What will be the value in T4:0.ACC sixty seconds after B3/0 is turned off? What about after even a year if B3/0 was not turned back on? (the answer is 20)