G-code reference

G19: YZ plane selection

G19 is yZ plane selection. Selects the YZ plane for arcs and compensation. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G19 does

G19 puts arcs and compensation in the YZ plane, used for features cut on the side of a part along Y.

TypeG-code
MachineMill
GroupPlane
ModalYes: stays active until replaced by another code from the same group

G19 example

G19 G02 Y20. Z-5. R5.

Arc in the YZ plane.

WordWhat it means here
G19YZ plane selection
G02Circular interpolation, clockwise
Y20.Y axis target
Z-5.Z axis target or depth
R5.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting

Codes people confuse with G19

CodeWhat it does instead
G17 XY plane selection. Selects the XY plane for arcs and cutter compensation.
G18 XZ plane selection. Selects the XZ (or ZX) plane; the normal plane on a lathe.

Other codes in the plane group

Only one code from a modal group is active at a time. Programming any of these replaces G19.

  • G17 XY plane selection
  • G18 XZ plane selection

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G19

  1. What does G19 do? (Mill)

  2. Which code: Selects the YZ plane for arcs and compensation.(Mill)

  3. What does G17 do? (Mill)

Show the answers
  1. Selects the YZ plane for arcs and compensation.
  2. G19
  3. Selects the XY plane for arcs and cutter compensation.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G19 mean in CNC programming?
YZ plane selection. Selects the YZ plane for arcs and compensation.
Is G19 modal?
Yes. G19 belongs to the plane group and stays active until another code from that group is programmed.
What is the difference between G19 and G17?
G19 (yZ plane selection): selects the YZ plane for arcs and compensation. G17 (xY plane selection): selects the XY plane for arcs and cutter compensation.
What is the difference between G19 and G18?
G19 (yZ plane selection): selects the YZ plane for arcs and compensation. G18 (xZ plane selection): selects the XZ (or ZX) plane; the normal plane on a lathe.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint