G-code reference

G99: Canned cycle return to R plane (mill) or Feed per revolution (lathe)

G99 means two different things. On a mill, it is canned cycle return to R plane: between holes, the tool returns only to the R plane. On a lathe (Fanuc G-code system A), it is feed per revolution: on a system A lathe, F is read per spindle revolution. The normal turning mode. Check which machine a program is written for before reading it.

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.

TypeG-code
MachineMill
GroupCycle return
ModalYes: 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.

WordWhat it means here
G99Canned cycle return to R plane
G81Drilling 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

CodeWhat 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.

  • G98 Canned 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.

TypeG-code
MachineLathe (G-code system A)
GroupFeed mode
ModalYes: 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.

WordWhat it means here
G99Feed per revolution (lathe)
G01Linear interpolation (feed move)
Z-30.Z axis target or depth
F0.2feed rate (on threading codes, the lead)

Codes people confuse with G99 on a lathe

CodeWhat 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.

  • G98 Feed 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

  1. What does G99 do? (Lathe)

  2. What does G99 do? (Mill)

  3. Which code: Between holes, the tool returns only to the R plane.(Mill)

Show the answers
  1. On a system A lathe, F is read per spindle revolution. The normal turning mode.
  2. Between holes, the tool returns only to the R plane.
  3. G99

Drill this code with the rest of the core set

More practice hubs

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.

Free preview · no card Try G-Code Sprint