Acu-Rite CNC 3500i user manual G65 Macro Programming, Main, O99 * WINDOW-MACRO-CALL

Models: CNC 3500i

1 472
Download 472 pages 55.55 Kb
Page 436
Image 436

11.4 Advanced Programming

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.

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

 

 

*parameters passed:

*X (#24) = length of window in X axis

*Y (#25) = width of window in Y axis

*Z (#26) = absolute tool depth

410

11 G-Code Edit, Help, & Advanced Features

Page 436
Image 436
Acu-Rite CNC 3500i user manual G65 Macro Programming, Main, O99 * WINDOW-MACRO-CALL