Mitsubishi Electric MELDAS C6 Programming Manual page 241

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

BREAK, BREAKP ... Forced end of FOR to NEXT loop
Bit device
X
Y M
L
F
B SB T SM V T
D
P
BREAK
BREAKP
Function
(1) The repetition processing by the FOR to NEXT loop is forced to end, and shifts to the execution
of the pointer designated by Pn.
Forced end condition
When forced end condition is satisfied
Pn
(2) The number of repetitions remaining at the time that the FOR to NEXT loop was forced to end is
stored at D.
However, the number of times when the BREAK command was executed is also included in the
number of repetitions remaining.
(3) The BREAK can be used only during the execution of a FOR to NEXT loop.
(4) A BREAK can be used only when there is only one level of nesting
When there are multiple nesting levels, execute the same number of BREAK commands as there
are nesting levels.
8. Function Commands
BREAK, BREAKP
Usable device
Word device
C D R W SW Z SD K
Command
BREAK
BREAKP
K * *
FOR
D
BREAK
Pn
NEXT
- 232 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
stant
H
P
Setting data
Number of device to
D
D
Pn
store the number of
repetitions remaining
Number of branch
Pn
destination pointer
D
Pn
when the end of
processing repetitions.
If the BREAK command has not
been executed, execution will
return to the FOR command for
the number of times designated
by the FOR command.
Digit
No. of
desig-
Index
steps
nation
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents