LOOP/LEND

The LOOP command is used for loop control by the repetition of LOOP to LEND.
It is repeated for a specified number of times from the position data number assigned to LOOP to the position data number assigned to LEND.
Nesting loop is allowed and LOOP / LEND have to be set as 'continuous control' type.
The table below illustrates an example of how the positioning commands in between LOOP and LEND are repeated for the number of times specified in the 'target address' of LOOP.

Position Data No.

Control Pattern

Interpolation

Acceleration Time

Deceleration Time

Control   Code

Dwell   Time

Operation Speed

Target Address

1

Continuous

Non-Interpolation

No. 1

No. 1

LOOP

0

0

3

2

Continuous

Non-Interpolation

No. 1

No. 1

ABS

0

1000

  • 1000

3

Continuous

Non-Interpolation

No. 1

No. 1

INC

0

1500

2000

4

Continuous

Non-Interpolation

No. 1

No. 1

ABS

0

2000

  • 2000

5

Continuous

Non-Interpolation

No. 1

No. 1

LEND

0

0

0

Since the 'Target Address' of the LOOP is 3, the Position Data No. 2, No. 3 and No. 4 commands are repeated for three times.