Program Examples - Omron SYSMAC CS/CJ Series Programming Manual

Table of Contents

Advertisement

Basic Concepts

2-1-14 Program Examples

1,2,3...
1. Parallel/Series Rungs
0000
0000
0000
0000
00
01
02
03
0002
00
a
b
A block
B block
Program the parallel instruction in the A block and then the B block.
2. Series/Parallel Rungs
0000
0000
0000
0000
00
01
02
03
0002
01
0000
04
a
b
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.
• Program A block.
b
1
B1 block
0000
0000
0000
0000
00
01
02
03
0000
0002
04
02
b
2
B2 block
a
b
A block
B block
• Program B
block and then program B
1
• Connect B
and B
blocks with an OR LD and then A and B blocks with an
1
2
AND LD.
0002
Instruction Operands
00
LD
AND
OR
AND
AND NOT
OUT
0002
Instruction Operands
01
LD
AND NOT
LD
AND
OR
OR
AND LD
OUT
Instruction Operands
LD NOT
AND
0002
02
LD
AND NOT
LD NOT
AND
OR LD
AND LD
OUT
block.
2
Section 2-1
000000
a
000001
000200
000002
b
000003
000200
000000
a
000001
000002
000003
b
000201
000004
---
000201
000000
a
000001
000002
b
000003
1
000004
b
000202
2
---
b
+ b
1
2
---
a
b
000202
49

Advertisement

Table of Contents
loading

Table of Contents