G-code reference

G82 G-Code: Drilling Cycle with Dwell (Counterbore / Spot)

Drilling Cycle with Dwell (Counterbore / Spot) — Like G81 but dwells at the bottom for P milliseconds, which cleans up flat-bottom counterbores and spot-faces.

By cnccode · Updated
PropertyValue
CodeG82
FunctionDrilling Cycle with Dwell (Counterbore / Spot)
Modal group09
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG82 X_ Y_ Z_ R_ P_ F_

What does G82 do?

Like G81 but dwells at the bottom for P milliseconds, which cleans up flat-bottom counterbores and spot-faces.

G82 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
G82 X_ Y_ Z_ R_ P_ F_
AddressMeaning
PDwell (ms on Fanuc)

G82 example program

Example
G98 G82 X0 Y0 Z-6.0 R2.0 P300 F120.
G80

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Use for chamfering with a spot drill to get a consistent chamfer.

Controller compatibility

G82 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 G82 modal?
Yes. G82 belongs to modal group 09 and stays active until another code of that group is programmed.
What does G82 mean in CNC?
G82 means Drilling Cycle with Dwell (Counterbore / Spot). Like G81 but dwells at the bottom for P milliseconds, which cleans up flat-bottom counterbores and spot-faces.
What is the difference between G82 and G81?
G82 is Drilling Cycle with Dwell (Counterbore / Spot), while G81 is Drilling Cycle (Spot Drill). See the G81 page for its syntax and examples.
Can I use G82 on a lathe?
Usually not with the same meaning: G82 is documented here for milling machines. Check your control manual for the equivalent.