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…

By cnccode · Updated
PropertyValue
CodeG90
FunctionAbsolute Programming (Mill) / OD Turning Cycle (Lathe)
Modal group03/01
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxMill: 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

Format
Mill: G90  /  Lathe: G90 X_ Z_ F_

G90 example program

Example
(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.

Frequently asked questions

Is G90 modal?
Yes. G90 belongs to modal group 03/01 and stays active until another code of that group is programmed.
What does G90 mean in CNC?
G90 means 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 with X/Z versus U/W.
What is the difference between G90 and G91?
G90 is Absolute Programming (Mill) / OD Turning Cycle (Lathe), while G91 is Incremental Programming. See the G91 page for its syntax and examples.
Can I use G90 on a lathe?
Yes, G90 is used on both mills and lathes, although some parameters differ between them.