G-code reference

G83: Deep hole peck drilling

G83 is deep hole peck drilling. Pecks Q deep and retracts fully out of the hole each time. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G83 does

G83 drills in pecks of Q and pulls the drill all the way back to the R plane after each one to clear chips, then rapids down close to the last depth and continues. It is slower than G73 but needed for deep holes where chips pack.

TypeG-code
MachineMill
GroupCanned cycle
ModalYes: stays active until replaced by another code from the same group

G83 example

G83 X10. Y10. Z-40. R2. Q5. F120.

Peck 5 mm at a time, full retract each peck.

WordWhat it means here
G83Deep hole peck drilling
X10.X axis target (on a lathe, the diameter)
Y10.Y axis target
Z-40.Z axis target or depth
R2.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
Q5.peck depth or another cycle setting
F120.feed rate (on threading codes, the lead)

Codes people confuse with G83

CodeWhat it does instead
G73 High-speed peck drilling. Drills in pecks with a small retract to break the chip.
G81 Drilling cycle (spot drill). Feeds to depth and rapids out: one move per hole.

Other codes in the canned cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G83.

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G76 Fine boring cycle
  • G80 Canned cycle cancel
  • G81 Drilling cycle (spot drill)
  • G82 Drilling cycle with dwell
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed out)
  • G86 Boring cycle (spindle stop, rapid out)
  • G89 Boring cycle with dwell (feed out)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G83

  1. What does G83 do? (Mill)

  2. Which code: Pecks Q deep and retracts fully out of the hole each time.(Mill)

  3. What does G73 do? (Mill)

Show the answers
  1. Pecks Q deep and retracts fully out of the hole each time.
  2. G83
  3. Drills in pecks with a small retract to break the chip.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G83 mean in CNC programming?
Deep hole peck drilling. Pecks Q deep and retracts fully out of the hole each time.
Is G83 modal?
Yes. G83 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G83 and G73?
G83 (deep hole peck drilling): pecks Q deep and retracts fully out of the hole each time. G73 (high-speed peck drilling): drills in pecks with a small retract to break the chip.
What is the difference between G83 and G81?
G83 (deep hole peck drilling): pecks Q deep and retracts fully out of the hole each time. G81 (drilling cycle (spot drill)): feeds to depth and rapids out: one move per hole.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint