10 - 16
MELSEC-A
10 ADVANCED POSITIONING CONTROL
10.3.9 Restrictions when using the NEXT start
The "NEXT start" is a command indicating the end of the repetitions when executing
section "10.3.7 Repeated start (FOR loop)" and section "10.3.8 Repeated start (FOR
condition)".
The following shows the restrictions when setting "7: NEXT start" in the "start block
data".
(1) The processing when "7: NEXT start" is set before execution of "5: FOR loop" or
"6: FOR condition" is the same as that for a "0: normal start".
(2) Repeated processing will not be carried out if there is no "7: NEXT start"
command after the "5: FOR loop" or "6: FOR condition" command. (Note that an
"error" will not occur.)
(3) Nesting is not possible between "5: FOR loop" and "7: NEXT start", or between
"6: FOR condition" and "7: NEXT start". A warning "FOR to NEXT nesting
structure" (warning code: 506) will occur if nesting is attempted.
Start block data
Da.12
Special start command
1st point Normal start
2nd point FOR
3rd point Normal start
4th point FOR
5th point Normal start
6th point Normal start
7th point NEXT
8th point Normal start
9th point NEXT
•
•
The JUMP destination of the
NEXT designated with points
7 and 9 is the FOR of point 4.
A warning will occur if the
NEXT designated with point 9
is executed.