Home › G-codes › Mach3 Mach4 › G16
G16 Polar coordinates on
Mach3 Mach4 G-code · Mill
X becomes the radius and Y the angle in degrees in the XY plane. Handy for bolt circles. The origin rule differs between Mach3 and Mach4.
Format
G16 X Y
Addresses
| Address | What it does |
|---|---|
X | Radius from the polar origin |
Y | Angle in degrees, counterclockwise from 3 o clock |
How it works
Modal, polar group. Cancel with G15.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S2500 M3 (SPINDLE ON)
G43 H1 Z1.0 (LENGTH OFFSET)
…
T1 M6 (TOOL CHANGE)
S2500 M3 (SPINDLE ON)
G43 H1 Z1.0 (LENGTH OFFSET)
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Mach3 uses the current point when G16 is read as the polar center. That is different from Fanuc.
- Mach4 uses work zero as the origin in G90 and the current point in G91.
- Mach3 allows only G0 and G1 moves while G16 is on. Mach4 also allows arcs with R.
Related codes
G16 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Polar coordinate command |
| Mazak (EIA) | Polar coordinate input on |
| Okuma OSP | Work coordinate system select, one block |
| Brother Speedio | Polar coordinate command |
| Heidenhain TNC (ISO) | Tangential arc, polar |
| Fagor 8055 8065 | Main plane by two axes |
| Hurco WinMax (NC) | Polar coordinates |
Every G-code for Mach3 Mach4 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 G16 in the app All Mach3 Mach4 G-codes