G17 G18 G19 Plane Selection

These codes set the working plane for circular interpolation (G02/G03) and cutter compensation. They tell the control which two axes an arc or offset lives in.

The three planes

Code Plane Typical use
G17 XY Standard milling (default)
G18 XZ Lathe work, vertical arcs
G19 YZ Side-axis arcs

Most mill programs run in G17 and never change it. Switch planes only when an arc or compensated move lies in a different pair of axes.

G17 (select XY plane)

FAQ

What happens if I select the wrong plane before a circular move? The G02/G03 arc will be interpreted using the wrong pair of axes, producing an arc in the wrong orientation or a fault, since the control needs to know which two axes define the arc before it can calculate the toolpath.

Which plane is active by default on most controls? G17, the XY plane, is the default on most mills at power-up, which is why it’s rarely programmed explicitly. G18 and G19 are the ones typically called out when the program needs the XZ or YZ plane instead.

Related: G02 / G03.

Why the plane matters

Arcs and cutter compensation only make sense relative to a plane, and the plane code tells the control which two axes they happen in. In the XY plane an arc center is given with I and J, in the XZ plane with I and K, and in the YZ plane with J and K. Using the wrong plane gives an alarm or an arc in the wrong place.

Good habits

Milling machines default to G17, while lathes normally use G18, since the cutting happens in the XZ plane. Specify the plane explicitly in the program header rather than relying on the default left by the previous program. When a program uses helical or tilted plane moves, double check that the plane, the arc direction, and the center offsets all agree.

Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.