Omron SYSMAC CP Series Instruction & Reference Manual page 50

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
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 exe-
cution condition is ORed with the last unused execution condition.
0.00
0.01
0.02
0.03
2-14
i
Coding
100.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
100.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
---
100.00
Operand
0.00
0.01
0.02
0.03
---
100.01
CP1E CPU Unit Instructions Reference Manual(W483)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents