198
is reached, program execution will loop back to the next previous LOOP<09>
an exit condition is attained.
A YES LOOP END condition is produced by an ON execution condition for
LEND<10> without an operand, by an ON bit for LEND<10> with an operand
bit, or by an OFF bit for LEND<10> NOT with an operand bit.
LD, possibly in combination with AND or OR, must be used to create an ex-
ecution condition for LEND<10> when used without an operand bit.
Note
Execution inside a loop does not refresh I/O data. If I/O data must be re-
freshed during the loop, use IORF(97).
•
Conditional block branching can be used within a loop, but the entire
branch operation must be within the loop.
Correct:
I
ncorrect:
LOOP<09>
LOOP<09>
IF<02>
IF<02>
IF<02>
IF<02>
IEND<04>
IEND<04>
IEND<04>
LEND<10>
LEND<10>
•
Loops cannot be nested within loops.
Incorrect:
LOOP<09>
LOOP<09>
LEND<10>
LEND<10>
•
Do not reverse the order of LOOP and LEND.
Incorrect:
LEND<10>
:
:
LOOP<09>
5-21-10 BLOCK PROGRAM PAUSE – BPPS<11> and
BLOCK PROGRAM RESTART – BPRS<12>
BPPS<11>
N
BPRS<12>
N
Instruction Formats
N
: Block program number
# (00 to 99)
Definer Data Areas
BPPS<11> is used inside one block program to suspend the execution of
another block program. BPRS<12> restarts the specified block program.
These instructions are effective whenever executed, i.e., they do not rely on
operand bit status or execution condition.
Example
If 00000 is ON, the following program suspends execution of either block pro-
gram 01 or block program 02 depending on the status of 00001. The block
Precautions
Description
Block Programming Instructions
Section 5-21