Introduction to Programming
Chapter 4
410
Figure 4.12
Nested Branching vs. Equivalent Logic
||
()
A
||
B
||
D
||
||
E
||
C
||
()
A
||
B
||
D
||
||
E
||
C
||
C
Branch
Within a
Branch
Instruction
Repeated
A. Desired Logic (Cannot be Programmed)
B. Equivalent Logic (Can be Programmed)
WARNING: While inserting a BRANCH START instruction to
an existing rung during on-line programming, the actual output
status (ON or OFF) may not be the logically expected state
of the rung. This condition exists until the BRANCH END
instruction is installed and the rung is completed.
Solution
To avoid the above condition, adhere to the following programming
technique:
1. Immediately below the rung to be changed, create a new rung with
the same conditional logic (in other words, duplicate the rung); but,
do not put the output in yet. (Figure 4.13 on the next page is an
example rung and the addition.)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com