Program Examples - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
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
1
2
an AND LD.
0002
00
0002
01
0002
02
block.
2
blocks with an OR LD and then A and B blocks with
Section 2-1
Instruction Operands
LD
000000
AND
000001
OR
000200
AND
000002
AND NOT
000003
OUT
000200
Instruction Operands
LD
000000
a
AND NOT
000001
LD
000002
AND
000003
b
OR
000201
OR
000004
AND LD
---
OUT
000201
Instruction Operands
LD NOT
000000
a
AND
000001
000002
LD
b
AND NOT
000003
1
LD NOT
000004
b
AND
000202
2
OR LD
---
b
+ b
1
AND LD
---
a · b
OUT
000202
a
b
2
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents