
PROGRAMMING
B–63514EN/01
15. CUSTOM MACRO
317
A macro is created which drills H holes at intervals of B degrees after a
start angle of A degrees along the periphery of a circle with radius I.
The center of the circle is (X,Y). Commands can be specified in either
the absolute or incremental mode. To drill in the clockwise direction,
specify a negative value for B.
H=3
H=4
H=2
H=1
A
B
B
Center (X,Y)
Radius I
G65 P9100 X x Y y Z z R r F f I i A a B b H h ;
X: X coordinate of the center of the circle
(absolute or incremental specification)(#24)
Y: Y coordinate of the center of the circle
(absolute or incremental specification)(#25)
Z : Hole depth (#26)
R: Coordinates of an approach point (#18)
F : Cutting feedrate (#9)
I : Radius of the circle (#4)
A: Drilling start angle(#1)
B: Incremental angle (clockwise when a negative value is specified)
(#2)
H: Number of holes (#11)
O0002;
G90 G92 X0 Y0 Z100.0;
G65 P9100 X100.0 Y50.0 R30.0 Z–50.0 F500 I100.0 A0 B45.0 H5;
M30;
Sample program
(bolt hole circle)
D Calling format
D Program calling a macro
program