Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 179

Table of Contents

Advertisement

Precautions
• Differentiate up (@) or differentiate down (%) can be specified for OR. If differentiate up (@) is
specified, 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 input bit just before the instruction is executed from the Basic Input Unit (but not for
Basic Input Units on Slave Racks or for C200H Group 2 Multi-point Input Units).
• 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
operand bit goes from OFF to ON, or from ON to OFF.
• With CJ2 CPU Units, OR and OR NOT can be used for bits in the DM or EM Area. For other models
of CPU Unit, OR and OR NOT cannot be used for bits in the DM or EM Area. Use OR TST (350)
instead.
Sample program
0.00
0.03
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0.01
0.02
0.04
0.05
0.07
OR
i
0.08
0.06
Instruction
AND
AND
OR NOT
OR
AND
AND
OR NOT
AND LD
OUT
3. Instructions
Operand
LD
0.00
0.01
0.02
0.03
0.04
LD
0.05
0.06
0.07
--
0.08
3
141

Advertisement

Table of Contents
loading

Table of Contents