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


 
2 Instructions
2-12
CP1E CPU Unit Instructions Reference Manual(W483)
Precautions
Differentiate up (@) or differentiate down (%) can be specified for OR. If differentiate up (@) is speci-
fied, the execution condition is turned ON for one cycle only after the status of the operand bit goes
from OFF to ON. If differentiate down (%) is specified, the execution condition is turned ON for one
cycle only after the status of the operand bit goes from ON to OFF.
Immediate refreshing (!) can be specified for OR/OR NOT. An immediate refresh instruction updates
the status of the built-in input bit just before the instruction is executed from the CPU Unit.
For OR, it is possible to combine immediate refreshing and up or down differentiation (!@ or !%). If
either of these is specified, the input is refreshed from the Basic Input Unit just before the instruction
is executed and the execution condition is turned ON for one cycle only after the status of the oper-
and bit goes from OFF to ON, or from ON to OFF.
Sample program
i
0.00
100.00
OR OR NOT
Instruction Operand
LD 0.00
AND 0.01
AND 0.02
OR 0.03
AND 0.04
LD 0.05
AND 0.06
OR NOT 0.07
AND LD --
OUT 100.00
0.01 0.02 0.04 0.05
0.03 0.07
0.06