G-code reference
G90 G-Code: Absolute Programming (Mill) / OD Turning Cycle (Lathe)
Absolute Programming (Mill) / OD Turning Cycle (Lathe) — Mill: all coordinates are measured from the active work zero. Lathe (system A): single-pass OD/ID turning cycle; absolute vs incremental on lathes is chosen…
| Property | Value |
|---|---|
| Code | G90 |
| Function | Absolute Programming (Mill) / OD Turning Cycle (Lathe) |
| Modal group | 03/01 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | Mill: G90 / Lathe: G90 X_ Z_ F_ |
What does G90 do?
Mill: all coordinates are measured from the active work zero. Lathe (system A): single-pass OD/ID turning cycle; absolute vs incremental on lathes is chosen with X/Z versus U/W.
G90 is modal: once programmed it remains in effect for the following blocks until another code from modal group 03/01 replaces it or the control is reset.
Syntax and parameters
Mill: G90 / Lathe: G90 X_ Z_ F_G90 example program
(Mill)
G90 G54 G00 X0 Y0
(Lathe)
G90 X48.0 Z-30.0 F0.25
X46.0
X44.0▶ Open this example in the G-code viewer
Tips and common mistakes
- Programs crash when G91 is left active by a previous program: always state G90.
Controller compatibility
G90 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.