G99: Canned cycle return to R plane (mill) or Feed per revolution (lathe)
G99 on a mill: Canned cycle return to R plane
With G99, the cycle retracts only to the R plane between holes, saving time when nothing stands in the way. On a lathe with system A, G99 means feed per revolution.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Cycle return |
| Modal | Yes: stays active until replaced by another code from the same group |
G99 example (mill)
G99 G81 X0. Y0. Z-5. R2. F100. Drill, return to R2 only.
| Word | What it means here |
|---|---|
G99 | Canned cycle return to R plane |
G81 | Drilling cycle (spot drill) |
X0. | X axis target (on a lathe, the diameter) |
Y0. | Y axis target |
Z-5. | Z axis target or depth |
R2. | arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting |
F100. | feed rate (on threading codes, the lead) |
Codes people confuse with G99 on a mill
| Code | What it does instead |
|---|---|
G98 | Canned cycle return to initial point. Between holes, the tool returns to the height it started the cycle from. |
Other codes in the cycle return group
Only one code from a modal group is active at a time. Programming any of these replaces G99.
G98Canned cycle return to initial point
G99 on a lathe: Feed per revolution
G99 makes F a distance per revolution on a lathe, the usual way to program turning: F0.2 means 0.2 mm of travel for every turn of the spindle.
| Type | G-code |
|---|---|
| Machine | Lathe (G-code system A) |
| Group | Feed mode |
| Modal | Yes: stays active until replaced by another code from the same group |
G99 example (lathe)
G99 G01 Z-30. F0.2 Turn at 0.2 mm per revolution.
| Word | What it means here |
|---|---|
G99 | Feed per revolution (lathe) |
G01 | Linear interpolation (feed move) |
Z-30. | Z axis target or depth |
F0.2 | feed rate (on threading codes, the lead) |
Codes people confuse with G99 on a lathe
| Code | What it does instead |
|---|---|
G98 | Feed per minute (lathe). On a system A lathe, F is read per minute. |
G99 (mill) | Canned cycle return to R plane. Between holes, the tool returns only to the R plane. |
Other codes in the feed mode group
Only one code from a modal group is active at a time. Programming any of these replaces G99.
G98Feed per minute (lathe)
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G99
-
What does
G99do? (Lathe) -
What does
G99do? (Mill) -
Which code: Between holes, the tool returns only to the R plane.(Mill)
Show the answers
- On a system A lathe, F is read per spindle revolution. The normal turning mode.
- Between holes, the tool returns only to the R plane.
- G99
Frequently asked questions
- What does G99 mean in CNC programming?
- On a mill: Canned cycle return to R plane. Between holes, the tool returns only to the R plane. On a lathe: Feed per revolution (lathe). On a system A lathe, F is read per spindle revolution. The normal turning mode.
- Is G99 modal?
- Yes. G99 belongs to the cycle return group and stays active until another code from that group is programmed.
- What is the difference between G99 and G98?
- G99 (canned cycle return to R plane): between holes, the tool returns only to the R plane. G98 (canned cycle return to initial point): between holes, the tool returns to the height it started the cycle from.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.