Omron CS1G/H-CPUxx-EV1 Programming Manual page 90

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Basic Concepts
54
Mnemonic Execution Order
PLCs execute ladder programs in the order the mnemonics are entered so
instructions may not operate as expected, depending on the way rungs are
written. Always consider mnemonic execution order when writing ladder dia-
grams.
0000
00
0010
00
Example: CIO 000210 in the above diagram cannot be output. By rewriting
the rung, as shown above, CIO 000210 can be turned ON for one cycle.
Rungs Requiring Rewriting
PLCs execute instructions in the order the mnemonics are entered so the sig-
nal flow (power flow) is from left to right in the ladder diagram. Power flows
from right to left cannot be programmed.
0000
00
0000
0000
TR0
01
02
0000
04
Example: The program can be written as shown in the diagram at the left
where TR0 receives the branch. The same value is obtained, however, by the
rungs at the right, which are easier to understand. It is recommended, there-
fore, that the rungs at the left be rewritten to the rungs at the right.
Rewrite the rungs on the left below. They cannot be executed.
The arrows show signal flow (power flow) when the rungs consist of control
relays.
A
B
E
C
D
0010
00
0002
10
0000
0002
03
11
0002
12
R1
R2
Section 2-1
0000
0010
0002
00
00
0000
0010
00
0000
0000
0000
0002
01
02
03
0000
00
0000
0000
0002
01
04
A
B
R1
C
E
A
E
D
R2
C
10
00
11
12

Advertisement

Table of Contents
loading

Table of Contents