Appendix AInstruction Set
567
Block Programming Instructions
The following instructions are supported by version-2 CVM1 CPUs only.
Name Mnemonic Function Operand Data Areas Page
BLOCK PROGRAM END
BEND<001>
Indicates the end of a block program. None 439
CONDITIONAL BRANCH
IF<002>
IF<002> B
IF<002> NOT B
Indicates the part of the program that is to be executed
when a given condition is satisfied.
B:
IR
SR
HR
AR
LR
TC
440
NO BRANCH
ELSE<003>
Specifies the part of the program that is to be executed
when the IF condition is not satisfied.
None 440
BRANCH END
IEND<004>
Defines the end of the program portion that has started
with IF<002>.
None 440
ONE CYCLE AND WAIT
WAIT<005>
WAIT<005> B
WAIT<005> NOT B
Halts execution of a block program until a specified
condition is satisfied.
B:
IR
SR
HR
AR
LR
TC
443
CONDITIONAL BLOCK
EXIT
EXIT<006>
EXIT<006 B
EXIT<006> NOT B
Exits a block program if a given condition is satisfied. B:
IR
SR
HR
AR
LR
TC
444
LOOP
LOOP<009>
Defines the beginning of section to be repeated until a
specified terminal condition is satisfied.
None 445
LOOP END
LEND<010>
LEND<010> B
LEND<010> NOT B
Defines the end of the section to be repeated. Execution
of the specified section continues until the terminal
condition is satisfied.
B:
IR
SR
HR
AR
LR
TC
445
BLOCK PROGRAM
PAUSE
BPPS<011> N
Causes the execution of designated block program to
pause until a specified condition is satisfied (often used in
conjunction with a timer or counter).
N:
0 to 99
446
BLOCK PROGRAM
RESTART
BPRS<012> N
Restarts execution of the designated block program. N:
0 to 99
446
TIMER WAIT
TIMW<013> N
SV
The execution of the block program between the
TIMW<013> instruction and BEND<004> is not executed
until the set value of the specified timer has been reached.
SV: 000.0 to 999.9 s
SV:
IR
AR
DM
HR
LR
#
N:
TC
447
COUNTER WAIT
CNTW<014> N
SV
I
The portion of block program between the CNTW<014>
instruction and BEND<004> is not executed until the set
value of the specified counter has been reached.
SV:
IR
AR
DM
HR
LR
#
N:
TC
448