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…
| Property | Value |
|---|---|
| Code | G39 |
| Function | Corner Offset Circular Interpolation |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Milling machines |
| Syntax | G39 (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
G39 (or G39 I_ J_)| Address | Meaning |
|---|---|
I J | Direction vector of the next move (optional) |
G39 example program
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.