Pro codes · Fanuc

G12.1 / G13.1 — Polar coordinate interpolation (Fanuc)

Polar coordinate interpolation. On lathes with live tooling and a C axis, G12.1 lets you program flats, hexagons and slots on the face in X and C as if C were a linear Y axis. The control converts the…

By cnccode · Updated
On this page
  1. What it does
  2. Example
  3. Tips
  4. More: lathe and mill-turn
  5. Frequently asked questions
PropertyValue
CodeG12.1 / G13.1
ControlFanuc
TopicLathe and mill-turn
SyntaxG12.1 … G13.1

What it does

On lathes with live tooling and a C axis, G12.1 lets you program flats, hexagons and slots on the face in X and C as if C were a linear Y axis. The control converts the moves into C rotation and X motion. G13.1 cancels it (G112/G113 in G-code system B and C).

Example

Fanuc
G28 H0.
G12.1
G01 X20. C0. F150.
X10. C8.66
…
G13.1

Tips

  • X is a diameter, C is programmed as a length in mm here.

Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.

More: lathe and mill-turn

Frequently asked questions

What is G12.1 / G13.1 on Fanuc?
Polar coordinate interpolation. On lathes with live tooling and a C axis, G12.1 lets you program flats, hexagons and slots on the face in X and C as if C were a linear Y axis. The control converts the moves into C rotation and X motion. G13.1 cancels it (G112/G113 in G-code system B and C).
Was this page helpful?