Omron SYSMAC CP Series Instruction & Reference Manual page 51

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

Advertisement

Sample program
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.
CP1E CPU Unit Instructions Reference Manual(W483)
Coding Example (1)
100.00
0.04
Instruction
0.05
LD
OR NOT
LD NOT
OR
AND LD
LD
OR
AND LD
.
.
OUT
Coding Example (1)
100.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
---
.
.
100.00
i
Operand
0.00
0.01
0.02
0.03
---
0.04
0.05
---
.
.
100.01
2 Instructions
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
100.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
100.01
2
2-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents