Mitsubishi Electric M800VW Series Programming Manual page 282

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.5 Program Branch Instructions
BREAK, BREAKP: Forced end of FOR to NEXT instruction loop
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
BREAK
BREAKP
 Setting data
Setting data
D
Number of device that will store the number of repetitions remaining
Pn
Number of branch destination pointer when the end of processing repetitions.
 Functions
 Forces the end of repetition processing based on the FOR to NEXT instruction loop, and shifts to the execution of the
pointer designated by Pn.
Only the pointer within the same program file can be specified for Pn.
If a pointer in the other program file is specified for Pn, an arithmetic error is resulted.
Forced end condition
BREAK
When forced end condition
has been established
Pn
 The number of repetitions remaining at the point that the FOR to NEXT loop was brought to a forced end is stored at "D".
However, the number of times when the BREAK instruction was executed is also included in the number of repetitions
remaining.
 The BREAK instruction can be used only during the execution of a FOR to NEXT instruction loop.
 The BREAK instruction can be used only when there is only one level of nesting.
If an end is forced when there are multiple nesting levels, execute the same number of BREAK instructions as there are
nesting levels.
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
FOR
K
D
Pn
NEXT
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
If the BREAK instruction has
not been executed, execution
will return to the FOR
instruction for the number of
times designated by the FOR
instruction.
261
Digit
Pointer
designa-
Index
tion
H
P
BREAK
D
Pn
BREAKP D
Pn
Data type
BIN 16 bits
Device name(Pointer)
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents