Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 181

Table of Contents

Advertisement

Precautions
When a logic block is connected by AND LOAD or OR LOAD instructions, the total number of AND
LOAD/OR LOAD instructions must match the total number of LOAD/LOAD NOT instructions minus 1. If
they do not match, a programming error will occur.
AND LD
In the following diagram, the two logic blocks are indicated by dotted lines. Studying this example shows
that an ON execution condition will be produced when either of the execution conditions in the left logic
block is ON (i.e., when either CIO 0.00 or CIO 0.01 is ON) and either of the execution conditions in the
right logic block is ON (i.e., when either CIO 0.02 is ON or CIO 0.03 is OFF).
0.00
0.02
0.01
0.03
OR LD
The following diagram requires an OR LOAD instruction between the top logic block and the bottom
logic block. An ON execution condition would be produced either when CIO 0.00 is ON and CIO 0.01 is
OFF or when CIO 0.02 and CIO 0.03 are both ON. The operation of and mnemonic code for the OR
LOAD instruction is exactly the same as those for a AND LOAD instruction except that the current
execution condition is ORed with the last unused execution condition.
0.00
0.01
0.02
0.03
CS/CJ/NSJ Series Instructions Reference Manual (W474)
i
Coding
5.00
Instruction
LD
OR
LD
OR NOT
AND LD
OUT
Second LD: Used for first bit of next block connected in series to previous block.
i
Coding
5.01
Instruction
LD
AND NOT
LD
AND
OR LD
OUT
Second LD: Used for first bit of next block connected in series to previous block.
Operand
0.00
0.01
0.02
0.03
---
5.00
Operand
0.00
0.01
0.02
0.03
---
5.01
3. Instructions
3
143

Advertisement

Table of Contents
loading

Table of Contents