Home › G-codes › Siemens 840D 828D › G17
G17 XY working plane
Siemens 840D 828D G-code · Mill and lathe
Selects the X Y plane for arcs, tool radius compensation and cycles. The tool axis is Z, so tool length acts in Z. G17 is the usual default on milling machines.
Format
G17
How it works
Modal, G group 6 (plane selection).
Example program
G17 G90 G54 ; XY PLANE
G0 X10 Y0 Z2 ; POSITION
G1 Z-1 F100
G2 X30 Y0 CR=10 F200 ; ARC IN XY PLANE
G0 X10 Y0 Z2 ; POSITION
G1 Z-1 F100
G2 X30 Y0 CR=10 F200 ; ARC IN XY PLANE
Example is in inch. Check offsets and clearances first.
Watch out for
- Change the plane only with tool radius compensation off (G40).
- Drilling and pocket cycles work in the active plane. A wrong plane drills along the wrong axis.
Related codes
G17 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | XY plane select |
| 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 |
| 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 Siemens 840D 828D 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 Siemens 840D 828D G-codes