G17 XY plane select
Fanuc G-code · Mill, Lathe
On mills: XY plane select
Selects the XY plane for arcs, cutter compensation and canned cycles. The drilling axis is Z. Normal default on a vertical mill.
Format
G17
How it works
Modal, group 02. Usually the power on default.
Example program
G17 G20 G40 G49 G80 G90 (SAFE START LINE)
G54 G00 X0. Y0. (WORK ZERO)
G02 X1. Y1. R1. F20. (ARC IN XY PLANE)
G54 G00 X0. Y0. (WORK ZERO)
G02 X1. Y1. R1. F20. (ARC IN XY PLANE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Put G17 in the safe start line. A program left in G18 or G19 cuts arcs in the wrong plane.
- Change planes only with cutter compensation cancelled.
On lathes: XY plane select
Selects the XY plane for arcs and compensation. On a lathe it is used with polar coordinate interpolation or a Y axis for face milling.
Format
G17
How it works
Modal, group 16. Lathe power on default is G18.
Example program
G17 G12.1 (XY PLANE, POLAR INTERPOLATION ON)
G13.1 (POLAR INTERPOLATION OFF)
G18 (BACK TO ZX PLANE)
G13.1 (POLAR INTERPOLATION OFF)
G18 (BACK TO ZX PLANE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Go back to G18 before turning arcs or G71 style cycles.
- Turn off tool nose radius compensation before changing planes.
Related codes
G17 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | XY plane selection |
| Mazak (EIA) | XY plane selection |
| Okuma OSP | Plane select XY |
| Mitsubishi M70 M80 | XY plane select |
| Brother Speedio | XY plane select |
| Siemens 840D 828D | XY working plane |
| Heidenhain TNC (ISO) | Working plane XY, tool axis Z |
| Fagor 8055 8065 | XY plane select |
| LinuxCNC Tormach | XY plane select |
| Mach3 Mach4 | XY plane |
| Centroid CNC12 Acorn | XY plane select |
| Hurco WinMax (NC) | XY plane select |
| Fadal | XY plane select |
| Swiss (Citizen Star) | XY plane select |
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 G17 in the app All Fanuc G-codes