Back to Supported G-Codes
G17, G18, G19 - Plane Selection
DMC File Mode: Supported
Streaming Mode: Supported
Description
The plane selection commands (G17, G18, G19) define which coordinate plane will be used for circular interpolation (G2/G3 arc moves) and drilling cycles (G81, G82, G83).
Once set, the selected plane remains active until changed by another plane selection command. G17 (XY plane) is the default plane selection.
Syntax
G17 ; XY Plane Selection
G18 ; XZ Plane Selection
G19 ; YZ Plane Selection
Parameters
Command | Parameters | Plane | Rotation Axis |
---|---|---|---|
G17 | None | XY | Z |
G18 | None | XZ | Y |
G19 | None | YZ | X |
Examples
Basic XY plane arc (most common)
G17 ; Select XY plane
G2 X10 Y10 I5 J0 F100 ; Clockwise arc in XY plane
Vertical arc using XZ plane
G18 ; Select XZ plane
G3 X20 Z15 I10 K0 F200 ; Counter-clockwise arc in XZ plane
Side profile arc using YZ plane
G19 ; Select YZ plane
G2 Y5 Z5 J2.5 K2.5 F150 ; Clockwise arc in YZ plane
Complete machining sequence with plane changes
G17 ; Select XY plane for top surface
G2 X10 Y10 I5 J0 F100 ; Arc on top surface
G18 ; Select XZ plane for side profile
G3 X20 Z-5 I5 K0 F150 ; Arc on side profile
G17 ; Return to XY plane