G16: Polar coordinates on
What G16 does
With G16 active in the G17 plane, X is the radius and Y is the angle measured from the X axis. It makes holes on a circle easy to program: the radius stays the same and only the angle changes. Cancel it with G15 straight after the pattern.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Polar coordinates |
| Modal | Yes: stays active until replaced by another code from the same group |
G16 example
G16 X50. Y30. A point 50 mm from the origin, at 30 degrees.
| Word | What it means here |
|---|---|
G16 | Polar coordinates on |
X50. | X axis target (on a lathe, the diameter) |
Y30. | Y axis target |
Codes people confuse with G16
| Code | What it does instead |
|---|---|
G15 | Polar coordinates off. Cancels polar coordinate input and returns to normal X/Y positions. |
G68 | Coordinate rotation. Rotates the programmed path around a centre point by an angle R. |
Other codes in the polar coordinates group
Only one code from a modal group is active at a time. Programming any of these replaces G16.
G15Polar coordinates off
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G16
-
What does
G16do? (Mill) -
Which code: Reads X as a radius and Y as an angle, handy for bolt-hole circles.(Mill)
-
What does
G15do? (Mill)
Show the answers
- Reads X as a radius and Y as an angle, handy for bolt-hole circles.
- G16
- Cancels polar coordinate input and returns to normal X/Y positions.
Frequently asked questions
- What does G16 mean in CNC programming?
- Polar coordinates on. Reads X as a radius and Y as an angle, handy for bolt-hole circles.
- Is G16 modal?
- Yes. G16 belongs to the polar coordinates group and stays active until another code from that group is programmed.
- What is the difference between G16 and G15?
- G16 (polar coordinates on): reads X as a radius and Y as an angle, handy for bolt-hole circles. G15 (polar coordinates off): cancels polar coordinate input and returns to normal X/Y positions.
- What is the difference between G16 and G68?
- G16 (polar coordinates on): reads X as a radius and Y as an angle, handy for bolt-hole circles. G68 (coordinate rotation): rotates the programmed path around a centre point by an angle R.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.