Haas Mill · G-code
G17 XY Plane Selection
Selects the XY plane for arcs, cutter comp and canned cycles. The default on a mill.
What G17 does on a Haas mill
G17 tells the control that arcs, cutter radius compensation and drilling cycles work in the XY plane, with Z as the tool axis. It is the power-on default on a Haas mill and belongs in your safe-start line.
G18 selects XZ and G19 selects YZ. Those are used for arcs on the side of a part or for some 4th-axis work. Switching planes changes how I, J, K and the direction of G02/G03 are interpreted.
G17 format
| Address | Meaning |
|---|---|
G17 | XY plane (I, J) |
G18 | XZ plane (I, K) |
G19 | YZ plane (J, K) |
G17 example program
G00 G17 G40 G49 G80 G90 (safe-start line)⚠ Watch out
If a previous program left G18 or G19 active and you skipped the safe-start line, your next XY arc will be cut in the wrong plane.
Related codes
G17 questions
What is a safe-start line?
A block near the top of each program that puts the control in a known state, for example G00 G17 G40 G49 G80 G90.
Independent reference. Not affiliated with, sponsored by or endorsed by Haas Automation, Inc. Haas is a trademark of its respective owner. Always confirm codes against your machine's operator manual — options and settings vary by model and software version.