CNC Machinist Calculator Ultra

Home › G-codes › Siemens 840D 828D › G18

G18 ZX working plane

Siemens 840D 828D G-code · Mill and lathe

Selects the Z X plane. This is the usual default plane on lathes. On a mill it is used for arcs in Z and X, with Y as the tool axis.

Format

G18

How it works

Modal, G group 6 (plane selection).

Example program

G18 G90 G54 G71 ; ZX PLANE, TURNING
G0 X20 Z2 ; APPROACH
G1 Z0 F0.1 ; TO FACE
G3 X30 Z-5 CR=5 ; CORNER RADIUS IN ZX PLANE

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G17 · G19 · G2

G18 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucZX plane select
Haas NGCXZ plane selection
Okuma OSPPlane select ZX
Mitsubishi M70 M80ZX plane select
Brother SpeedioZX plane select
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 Siemens 840D 828D 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 Siemens 840D 828D G-codes

App Store Google Play