What is the difference between G81, G82 and G83?+−
G81 goes down, drills and comes out. G82 does the same but waits a dwell time P at the bottom, so the bottom cleans up on counterbores and flat-bottomed holes. G83 splits the depth into pecks of Q millimeters and comes out to the R plane on each one to clear the chips, which is what deep holes need.
How high do I put the R plane?+−
Between 2 and 3 mm above the face of the part on flat, well-clamped work. Higher only lengthens the cycle; lower leaves the drill no margin if the surface is not flat or the stock comes oversize. On an irregular surface it has to go above the highest point.
G98 or G99?+−
G99 as long as the path between holes is clear, because it only returns to the R plane and saves time. G98 when the traverse crosses a clamp, a vise jaw or a boss, because it goes up to the initial plane. You can switch between the two from hole to hole inside the same cycle.
How do I repeat the cycle at several holes?+−
Just write blocks with the new X and Y dimensions: the whole cycle repeats at each position. For evenly spaced rows you can use K on Fanuc or L on Haas, but they only work in incremental mode: in G90 the control drills the same hole in the same place.
How do I work out the Z bottom of a through hole?+−
Part thickness plus the height of the drill point plus 1 to 2 mm of breakout. For a standard 118-degree point, the point height is around 30 percent of the diameter: on a 5 mm drill that is about 1.5 mm.