LOOP<009>
A
B
BEND<001>
(250)
BPRG 00
0000
00
C
IORF(184)
0000
0000
LEND<010> 000001
446
IEND<004> IEND<004>
IEND<004> LEND<010>
LEND<010>
• Loops cannot be nested within loops.
Incorrect:
LOOP<009>
LOOP<009>
LEND<010>
LEND<010>
• Do not reverse the order of LOOP and LEND.
Incorrect:
LEND<010>
:
:
LOOP<009>
When CIO 000000 is ON, the block program is executed. After A is executed,
B and the IORF(184) after it will be executed repeatedly until CIO 000001 is
ON, at which time C will be executed and the block program will end.
Address Instruction Operands
00000 LD 000000
00001 BPRG(250) 00
A
00015 LOOP<009>
B
00024 IORF(184)
0000
0000
00025 LEND<010> 000001
C
00033 BEND<001>
5-38-7 BLOCK PROGRAM PAUSE/RESTART : BPPS<011>/BPRS<012>
N: Block program number # (00 to 99)
Operand Data AreaLadder Symbol
BPPS<011> N
BPRS<012> N
BPPS<011> is used inside one block program to suspend the execution of
another block program. BPRS<012> restarts the specified block program.
These instructions are effective whenever executed, i.e., they do not rely on
operand bit status or execution condition.
Precautions Even if the execution of a block program is suspended, PVs of all timer and
high-speed timer with timer number T0000 through T0127 for the
CVM1-CPU01-EV2 and T0000 through T0255 for the CVM1-CPU11-EV2 or
CVM1-CPU21-EV2 defined by TIMW<013> or TMHW<015> inside the block
program are updated continuously.
Execution Flow Examples
Description
(CVM1 V2)
Block Programming Instructions Section 5-38