G-code reference

G82: Drilling cycle with dwell

G82 is drilling cycle with dwell. Like G81, but dwells at the bottom for P time. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G82 does

G82 pauses at the bottom of the hole before retracting, which cleans up the floor of counterbores and spot faces and gives chamfers a clean finish.

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

G82 example

G82 X10. Y10. Z-3. R2. P300 F100.

Spot face to Z-3 and dwell 0.3 s.

WordWhat it means here
G82Drilling cycle with dwell
X10.X axis target (on a lathe, the diameter)
Y10.Y axis target
Z-3.Z axis target or depth
R2.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
P300a parameter: dwell time, program number, sequence number or cycle setting, depending on the code
F100.feed rate (on threading codes, the lead)

Codes people confuse with G82

CodeWhat it does instead
G81 Drilling cycle (spot drill). Feeds to depth and rapids out: one move per hole.
G04 Dwell. Pauses motion for a set time; the spindle keeps running.

Other codes in the canned cycle group

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

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G76 Fine boring cycle
  • G80 Canned cycle cancel
  • G81 Drilling cycle (spot drill)
  • G83 Deep hole peck drilling
  • 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: G82

  1. What does G82 do? (Mill)

  2. Which code: Like G81, but dwells at the bottom for P time.(Mill)

  3. What does G81 do? (Mill)

Show the answers
  1. Like G81, but dwells at the bottom for P time.
  2. G82
  3. Feeds to depth and rapids out: one move per hole.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G82 mean in CNC programming?
Drilling cycle with dwell. Like G81, but dwells at the bottom for P time.
Is G82 modal?
Yes. G82 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G82 and G81?
G82 (drilling cycle with dwell): like G81, but dwells at the bottom for P time. G81 (drilling cycle (spot drill)): feeds to depth and rapids out: one move per hole.
What is the difference between G82 and G04?
G82 (drilling cycle with dwell): like G81, but dwells at the bottom for P time. G04 (dwell): pauses motion for a set time; the spindle keeps running.

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