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…
| Property | Value |
|---|---|
| Code | G12.1 / G13.1 |
| Control | Fanuc |
| Topic | Lathe and mill-turn |
| Syntax | G12.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
G28 H0.
G12.1
G01 X20. C0. F150.
X10. C8.66
…
G13.1Tips
- 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.