Instruction Functions
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
104
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.
Function
"B" executed
(after ELSE).
"B" executed
(after ELSE).
Section 2-2
Location
Page
Execution
condition
Block program
1197
Required
Block program
1197
Required
Block program
1197
Required
Block program
1197
Required
Block program
1197
Required
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers