EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 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
Page #482 background imageLoading...
Page #482 background image
7-108
BREAK(P)
7.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))
BREAK(P)
Function
(1) Forces an end to a FOR to NEXT instruction loop and shifts the operation to the pointer
specified by Pn. Only a pointer within the same program file can be assigned to Pn. If a
pointer of the other program file is used, an operation error will be returned.
(2) The remaining number of the FOR to NEXT instruction loop times is stored at .
Note that the remaining number includes the operation when the BREAK instruction is
executed.
(3) The BREAK instruction can be used only during the execution of a FOR to NEXT instruction
loop.
(4) The BREAK instruction can be used only when there is only one level of nesting. When an
end is forced to the multiple nesting levels, execute the same number of BREAK instructions
for the nesting levels.
: Number of the device where the remaining number of loops will be stored (BIN 16 bits)
Pn : Number of the pointer (device name (pointer)) where the program is branched at the forced end of a loop.
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants
Other
P
Bit Word Bit Word
–– ––
Pn –– ––
Basic
Process
High
performance
Redundant
Universal
LCPU
Pn
Pn
BREAK
BREAKP
D
D
Command
Command
BREAKP
BREAK
D
D
Pn
Pn
Forced end condition
*
*
BREAK
KFOR
NEXT
When forced end condition is satisfied
D
If the BREAK instruction is not executed,
program returns to the FOR instruction
as many times as the number specified
with the FOR instruction.
D

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals