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

Table of Contents

Advertisement

Instruction
Symbol/Operand
Mnemonic
Code
CONDITIONAL
IF (802)
BLOCK
BRANCHING
IF
802
CONDITIONAL
IF (802)
BLOCK
B
BRANCHING
IF
B: Bit operand
802
CONDITIONAL
IF (802) NOT
BLOCK
B
BRANCHING
(NOT)
B: Bit operand
IF NOT
802
CONDITIONAL
---
BLOCK
BRANCHING
(ELSE)
ELSE
803
CONDITIONAL
---
BLOCK
BRANCHING
END
IEND
804
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
If the execution condition is ON, the instructions between IF(802) and
ELSE(803) will be executed and if the execution condition is OFF, the
instructions between ELSE(803) and IEND(804) will be executed.
Execution
Execution
condition
condition ON?
"A" executed (be-
tween IF and ELSE).
If the operand bit is ON, the instructions between IF(802) and
ELSE(803) will be executed. If the operand bit is OFF, the instructions
between ELSE(803) and IEND(804) will be executed.
Operand bit
ON?
IF R (IF NOT R)
"A" executed
(between IF and
ELSE).
The instructions between IF(802) and ELSE(803) will be executed and
if the operand bit is ON, the instructions be ELSE(803) and IEND(804)
will be executed is the operand bit is OFF.
If the ELSE(803) instruction is omitted and the operand bit is ON, the
instructions between IF(802) and IEND(804) will be executed
If the operand bit is OFF, only the instructions after IEND(804) will be
executed.
2. Summary of Instructions
Location
Execution
condition
Block program
Required
"B" executed
(after ELSE).
Block program
Required
"B" executed
(after ELSE).
Block program
Required
Block program
Required
Block program
Required
Page
1047
2
1047
1047
1047
1047
115

Advertisement

Table of Contents
loading

Table of Contents