11.4 Advanced Programming

G66/G67 Macro Programming

This example is a modal macro program to mill slots in a plate at various locations. In contrast to the G65 (single-call macro) in Example 1, G66 (modal macro call) applies the macro to all subsequent moves, until canceled by G67. Program G67 after the last slot location.

Block #

Block

N1

O101 * SLOTCALL.G

 

 

N2

G90 G70 G0 G17

 

 

N3

T0 Z0

 

 

N4

X0 Y0

 

 

N5

T1 D.25 L 1 F30

 

 

N6

G66 P1255 X5 Y1 Z .1 A5 B12 C5

 

 

N7

X1 Y2

 

 

N8

X2 Y4

 

 

N9

G67

 

 

N10

G90 G0 T0 Z0

 

 

N11

X0 Y0

 

 

N12

M2

 

 

N13

 

 

 

N14

["SLOTMAC.G

 

 

412

11 G-Code Edit, Help, & Advanced Features

Page 438
Image 438
Acu-Rite CNC 3500i user manual G66/G67 Macro Programming, O101 * SLOTCALL.G