
13. Program Support Functions
13.5 User Macro Specifications
367
To subprogram
To subprogram
To subprogram
-Y
-500.
W
-500.
-X
300R
100R
200R
G28 X0 Y0 Z0;
T1 M06;
G90 G43 Z100.H01;
G54 G00 X0 Y0;
G81 Z-100.R3.F100 L0 M03;
G65 L9920 X-500. Y-500. A0 B8 R100.;
G65 L9920 X-500. Y-500. A0 B8 R200.;
G65 L9920 X-500. Y-500. A0 B8 R300.;
(Example 3) Grid
After defining the hole data with the canned cycle (G72 to G89), macro call is commanded as a
hole position command.
Subprogram is
on next page
-Y
y1
W
x1
-X
i1
G81 Zz1 Rr1 Ff1;
G65Ll1 Xx1 Yy1 Ii1 Jj1 Aa1 Bb1;
j1
x1 ; X axis hole position
y1 ; Y axis hole position
i1 ; X axis interval
j1 ; Y axis interval
a1 ; No. of holes in X direction
b1 ; No. of holes in Y direction
To subprogram
To subprogram
-Y
W
-X
-X
-Z
G28 X0 Y0 Z0;
T1 M06;
G90 G43 Z100.H01;
G54 G00 X0 Y0;
G81 Z-100. R3.F100 L0 M03;
G65 L9930 X0 Y0 I-100. J-75. A5B3;
G84 Z-90. R3. F250 M03;
G65 L9930 X0 I-100. J-75. A5B3;
-75.
-75.
-100.
100.
100.
100.