CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G18

G18 XZ plane selection

Haas NGC G-code · Mill, Lathe

On mills: XZ plane selection

Selects the XZ plane for arcs and cutter compensation. Arcs use I and K.

Format

G18

How it works

Modal, plane group 02.

Example program

G18 (XZ PLANE)
G02 X1. Z-.5 I.5 K0. F10. (ARC IN XZ)
G17 (BACK TO XY PLANE)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: XZ plane selection

Selects the XZ plane, the normal turning plane. G18 must be active for G70 to G73 stock removal cycles.

Format

G18

How it works

Modal, group 02. Normal default on a lathe.

Example program

T0101 (OD TURNING TOOL)
G00 G18 G20 G40 G80 G99 (SAFE STARTUP)
G54 X2.1 Z.1 (APPROACH)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G17 · G19 · G71

G18 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucZX plane select
Okuma OSPPlane select ZX
Mitsubishi M70 M80ZX plane select
Brother SpeedioZX plane select
Siemens 840D 828DZX working plane
Fagor 8055 8065ZX plane select
LinuxCNC TormachXZ plane select
Mach3 Mach4XZ plane
Centroid CNC12 AcornZX plane select
Hurco WinMax (NC)ZX plane select
FadalZX plane select
Swiss (Citizen Star)XZ plane select

Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G18 in the app All Haas NGC G-codes

App Store Google Play