G19

Machining center, LatheModal, group 02 (lathe 16)

YZ plane selection

Format and notes

G19

Diagram: The three planes and the viewing direction for arcs

X+Y+G02G03XY plane (G17)View from +ZZ+X+G02G03ZX plane (G18)View from +YY+Z+G02G03YZ plane (G19)View from +X
Arc direction (G02/G03) and cutter radius compensation are defined on the selected plane, and direction is judged looking from the + side of the axis normal to that plane. On a vertical MC, +Y is the back of the machine, so viewing the ZX plane (G18) from the front makes the rotation look reversed.

On lathes: YZ plane selection (lathes with a Y axis and live tooling)

On lathes (FANUC-type G-code system A) the code does the same job. Group 16.

Differences between controls and machines

The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.

SourceMachineItemDetail
HaasLatheGroup02

Frequently asked questions about G19

What is G19 (YZ plane selection) used for and how is it formatted in a CNC program?
G19 commands "YZ plane selection" on Machining center, Lathe. The standard program format is "G19". Used for arcs in the lateral direction or drilling into the side face, referenced to the plane
Is G19 a modal code or a one-shot (non-modal) code?
G19 is a modal code (Group 02). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
Does G19 work differently on machining centers (mills) versus CNC lathes?
On both machining centers and CNC lathes (G-code System A), G19 performs the same function ("YZ plane selection"). However, valid axis addresses (such as X/Y/Z versus diameter/incremental U/W) and parameter numbers can still differ between mill and lathe controls.
Are there differences in G19 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G19. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.

Sources

The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.

  1. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
  2. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  3. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
  4. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
  5. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com