7.4 Sub-programs

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.

 

 

 

236

7 Programming: Canned Cycles, sub-programs

Page 262
Image 262
Acu-Rite CNC 3500i user manual Looping a sub-program