CNC lathe · G-code
G112 / G113: XY to XC (polar) interpolation
G112 lets a live-tool lathe program a face feature in X and Y; the control turns it into C-axis rotation and X moves. G113 cancels it, on lathes with a C axis. Haas lists it in modal group 04. Format below from Haas, its maker. LinuxCNC and Fanuc have no such code.
On a Haas mill, G112 and G113 select the #9 and #10 work coordinate systems.
Worked example
The shape of a G112 block (Haas). Written for this page in the Haas format.
G112 (XY to XC on)G01 X- Y- F- (straight strokes on the face)G03 X- Y- R- (an arc)G113 (back to X and C)How each control writes it
Haas G112 … G113
One source: Haas Automation, the control's maker
- While G112 is on, G17 (XY) is used: G01 for straight strokes, G02 and G03 for arcs.
- X and Y position commands become C-axis and X-axis moves.
- G113 cancels the conversion.
Source: Haas Automation, lathe G112
Controls without it
- LinuxCNC: LinuxCNC's G-code reference lists no G112. Source (archived Oct 29, 2026)
- Fanuc: FANUC 0i-TF calls polar coordinate interpolation G12.1 (on) and G13.1 (off). (FANUC B-64604EN-1/01, Operator's Manual, 0i-TF (lathe), §3.1)
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.