CNC mill · G-code
G73: high-speed peck drilling cycle
G73 drills in pecks with a short retract between them to break the chip, without pulling out of the hole each time. Use G83 when chips must be cleared. Haas lists it in modal group 09. Formats below from Haas, LinuxCNC, Mach4 and Fanuc, each from its maker.
Worked example
Two holes 0.75" deep, 0.1" chip-breaking pecks. Written for this page in the Haas format.
T1 M06 (tool 1)G00 G90 G54 X1. Y1. (first hole)S1200 M03G43 H01 Z0.1 M08G73 Z-0.75 R0.1 Q0.1 F12.X2. (second hole)G80 G00 Z1. M09 (cancel the cycle)M30From R0.1 to Z-0.75 at Q0.1 is 0.85 ÷ 0.1 = 8.5, so 9 pecks, the last one short.
How each control writes it
Haas G73 X- Y- Z- R- Q- F- (or I- J- K- in place of Q)
One source: Haas Automation, the control's maker
- X
- X location of the hole (optional)
- Y
- Y location of the hole (optional)
- Z
- Z position at the bottom of the hole
- R
- R plane: the Z position above the part the cycle feeds from (optional)
- F
- Feedrate
- Q
- Peck depth, always incremental (optional)
- I
- First peck depth (optional)
- J
- Amount each peck shrinks (optional)
- K
- Minimum peck (optional)
- L
- Number of holes (repeats) in G91 incremental mode (optional)
- P
- Dwell at the bottom, seconds (optional)
- Three ways to program it: I, J, K; K and Q (returns to R after the pecks total K); or Q alone.
- I, J, K and Q are always positive. Setting 22 sets the retract.
Source: Haas Automation, mill G73
LinuxCNC G73 X- Y- Z- R- Q- L-
One source: the LinuxCNC project, the control's maker
- X
- Hole X location (optional)
- Y
- Hole Y location (optional)
- Z
- Final depth
- R
- Retract (R) plane along Z
- Q
- Peck increment along Z; must be positive
- L
- Repeat count, used in incremental mode (optional)
- Each peck rapids up 0.010 in (0.254 mm) to break the chip.
- An error if Q is zero or negative, or R is missing.
Source: LinuxCNC documentation, "G73 Drilling Cycle with Chip Breaking" (archived Oct 29, 2026)
Mach4 G73 X- Y- Z- Q- R- L- F-
One source: Artsoft (Newfangled Solutions), the control's maker
- X
- Hole X position (optional)
- Y
- Hole Y position (optional)
- Z
- End point (bottom) of the hole
- Q
- Peck amount, always positive
- R
- Retract plane; the rapid plane under G99 (optional)
- L
- Number of repetitions (optional)
- F
- Feed rate
- Retracts only a set amount after each peck: parameter 5114, default 0.025 in (0.6 mm).
Source: Mach4 Mill Programming Guide v1.1 (Artsoft), "G73 High Speed Peck" (archived Jul 1, 2024)
Fanuc G73 X_ Y_ Z_ R_ Q_ F_ K_ ;
One source: FANUC, the control's maker
- X
- Hole X position (optional)
- Y
- Hole Y position (optional)
- Z
- Bottom of the hole: a position in G90, the distance from the R point in G91
- R
- R point: a position in G90, the distance from the initial level in G91
- Q
- Depth of each peck
- F
- Feedrate
- K
- Number of repeats, for equally spaced holes (give the first hole in G91) (optional)
- FANUC 0i-MF (machining centre), from its operator’s manual. On another FANUC model, check that control’s manual.
- After each peck it backs off, in rapid, by a clearance set in parameter No. 5114, then feeds on.
- G98 returns to the initial level after the hole, G99 to the R point.
- Start the spindle with an M code before the cycle.
Source: FANUC B-64604EN-2/01, Operator's Manual, 0i-MF (machining centre), §5.1.1
How the controls differ
- Only Haas takes I, J, P.
- A word two controls share can still mean different things: read each control's list above.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.