G-code reference
G19 G-Code: YZ Plane Selection
YZ Plane Selection — Selects the YZ plane for arcs and compensation, using J and K for arc centres.
| Property | Value |
|---|---|
| Code | G19 |
| Function | YZ Plane Selection |
| Modal group | 02 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G19 |
What does G19 do?
Selects the YZ plane for arcs and compensation, using J and K for arc centres.
G19 is modal: once programmed it remains in effect for the following blocks until another code from modal group 02 replaces it or the control is reset.
Syntax and parameters
G19G19 example program
G19 G03 Y20.0 Z0 J10.0 K0▶ Open this example in the G-code viewer
Tips and common mistakes
- Return to G17 before canned cycles.
Controller compatibility
G19 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.
Related codes
Frequently asked questions
Is G19 modal?
Yes. G19 belongs to modal group 02 and stays active until another code of that group is programmed.
What does G19 mean in CNC?
G19 means YZ Plane Selection. Selects the YZ plane for arcs and compensation, using J and K for arc centres.
What is the difference between G19 and G17?
G19 is YZ Plane Selection, while G17 is XY Plane Selection. See the G17 page for its syntax and examples.
Can I use G19 on a lathe?
Usually not with the same meaning: G19 is documented here for milling machines. Check your control manual for the equivalent.