31
Programming Concepts Section 1-1
Rungs Requiring
Caution or Rewriting
OR and OL LD Instructions
With an OR or OR NOT instruction, an OR is taken with the results of the lad-
der logic from the LD or LD NOT instruction to the OR or OR NOT instruction,
so the rungs can be rewritten so that the OR LD instruction is not required.
Example: An OR LD instruction will be needed if the rungs are programmed
as shown without modification. A few steps can be eliminated by rewriting the
rungs as shown.
Output Instruction Branches
A TR bit will be needed if there is a branch before an AND or AND NOT
instruction. The TR bit will not be needed if the branch comes at a point that is
connected directly to output instructions and the AND or AND NOT instruction
or the output instructions can be continued as is.
Example: A temporary storage bit TR0 output instruction and load (LD)
instruction are needed at a branch point if the rungs are programmed without
modification. A few steps can be eliminated by rewriting the rungs.
0.03
#100
0.00
0.01
0.02
H0.00
H0.00
0001
T1
102.06
LD
OR
OR
OR
OUT
TIM
AND
OUT
AND NOT
10 sec
Instruction Operand
Error display
If a holding bit is in use, the ON/OFF status would
be held in memory even if the power is turned OFF,
and the error signal would still be in effect when
power is turned back ON.
0.00 0.03 H0.00
T1 102.06
0.02
H0.00
0.01
TIM
0001
#100
Error
input
0.00
0.01
102.00
102.00
0.01
0.00
102.00
102.00
0.00 0.01 102.08
0.00 102.09
102.09
TR0
102.080.01
Out