Instructions

Example using a ¼" drill and putting 3-holes in a row 1/4" deep:
%
g00 g20 g40 g80 g90 z0.50
x0.50 y0
g91 g81 g98 x1 y0 z-0.30 r-0.45 L3 f3
g00 g90 g80 x0.50 y0
%
Example using a ¼" drill and putting 12-holes ¼ " deep:
%
g00 g20 g40 g80 g90 z0.50
x0.50 y0
g91 g81 g98 x1 y0 z-0.30 r-0.45 L4 f3
x0 y1
x-1 y0 L3
x0 y1
x1 y0 L3
g00 g90 g80 x0.50 y0
m2
%
An explanation of each line of code:
%
g00 g20 g40 g80 g90 z0.50
x0.50 y0 – Home position
g91 g81 g98 x1 y0 z-0.30 r-0.45 L4 f3 – First row with 4 holes, in increments of 1 along
the x-axis from (x1.5, y0, z0.50). Same motion as described in previous example, except
for number of holes (number of repetitions L is set to L4). The g98 command is required
to have the z-axis at its original starting position, which is 0.500" above the part because
we are in incremental (g91).
x0 y1 – 1st hole in the second row, increments are x = 0, y = 1; therefore, the tool travels
from the last hole in the first row to the 1st hole in the second row for 1 along y-axis and
makes one hole (motion along z-axis is the same as described in previous example).
x-1 y0 L3 – Next 3 holes in the second row, increment for x = -1, y = 0. Since L3 is
number of repetitions, 3 holes in increments of x-1 along the x-axis are going to be
drilled (motion along z-axis is the same as described in previous example).
x0 y1 – 1st hole in the third row, increments for x = 0, y = 1, tool travels from the last
hole in second row to the 1st hole in the third row for 1 along y-axis and makes one hole
(motion along z-axis is the same as described in the previous example).
x1 y0 L3 – Next 3 holes (L3) in the third row in increments of 1 along x-axis, increments
for x = 1, y = 0, (motion along z-axis is the same as described in the previous example).
g00 g90 g80 x0.50 y0 – Back to home position, g80, g90, cancel canned g-cycle and
incremental distance mode.
72