EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 560

Mitsubishi Electric MELSEC iQ-R Series
2110 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
Loading...
558
7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
Processing details
These instructions forcibly terminate the loop processing between the FOR and NEXT instructions, and pass the control to
the pointer specified by (P). Only a pointer in the same program file can be specified for (P). An operation error occurs if a
pointer in another program file is specified.
The remaining number of FOR to NEXT instruction loops at the time of forced termination is stored in (d). The remaining
number of loops includes the processing when the BREAK(P) instruction is executed.
The BREAK(P) instruction can be used only within the FOR to NEXT instruction loop.
The BREAK(P) instruction is valid only for one level of nesting. To forcibly terminate multiple levels of nesting, execute as
many BREAK(P) instructions as nesting levels.
Operation error
If no BREAK instruction is executed, the program performs loop processing as
many times as specified by the FOR instruction.
(1) Forced termination condition
(2) When the condition is met
Error code
(SD0)
Description
3342H The instruction is used outside the FOR to NEXT instruction loop.
3380H The jump destination corresponding to the pointer specified by (P) does not exist.
A pointer in another program is specified in (P).
BREAK
NEXT
(d) (P)
FOR K**
(P)
(1)
(2)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals