CNC mill · G-code
G17 / G18 / G19: plane selection
G17 selects the XY plane, G18 XZ and G19 YZ for arcs and other circular moves. G17 is the default. Haas lists it in modal group 02. Formats below from Haas and LinuxCNC, each from its maker.
Worked example
Cut an arc in the XZ plane, then go back to XY. Written for this page in the Haas format.
G18 (XZ plane)G02 X1. Z-0.5 R0.5 F10.G17 (back to XY for the rest of the program)How each control writes it
Haas G17 / G18 / G19
One source: Haas Automation, the control's maker
- Each is modal and applies to every later circular move (G02, G03, G12, G13).
- With cutter compensation (G41/G42) on, use only G17 for circular moves.
- G12 and G13 circular pocketing always run in XY.
Source: Haas Automation, mill G17
LinuxCNC G17 / G18 / G19
One source: the LinuxCNC project, the control's maker
- G18 is named the ZX plane.
- G17.1, G18.1 and G19.1 select the UV, WU and VW planes, which do not support arcs.
Source: LinuxCNC documentation, "G17 - G19.1 Plane Select" (archived Oct 29, 2026)
No Fanuc row yet: that chapter of the 0i manual has not been read.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.