Download Print this page

Forcibly Terminating The For To Next Instruction Loop - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Forcibly terminating the FOR to NEXT instruction loop

BREAK(P)
This instruction forcibly terminates the FOR to NEXT instruction loop and shifts the program execution to the pointer specified
by (P).
Ladder diagram
(d)
(P)
FBD/LD
EN
ENO
Pn
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
Device number storing the number of remaining loops
*1
(P)
Pointer number of the branch destination when the loop is
forcibly terminated
EN
Execution condition
ENO
Execution result
*1 In the case of the FBD/LD language, P displays as Pn.
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
(P)
Processing details
• This instruction forcibly terminates the FOR to NEXT instruction loop and shifts the program execution to the pointer
specified by (P). Only the pointer numbers within the same program file can be specified in (P). If a pointer in another
program is specified in (P), an operation error occurs.
(1)
BREAK
(2)
(P)
(1): Forced termination condition
(2): When the forced termination condition is satisfied
• In (d), the number of remaining FOR to NEXT instruction loops at the forced termination is stored. Note that the number
includes the loop when the BREAK(P) instructions are executed.
• The BREAK(P) instructions can be used only between the FOR and NEXT instructions.
• The BREAK(P) instructions can be used for only one nesting level. To forcibly terminate multiple nesting levels, execute as
many BREAK(P) instructions as the number of nesting levels.
Word
T, ST, C, D, W,
U\G
SD, SW, R
FOR
K**
When the BREAK instruction is
not executed, the program
execution returns to the FOR
(d)
(P)
instruction as many times as
specified by the FOR
instruction.
NEXT
Structured text
Not supported
Range
Data type
16-bit signed binary
Device name
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANY16
POINTER
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.4 Structuring Instruction
8
397

Hide quick links:

Advertisement

loading