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
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
- On a lathe G18 is normally active after reset, but program it at the start anyway.
- Change the plane only with tool radius compensation off (G40).
Related codes
G18 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | ZX plane select |
| Haas NGC | XZ plane selection |
| Okuma OSP | Plane select ZX |
| Mitsubishi M70 M80 | ZX plane select |
| Brother Speedio | ZX plane select |
| Fagor 8055 8065 | ZX plane select |
| LinuxCNC Tormach | XZ plane select |
| Mach3 Mach4 | XZ plane |
| Centroid CNC12 Acorn | ZX plane select |
| Hurco WinMax (NC) | ZX plane select |
| Fadal | ZX 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