Acu-Rite CNC 3500i User Manual

Page of 472
410
11 G-Code Edit, Help, & Advanced Features
1
1
.4 A
d
v
a
nced Pr
ogr
a
mming
G65 Macro Programming, Main
The following is an example of a simple macro program. In this 
example, the macro is a "window milling" cycle designed to mill a 
square or rectangular window through a part. 
* parameters passed:
* X (#24) = length of window in X axis
* Y (#25) = width of window in Y axis
* Z (#26) = absolute tool depth
Block #
Block
N1
O99 * WINDOW-MACRO-CALL
N2
G90 G70 G0 G17
N3
T0
N4
Z0
N5
X0 Y0
N6
T1  * .5000 DIA.
N7
G90 G0 X1 Y1
N8
Z.1
N9
F40
N10
G65 P3 X4 Y4 Z-.55
N11
G90 G0 Z.1
N12
T0
N13
Z0
N14
X0 Y0
N15
M30 O99