Home › G-codes › Fanuc › G12.1
G12.1 Polar coordinate interpolation on
Fanuc G-code · Mill, Lathe
On mills: Polar coordinate interpolation on
Turns a linear axis and a rotary axis into a flat X and C plane so you can program flats or slots on the face of a part in Cartesian moves. Mostly used on lathes with live tooling, rare on mills.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
How it works
Modal, group 21. Cancel with G13.1.
Example program
G12.1 (POLAR INTERPOLATION ON)
G01 X1. F10. (PROGRAM IN THE FLAT PLANE)
C.5 (CUT A FLAT)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- This is an option. The linear and rotary axis pair is set by parameters.
- Start and cancel cutter compensation inside the mode, not across G12.1 or G13.1.
- On many mills you will never see it. Use it only if the builder set it up.
On lathes: Polar coordinate interpolation on
Turns a live tool, X and the C axis into a flat XY style plane on the face of the part. Use it to mill flats, hex and slots on the face with X and C moves.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X | Linear axis, follows the normal diameter setting |
C | Hypothetical axis, programmed as a linear distance |
How it works
Modal until G13.1.
Example program
G98 (FEED PER MINUTE)
G00 X1.2 Z.1 C0 (APPROACH)
G17 G12.1 (POLAR INTERPOLATION ON)
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Many machines need G17 before G12.1. Follow the builder example.
- C is a linear distance inside the mode, not degrees.
- Feed slows near the center. Keep the tool path away from X0 when you can.
Related codes
G13.1 · G07.1 · G17 · G18 · G98
G12.1 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Mazak (EIA) | Polar coordinate interpolation on |
| Mitsubishi M70 M80 | Polar coordinate interpolation on |
| Swiss (Citizen Star) | Polar coordinate interpolation on |
Every G-code for Fanuc in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G12.1 in the app All Fanuc G-codes