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)
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......