beautypg.com

Instruction 83- next (for-next loop) – Maple Systems MAPware-7000 User Manual

Page 138

background image

MAPware-7000 Ladder Logic Guide

130

1010-1041 rev. 00

Instruction 83- NEXT (For-Next loop)

Expression:

Space Requirement: 1 line x 1 column Location Requirement: Right rail

Function:

This instruction configures a FOR-NEXT loop.

If the input is OFF, the repetition is forcibly broken, and the program execution is moved to the
next instruction.

Execution Condition:

Input

Operation

Output

OFF

Forcibly breaks the repetition

OFF

ON

Repetition

ON

Operand:

No operand is required.

Example:

When B005 is ON, the program segment between FOR and NEXT is executed 30 times in a scan.
In the above example, the rung 3 is executed 30 times. As a result, the data of D0000 to D0029
are transferred to D0500 to D0529. (Block transfer).

Note
The FOR instruction must always have a corresponding NEXT instruction.
Nesting of the FOR-NEXT loop is not allowed. That is, the FOR instruction cannot be used in a
FOR-NEXT loop.
The FOR and NEXT instructions cannot be programmed on the same rung.
The following connection is not allowed.