Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 241

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
BREAK
Instruction
BREAK LOOP
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
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.
204
Mnemonic
Variations
BREAK
---
Block program areas
Step program areas
Not allowed
OK
Label
ER
OFF
=
OFF
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
Interrupt tasks
OK
OK
Operation
N repetitions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
Condition a ON
Repetitions
forced to
end.
Processed as
NOP(000).

Advertisement

Table of Contents
loading

Table of Contents