G-code reference
G83 G-Code: Peck Drilling Cycle (Deep Hole)
Peck Drilling Cycle (Deep Hole) — Deep-hole peck drilling: the drill feeds Q deep, retracts fully to R to clear chips, rapids back to just above the previous depth, and repeats.
| Property | Value |
|---|---|
| Code | G83 |
| Function | Peck Drilling Cycle (Deep Hole) |
| Modal group | 09 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G83 X_ Y_ Z_ R_ Q_ F_ |
What does G83 do?
Deep-hole peck drilling: the drill feeds Q deep, retracts fully to R to clear chips, rapids back to just above the previous depth, and repeats.
G83 is modal: once programmed it remains in effect for the following blocks until another code from modal group 09 replaces it or the control is reset.
Syntax and parameters
G83 X_ Y_ Z_ R_ Q_ F_| Address | Meaning |
|---|---|
Q | Peck depth (incremental, positive) |
Z | Final depth |
R | Retract plane |
G83 example program
G98 G83 X0 Y0 Z-40.0 R2.0 Q4.0 F120.
X25.0
G80▶ Open this example in the G-code viewer
Tips and common mistakes
- Typical Q: 1×D for steel, 2–3×D in aluminum; less for deeper holes.
- With through-coolant drills, pecking is often unnecessary.
- Haas allows I, J, K for decreasing pecks.
Controller compatibility
G83 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.
Related codes
- G73 — Pattern Repeating (Lathe) / High-Speed Peck Drilling (Mill)
- G81 — Drilling Cycle (Spot Drill)
- G80 — Cancel Canned Cycle