G-code reference
G112 G-Code: Polar Coordinate Interpolation On (Lathe)
Polar Coordinate Interpolation On (Lathe) — On lathes with live tooling and a C axis, lets you program X–C (or X–Y on Haas) milling in Cartesian coordinates, for flats, hexagons and slots on the face…
| Property | Value |
|---|---|
| Code | G112 |
| Function | Polar Coordinate Interpolation On (Lathe) |
| Modal group | 21 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Lathes |
| Syntax | G112 … G113 |
What does G112 do?
On lathes with live tooling and a C axis, lets you program X–C (or X–Y on Haas) milling in Cartesian coordinates, for flats, hexagons and slots on the face. G113 cancels. Fanuc system A uses G112/G113 (= G12.1/G13.1).
G112 is modal: once programmed it remains in effect for the following blocks until another code from modal group 21 replaces it or the control is reset.
Syntax and parameters
G112 … G113G112 example program
M154 (C axis on - builder specific)
G112
G01 G42 X20.0 C0 F200.
C10.0
X-20.0
G40
G113▶ Open this example in the G-code viewer
Tips and common mistakes
- Program X in diameter, C as a linear coordinate while G112 is active.
Controller compatibility
G112 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.
Related codes
- G12 — Circular Pocket Milling CW (Haas) / Polar Interpolation (Lathe G12.1)
- G13 — Circular Pocket Milling CCW (Haas) / Cancel Polar Interpolation (G13.1)