G-code reference

G39 G-Code: Corner Offset Circular Interpolation

Corner Offset Circular Interpolation — With cutter compensation active, inserts an arc of the tool radius at an outside corner so the tool rolls around the corner instead of overshooting into an…

By cnccode · Updated
PropertyValue
CodeG39
FunctionCorner Offset Circular Interpolation
Modal group00
TypeOne-shot (non-modal) — active only in its own block
Used onMilling machines
SyntaxG39 (or G39 I_ J_)

What does G39 do?

With cutter compensation active, inserts an arc of the tool radius at an outside corner so the tool rolls around the corner instead of overshooting into an extended sharp corner.

G39 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.

Syntax and parameters

Format
G39 (or G39 I_ J_)
AddressMeaning
I JDirection vector of the next move (optional)

G39 example program

Example
G41 D01 G01 X0 Y0 F500.
Y40.0
G39
X60.0

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Most CAM systems add corner arcs themselves, so G39 is rarely posted.

Controller compatibility

G39 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 G39 modal?
No. G39 is a one-shot (group 00) code and only acts in the block where it appears.
What does G39 mean in CNC?
G39 means Corner Offset Circular Interpolation. With cutter compensation active, inserts an arc of the tool radius at an outside corner so the tool rolls around the corner instead of overshooting into an extended sharp corner.
What is the difference between G39 and G41?
G39 is Corner Offset Circular Interpolation, while G41 is Cutter Radius Compensation Left. See the G41 page for its syntax and examples.
Can I use G39 on a lathe?
Usually not with the same meaning: G39 is documented here for milling machines. Check your control manual for the equivalent.