8 APPLICATION INSTRUCTION
8.4 Structuring Instruction
397
8
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).
Setting data
■
Descriptions, ranges, and data types
*1 In the case of the FBD/LD language, P displays as Pn.
■
Applicable devices
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.
• 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.
Ladder diagram
Structured text
Not supported
FBD/LD
Operand
Description
Range
Data type
Data type (label)
(d)
Device number storing the number of remaining loops
16-bit signed binary
ANY16
(P)
Pointer number of the branch destination when the loop is
forcibly terminated
Device name
POINTER
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(d)
(P)
When the BREAK instruction is
not executed, the program
execution returns to the FOR
instruction as many times as
specified by the FOR
instruction.
(1): Forced termination condition
(2): When the forced termination condition is satisfied
(d)
(P)
EN
ENO
d
Pn
BREAK
NEXT
(d)
(P)
FOR
K**
(P)
(1)
(2)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......