2. Summary of Instructions
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
114
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.
"B" executed
(after ELSE).
"B" executed
(after ELSE).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
Block program
1019
Required
Block program
1019
Required
Block program
1019
Required
Block program
1019
Required
Block program
1019
Required
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers