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.

By cnccode · Updated
PropertyValue
CodeG83
FunctionPeck Drilling Cycle (Deep Hole)
Modal group09
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG83 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

Format
G83 X_ Y_ Z_ R_ Q_ F_
AddressMeaning
QPeck depth (incremental, positive)
ZFinal depth
RRetract plane

G83 example program

Example
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.

Frequently asked questions

Is G83 modal?
Yes. G83 belongs to modal group 09 and stays active until another code of that group is programmed.
What does G83 mean in CNC?
G83 means 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.
What is the difference between G83 and G73?
G83 is Peck Drilling Cycle (Deep Hole), while G73 is Pattern Repeating (Lathe) / High-Speed Peck Drilling (Mill). See the G73 page for its syntax and examples.
Can I use G83 on a lathe?
Usually not with the same meaning: G83 is documented here for milling machines. Check your control manual for the equivalent.