Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 182

Table of Contents

Advertisement

3. Instructions
Example Programming
AND LD
0.00
0.02
0.01
0.03
• 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
0.00
0.01
0.02
0.03
0.04
0.05
• 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.
146
Coding Example (1)
5.00
0.04
Instruction
LD
0.05
OR NOT
LD NOT
OR
AND LD
LD
OR
AND LD
.
.
OUT
Coding Example (1)
5.01
Instruction
LD
AND NOT
LD NOT
AND NOT
OR LD
LD
AND
OR LD
.
.
OUT
i
Operand
0.00
0.01
0.02
0.03
---
0.04
0.05
---
.
.
5.00
i
Operand
0.00
0.01
0.02
0.03
---
0.04
0.05
---
.
.
5.01
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Coding Example (2)
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
5.00
Coding Example (2)
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
5.01

Advertisement

Table of Contents
loading

Table of Contents