Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 560

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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.
(1)
(2)
(P)
(1) Forced termination condition
(2) When the condition is met
• 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
Error code
Description
(SD0)
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).
7 APPLICATION INSTRUCTIONS
558
7.4 Structure Creation Instructions
FOR
K**
BREAK
(d)
(P)
NEXT
If no BREAK instruction is executed, the program performs loop processing as
many times as specified by the FOR instruction.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents