Inch system. Compute the Q peck increment for G83 / G73 peck drilling, accounting for drill tool-tip length and the R clearance plane.
tan(90° − angle/2) × (D / 2). For a 135° point that's ≈ 0.207 × D; for the common 118° point ≈ 0.300 × D; for a 90° spot drill ≈ 0.500 × D.R + wanted depth + tip length. For a through hole: R + material thickness + tip length + breakthrough. Dividing this by the number of pecks gives Q.G83 line defines the cycle once — final depth Z, retract plane R, peck Q, and feed F. Every X Y line after it repeats that same cycle at a new hole, until G80 cancels it. The Q on that line is exactly what this calculator sizes.
(--- safety / setup ---) G00 G90 G17 G20 G40 G49 G80 M05 T02 M06 (load drill) G90 G54 S8149 M03 (spindle on) G00 X0.0 Y-.906 (rapid to hole 1) G43 H02 Z1.0 M08 (tool length comp, coolant) G00 Z.1 (rapid down near part) (--- G83 peck cycle ---) G83 G99 Z-.200 R.050 Q.125 F24.45 (2 pecks of .125) X.6406 Y-.6406 (cycle repeats at hole 2) X.906 Y0.0 (... hole 3) X.6406 Y.6406 (... hole 4) G80 (cancel canned cycle) (--- clean up ---) G00 Z.1 M09 (retract, coolant off) G28 G91 Z0. M05 (home Z, spindle off) G90 M30 (end program)
Tip-length factors derived from tan(90° − angle/2) × (D/2). Verify Q against your post-processor and tooling before running.