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.
| Property | Value |
|---|---|
| Code | G99 |
| Function | R-Plane Return (Mill) / Feed per Revolution (Lathe) |
| Modal group | 10/05 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | G99 |
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
G99G99 example program
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.