EasyManuals Logo

Omron SYSMAC CP Series Instruction & Reference Manual

Omron SYSMAC CP Series
467 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #95 background imageLoading...
Page #95 background image
2-59
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Control Instructions
2
BREAK
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 Step program areas Subroutines Interrupt tasks
Usage --- OK OK
Name Label Operation
Error Flag P_ER OFF
Equals Flag P_EQ OFF
Negative Flag P_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.
FOR
N
BREAK
NEXT
a

Table of Contents

Other manuals for Omron SYSMAC CP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP Series and is the answer not in the manual?

Omron SYSMAC CP Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals