Specifications
4 - 44
4.3.11 LOOP to LEND control
Repeat control by repetition (LOOP to LEND)
(1) The LOOP to LEND loop is repeated for the set number of cycles.
(2) The repeat cycles are set to 1 to 65535 in the M code column.
(3) When LOOP is selected as the control system, settings other than the repeat
cycles (M code column) are ignored.
(4) When LEND is selected as the control system, the settings of other items are
ignored.
(5) When the repeat cycle designated by the LOOP becomes 0, the loop is
terminated, and the next positioning data No. processing is started. (The operation
pattern will be ignored.)
To stop the operation after the operation has been repeated for the designated
number of times, set the dummy positioning data (for example, incremental
positioning without movement amount) next to LEND.
Necessity of setting
Item
LOOP LEND
Operation pattern
Control system "LOOP" "LEND"
Axis to be interpolated
Acceleration time No.
Deceleration time No.
Positioning address
Arc address
Command speed
Dwell time
M code
(Setting of repeat cycles)
(6) The following shows an example where a jump is made to the positioning data
No.25 after LOOP is input to the positioning data No.22 and the repeat cycle 2 is
set to the M code column.
No.
Operation
pattern
Control system
Axis to
be
interpolated
Acceleration
time No.
Deceleration
time No.
Positioning
address
[µm]
Arc address
[µm]
Command
speed
[mm/min
]
Dwell time
[ms]
M code
Positioning data
comment
21
1:
Continuous
1: ABS linear 1
0: 100 0: 100 50000.0 0.0 2000.00 0 0
22
0:
Completed
Y:LOOP
0: 100 0: 100 0.0 0.0 0.00 0 2
23
1:
Continuous
1: ABS linear 1
0: 100 0: 100 100000.0 0.0 2000.00 0 0
24
1:
Continuous
1: ABS linear 1
0: 100 0: 100 150000.0 0.0 2000.00 0 0
25
0:
Completed
Z:LEND
0: 100 0: 100 0.0 0.0 0.00 0 0
26
0:
Completed
1: ABS linear 1
0: 100 0: 100 25000.0 0.0 2000.00 0 0
27
Positioning data No.21
22 23 24 25 22 23 24 25 26
|--------------------------|--------------------------|
Repeat cycles First Second
Repeat cycles