Home › G-codes › LinuxCNC Tormach › G18
G18 XZ plane select
LinuxCNC Tormach G-code · Mill and lathe
Selects the XZ plane. Required on lathes for arcs, nose radius compensation and lathe cycles.
Format
G18
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, plane group.
Example program
G20 G18 G7 G40 G80 G90 G94 (INCH, XZ PLANE, DIAMETER MODE)
T1 M6 G43 (TURNING TOOL)
G97 S1200 M3
G0 X0.8 Z0.1
…
T1 M6 G43 (TURNING TOOL)
G97 S1200 M3
G0 X0.8 Z0.1
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Arcs, cutter compensation and canned cycles all follow the active plane.
- Arc center words are I and K in G18.
- G70, G71, G72 and G76 need G18.
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 |
| Siemens 840D 828D | ZX working plane |
| Fagor 8055 8065 | ZX 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 LinuxCNC Tormach 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 LinuxCNC Tormach G-codes