G-code reference

G99 G-Code: R-Plane Return (Mill) / Feed per Revolution (Lathe)

R-Plane Return (Mill) / Feed per Revolution (Lathe) — Mill: canned cycles return only to the R plane between holes, which is faster. Lathe: F in mm/rev — the lathe default.

By cnccode · Updated
PropertyValue
CodeG99
FunctionR-Plane Return (Mill) / Feed per Revolution (Lathe)
Modal group10/05
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG99

What does G99 do?

Mill: canned cycles return only to the R plane between holes, which is faster. Lathe: F in mm/rev — the lathe default.

G99 is modal: once programmed it remains in effect for the following blocks until another code from modal group 10/05 replaces it or the control is reset.

Syntax and parameters

Format
G99

G99 example program

Example
G99 G83 X0 Y0 Z-30.0 R2.0 Q5.0 F120.
X20.0
G98 X40.0 (last hole: return to initial)
G80

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Make sure nothing sticks up between holes before using G99.

Controller compatibility

G99 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 G99 modal?
Yes. G99 belongs to modal group 10/05 and stays active until another code of that group is programmed.
What does G99 mean in CNC?
G99 means R-Plane Return (Mill) / Feed per Revolution (Lathe). Mill: canned cycles return only to the R plane between holes, which is faster. Lathe: F in mm/rev — the lathe default.
What is the difference between G99 and G98?
G99 is R-Plane Return (Mill) / Feed per Revolution (Lathe), while G98 is Initial Plane Return (Mill) / Feed per Minute (Lathe). See the G98 page for its syntax and examples.
Can I use G99 on a lathe?
Yes, G99 is used on both mills and lathes, although some parameters differ between them.