
PROGRAMMING
16. CUSTOM MACRO
B–63124EN/01
278
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)
Sample program
(bolt hole circle)
D Calling format