Break - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

BREAK

The BREAK instruction is used to cancel repeat processing from the lowest level FOR instruction to the
NEXT instruction.
Instruction
BREAK
Break Loop
Variables
None
Function
The BREAK instruction cancels the repeat processing from the lowest level FOR instruction to the
NEXT instruction. It moves processing to the next instruction after the NEXT instruction. The process-
ing between the BREAK instruction and the NEXT instruction is not executed.
The following figure shows a programming example. When the FOR loop is executed, the value of vari-
able A is checked each time. If the value of variable A is TRUE, the repeat processing is ended immedi-
ately. In this example, the Out instruction after the BREAK instruction is not executed, and the value of
variable C is retained.
LD
FOR
EN
InitVal
INT#0
INT#10
EndVal
StepVal
INT#1
A
BREAK
EN ENO
B
C
NEXT
EN
ENO
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
ENO
position
Index
2 Instruction Descriptions
Graphic expression
BREAK
EN
ENO
ST expression
None
2-89
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents