BREAK
Instruction
BREAK LOOP
Symbol
Applicable Program Areas
Area
Usage
Flags
Name
Error Flag
Equals Flag
Negative Flag
Function
Program BREAK(514) between FOR(512) and
NEXT(513) to cancel the FOR-NEXT loop
when
BREAK(514)
BREAK(514) is executed, the rest of the
instructions up to NEXT(513) are processed as
NOP(000).
Precautions
• A BREAK(514) instruction cancels only one loop, so several BREAK(514) instructions (the number of
levels nested) are required to escape from nested loops.
• BREAK(514) can be used only in a FOR-NEXT loop.
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
BREAK
---
Step program areas
---
Label
P_ER
OFF
P_EQ
OFF
P_N
OFF
is
executed.
When
Function
code
Programmed in a FOR-NEXT loop to cancel the
execution of the loop for a given execution condi-
514
tion. The remaining instructions in the loop are
processed as NOP(000) instructions.
BREAK
BREAK(514)
Subroutines
OK
Operation
N repetitions
FOR
N
BREAK
a
NEXT
2 Instructions
Function
Interrupt tasks
OK
Condition a ON
Repetitions
forced to
end.
Processed as
NOP(000).
2-59
2