Program Examples - Omron CS1G/H-CPUxx-EV1 Programming Manual

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

Advertisement

Basic Concepts

2-1-14 Program Examples

1,2,3...
50
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
1
2
an AND LD.
0002
00
0002
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
blocks with an OR LD and then A and B blocks with
Section 2-1
Instruction Operands
LD
000000
a
AND
000001
OR
000200
AND
000002
AND NOT
000003
b
OUT
000200
Instruction Operands
000000
a
000001
000002
000003
b
000201
000004
---
000201
000000
a
000001
000002
b
000003
1
000004
b
000202
2
---
b
+ b
1
---
a b
000202
2

Advertisement

Table of Contents
loading

Table of Contents