Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
BREAK, BREAKP
- 232 -
{ BREAK, BREAKP ... Forced end of FOR to NEXT loop
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { { {
P
{
5
Command
BREAK
D
Pn
D
Pn
Setting data
Pn
Number of device to
store the number of
repetitions remaining
D
Number of branch
destination pointer
when the end of
processing repetitions.
BREAKP
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.
Pn
Pn
Forced end condition
BREAK
K * *
FOR
NEXT
When forced end condition is satisfied
If the BREAK command has no
t
been executed, execution will
return to the FOR command for
the number of times designated
by the FOR command.
D
(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.