3. Instructions
208
CS/CJ/NSJ Series Instructions Reference Manual (W474)
BREAK
Applicable Program Areas
Flags
Function
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.
Instruction Mnemonic Variations
Function
code
Function
BREAK LOOP BREAK --- 514
Programmed in a FOR-NEXT loop to cancel the
execution of the loop for a given execution condi-
tion. The remaining instructions in the loop are
processed as NOP(000) instructions.
Symbol
BREAK
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK Not allowed OK OK OK OK
Name Label Operation
Error Flag ER OFF
Equals Flag = OFF
Negative Flag N OFF
Program BREAK(514) between FOR(512) and
NEXT(513) to cancel the FOR-NEXT loop
when BREAK(514) is executed. When
BREAK(514) is executed, the rest of the
instructions up to NEXT(513) are processed as
NOP(000).
BREAK(514)
N repetitions
Condition a ON
Processed as
NOP(000).
Repetitions
forced to
end.