Looping a sub-program, 4 sub-pr ogr a ms – ACU-RITE CNC 3500i User Manual
Page 264

238
7 Programming: Canned Cycles, sub-programs
7.
4 Sub-pr
ogr
a
ms
Looping a sub-program
Use the Loop command to repeat the execution of a sub-program the
specified number of times. It is possible to optionally conduct each
sub-program iteration in a new location by specifying the increment
amount for one or more axes.
Select "Other Cycles" and then "Loop" from the pop-up
menu.
Conversational format: Loop
G-code format: G65 Pn Ln
Field
Code
Description
Sub#
P
The uniquely identifying number of the
sub-program to be called and repeated.
(Required)
#Loops
M
The number of times the sub-program
should be repeated before returning.
(required)
XIncr
X
Distance the X-Axis increments after each
loop cycle of the sub-program.
YIncr
Y
Distance the Y-Axis increments after each
loop cycle of the sub-program.
ZIncr
Z
Distance the Z-Axis increments after each
loop cycle of the sub-program.
ZFeed
I
The feedrate to be used in the Z-Axis when
conducting the ZIncr movement.