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, thenumber of AND LOAD instructions becomes one less than the number of LOAD and LOAD NOTinstructions before that.In method (2), make sure that the total number of LOAD and LOAD NOT instructions before ANDLOAD 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 bythe Peripheral Device.
OR LD
i
The OR LOAD instruction can be used repeatedly. In programming method (2) above, however, thenumber of OR LOAD instructions becomes one less than the number of LOAD and LOAD NOTinstructions before that.In method (2), make sure that the total number of LOAD and LOAD NOT instructions before ORLOAD 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 bythe 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