CNC lathe · G-code

G90: O.D./I.D. turning cycle

On a lathe, G90 turns one straight or tapered pass from X and Z; each X on the lines after it is another pass. Haas lists it in modal group 01. Formats below from Haas and Fanuc, each from its maker. LinuxCNC has no such code.

On a mill, G90 is absolute positioning.

Worked example

Three passes down to 1.75" diameter. Written for this page in the Haas format.

G00 X2.1 Z0.1G90 X1.9 Z-1. F0.01 (first pass)X1.8 (second pass)X1.75 (finish size)G00 X3.

How each control writes it

Haas G90 X- Z- I- F-

One source: Haas Automation, the control's maker

X
X target (diameter)
Z
Z target
U
Incremental X to the target (diameter) (optional)
W
Incremental Z to the target (optional)
I
Taper: X distance and direction, radius, added to X at the target (optional)
F
Feedrate
  • More passes: give each extra pass’s X on its own line.
  • U, W, X and Z reach all four ZX quadrants; the taper can be plus or minus.

Source: Haas Automation, lathe G90

Fanuc G90 X(U)_ Z(W)_ F_ ; taper: G90 X(U)_ Z(W)_ R_ F_ ;

One source: FANUC, the control's maker

X, Z
End point of the cut
U, W
Or the distance to it, incremental (optional)
R
Taper amount, radius, signed (taper form) (optional)
F
Feedrate
  • FANUC 0i-TF (lathe), G code system A (U and W are incremental), from its operator’s manual. On another FANUC model or G code system, check that control’s manual.
  • The taper is R here, where Haas gives it with I.

Source: FANUC B-64604EN-1/01, Operator's Manual, 0i-TF (lathe), §4.1.1

Controls without it

  • LinuxCNC: LinuxCNC has no single-pass turning cycle: its G90 is absolute distance mode. Rough with G71 or program G1 passes. Source (archived Oct 29, 2026)

How the controls differ

  • Only Haas takes I.
  • Only Fanuc takes R.
  • A word two controls share can still mean different things: read each control's list above.

Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.