G-code reference

G16: Polar coordinates on

G16 is polar coordinates on. Reads X as a radius and Y as an angle, handy for bolt-hole circles. It is modal, so it stays active on the following lines until another code from the same group replaces it.

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.

TypeG-code
MachineMill
GroupPolar coordinates
ModalYes: 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.

WordWhat it means here
G16Polar coordinates on
X50.X axis target (on a lathe, the diameter)
Y30.Y axis target

Codes people confuse with G16

CodeWhat 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.

  • G15 Polar 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

  1. What does G16 do? (Mill)

  2. Which code: Reads X as a radius and Y as an angle, handy for bolt-hole circles.(Mill)

  3. What does G15 do? (Mill)

Show the answers
  1. Reads X as a radius and Y as an angle, handy for bolt-hole circles.
  2. G16
  3. Cancels polar coordinate input and returns to normal X/Y positions.

Drill this code with the rest of the core set

More practice hubs

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.

Free preview · no card Try G-Code Sprint