49
Basic Concepts Section 2-1
2-1-14 Program Examples
1,2,3... 1. Parallel/Series Rungs
2. Series/Parallel Rungs
A block B block
Program the parallel instruction in the A block and then the B block.
0000
03
0000
00
0000
01
0000
02
0002
00
Instruction Operands
LD
AND
OR
AND
AND NOT 000003
OUT
0002
00
a b
a
b
000000
000001
000200
000002
000200
A block B block
• Separate the rung into A and B blocks, and program each individually.
• Connect A and B blocks with an AND LD.
A block B block
• Program B
1
block and then program B
2
block.
• Connect B
1
and B
2
blocks with an OR LD and then A and B blocks with an
AND LD.
• Program A block.
B1 block
B2 block
LD 000000
AND NOT 000001
LD 000002
AND 000003
OR 000201
OR 000004
AND LD ---
OUT 000201
0000
01
0000
00
0000
03
0000
02
0002
01
Instruction Operands
0002
01
a b
a
b
0000
04
LD NOT 000000
AND 000001
LD 000002
AND NOT 000003
LD NOT 000004
AND 000202
OR LD ---
AND LD ---
OUT 000202
0000
00
0000
01
0000
02
0002
02
Instruction Operands
0002
02
a b
a
0000
03
0000
04
b
2
b
1
b
1
b
2
b
1
+ b
2
a • b