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…

By cnccode · Updated
PropertyValue
CodeG112
FunctionPolar Coordinate Interpolation On (Lathe)
Modal group21
TypeModal — stays active until replaced by another code of the same group
Used onLathes
SyntaxG112 … 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

Format
G112  …  G113

G112 example program

Example
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.

Frequently asked questions

Is G112 modal?
Yes. G112 belongs to modal group 21 and stays active until another code of that group is programmed.
What does G112 mean in CNC?
G112 means 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. G113 cancels. Fanuc system A uses G112/G113 (= G12.1/G13.1).
What is the difference between G112 and G12?
G112 is Polar Coordinate Interpolation On (Lathe), while G12 is Circular Pocket Milling CW (Haas) / Polar Interpolation (Lathe G12.1). See the G12 page for its syntax and examples.
Can I use G112 on a mill?
Usually not with the same meaning: G112 is documented here for lathes. Check your control manual for the equivalent.