One Methods
O0001
G17 G40 G80
N001 G00 G91 G30 X0 Y0 Z0 T1;
M06;
G00 G90 G54 X-150. Y-100 .;
G43 H01 Z10.M03 S1200;
G81 Z-25.R5.F200;
G91 X50. L6;
Y50 .;
G91 X-50. L6;
Y50 .;
G91 X50. L6;
Y50 .;
G91 X-50. L6;
Y50 .;
G91 X50. L6;
G00 G80 Z100 .;
M30;
Two Method
O0001
G17 G40 G80
N001 G00 G91 G30 X0 Y0 Z0 T1;
M06;
G00 G90 G54 X-150. Y-100 .;
G43 H01 Z10.M03 S1200;
G81 Z-25.R5.F200;
M98 P001 L6;
G91 Y50 .;
M98 P002 L6;
G91 Y50 .;
M98 P001 L6;
G91 Y50 .;
M98 P002 L6;
G91 Y50 .;
M98 P001 L6;
G00 G80 Z100 .;
M30;
Three Method
O0001
G17 G40 G80
N001 G00 G91 G30 X0 Y0 Z0 T1;
M06;
G00 G90 G54 X-150. Y-100 .;
G43 H01 Z10.M03 S1200;
G81 Z-25.R5.F200;
G37.1 X-50. Y-100.I50. J50. P7 K5;
G00 G80 Z100 .;
M30;
Among them: G37.1 X-50. Y-100.I50. J50. P7 K5; / (more than one hole /)
X, Y: indicates the distance from the first hole to the origin of the workpiece / (absolute coordinate /)
I: The distance between each hole in the X axis direction
J: Y-axis pitch per hole
P: Number of holes in X direction
K: Number of holes in Y direction