Appendices
A-72
CJ2 CPU Unit Software User’s Manual
CONDI-
TIONAL
BLOCK
BRANCH-
ING (NOT)
IF NOT 802 IF (802) NOT
B
B: Bit operand
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.
Block pro-
gram
Required
CONDI-
TIONAL
BLOCK
BRANCH-
ING (ELSE)
ELSE 803 --- If the ELSE(803) instruction is omitted and the operand bit is ON,
the instructions between IF(802) and IEND(804) will be executed
Block pro-
gram
Required
CONDI-
TIONAL
BLOCK
BRANCH-
ING END
IEND 804 --- If the operand bit is OFF, only the instructions after IEND(804) will
be executed.
Block pro-
gram
Required
ONE CYCLE
AND WAIT
WAIT 805 WAIT(805) Block pro-
gram
Required
ONE CYCLE
AND WAIT
WAIT 805 WAIT(805)
B
B: Bit operand
If the operand bit is OFF (ON for WAIT NOT(805)), the rest of the
instructions in the block program will be skipped. In the next cycle,
none of the block program will be executed except for the execu-
tion condition for WAIT(805) or WAIT(805) NOT. When the execu-
tion condition goes ON (OFF for WAIT(805) NOT), the instruction
from WAIT(805) or WAIT(805) NOT to the end of the program will
be executed.
Block pro-
gram
Required
ONE CYCLE
AND WAIT
(NOT)
WAIT NOT 805 WAIT(805) NOT
B
B: Bit operand
If the operand bit is OFF (ON for WAIT NOT(805)), the rest of the
instructions in the block program will be skipped. In the next cycle,
none of the block program will be executed except for the execu-
tion condition for WAIT(805) or WAIT(805) NOT. When the execu-
tion condition goes ON (OFF for WAIT(805) NOT), the instruction
from WAIT(805) or WAIT(805) NOT to the end of the program will
be executed.
Block pro-
gram
Required
TIMER WAIT TIMW
(BCD)
813 TIMW(813)
N
SV
N: Timer number
SV: Set value
Block pro-
gram
Required
TIMWX
(Binary)
816 TIMWX(816)
N
SV
N: Timer number
SV: Set value
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
If the execution condition is ON for WAIT(805), the rest of the
instruction in the block program will be skipped.
Execution
condition
OFF
Execution
condition
OFF
Execution
condition
ON
"A"
executed.
Execution
condition
"B" executed.
"C" executed.
"C"
executed.
"C"
executed.
Wait
BEND
SV
C
Time elapsed.
preset.
Delays execution of the block program until the specified time
has elapsed. Execution continues from the next instruction
after TIMW(813)/TIMWX(816) when the timer times out.
SV: 0 to 999.9 s for BCD and 0 to 6,553.5 s for binary
"A"
executed.
"B" executed.
"C" executed.