Omron CP1E-E@@D@-@ Computer Hardware User Manual


 
2-15
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Input Instructions
2
AND LD/OR LD
Sample program
AND LD
i
The AND LOAD instruction can be used repeatedly. In programming method (2) above, however, the
number of AND LOAD instructions becomes one less than the number of LOAD and LOAD NOT
instructions before that.
In method (2), make sure that the total number of LOAD and LOAD NOT instructions before AND
LOAD is not more than eight.
To use nine or more, program using method (1).
If there are nine or more with method (2), then a program error will occur during the program check by
the Peripheral Device.
OR LD
i
The OR LOAD instruction can be used repeatedly. In programming method (2) above, however, the
number of OR LOAD instructions becomes one less than the number of LOAD and LOAD NOT
instructions before that.
In method (2), make sure that the total number of LOAD and LOAD NOT instructions before OR
LOAD is not more than eight.
To use nine or more, program using method (1).
If there are nine or more with method (2), then a program error will occur during the program check by
the Peripheral Device.
0.00 0.02
0.03
0.04
0.050.01
100.00
Coding Example (1) Coding Example (2)
Instruction Operand
LD 0.00
OR NOT 0.01
LD NOT 0.02
OR 0.03
AND LD ---
LD 0.04
OR 0.05
AND LD ---
.
.
.
.
OUT 100.00
Instruction Operand
LD 0.00
OR NOT 0.01
LD NOT 0.02
OR 0.03
LD 0.04
OR 0.05
.
.
.
.
AND LD ---
AND LD ---
.
.
.
.
OUT 100.00
0.00 0.01
0.030.02
0.050.04
100.01
Coding Example (1) Coding Example (2)
Instruction Operand
LD 0.00
AND NOT 0.01
LD NOT 0.02
AND NOT 0.03
OR LD ---
LD 0.04
AND 0.05
OR LD ---
.
.
.
.
OUT 100.01
Instruction Operand
LD 0.00
AND NOT 0.01
LD NOT 0.02
AND NOT 0.03
LD 0.04
AND 0.05
.
.
.
.
OR LD ---
OR LD ---
.
.
.
.
OUT 100.01