G-code reference

G76: Fine boring cycle (mill) or Threading cycle (multi-pass) (lathe)

G76 means two different things. On a mill, it is fine boring cycle: bores, orients the spindle and shifts the tool away before retracting. On a lathe (Fanuc G-code system A), it is threading cycle (multi-pass): cuts a complete thread in many passes from one or two lines. Check which machine a program is written for before reading it.

G76 on a mill: Fine boring cycle

On a mill, G76 bores to depth, stops the spindle at an oriented position, shifts the tool off the wall by Q and then retracts, so the tool does not drag a line up the finished bore.

TypeG-code
MachineMill
GroupCanned cycle
ModalYes: stays active until replaced by another code from the same group

G76 example (mill)

G76 X0. Y0. Z-25. R2. Q0.2 F80.

Fine bore to Z-25, shift 0.2 before retract.

WordWhat it means here
G76Fine boring cycle
X0.X axis target (on a lathe, the diameter)
Y0.Y axis target
Z-25.Z axis target or depth
R2.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
Q0.2peck depth or another cycle setting
F80.feed rate (on threading codes, the lead)

Codes people confuse with G76 on a mill

CodeWhat it does instead
G76 (lathe) Threading cycle (multi-pass). Cuts a complete thread in many passes from one or two lines.
G85 Boring cycle (feed out). Feeds in and feeds back out, for reaming and boring.

Other codes in the canned cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G76.

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G80 Canned cycle cancel
  • G81 Drilling cycle (spot drill)
  • G82 Drilling cycle with dwell
  • G83 Deep hole peck drilling
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed out)
  • G86 Boring cycle (spindle stop, rapid out)
  • G89 Boring cycle with dwell (feed out)

G76 on a lathe: Threading cycle (multi-pass)

On a lathe, G76 cuts a whole thread: it works out each pass depth, infeeds at an angle to reduce load, and finishes with spring passes. On Fanuc it takes two lines. On a mill, G76 is a fine boring cycle.

TypeG-code
MachineLathe (G-code system A)
GroupLathe cycle
ModalNo: acts only on its own line

G76 example (lathe)

G76 P020060 Q50 R0.05
G76 X18.16 Z-20. P920 Q300 F1.5

M20x1.5 thread, 0.92 mm thread depth, first pass 0.3 mm.

WordWhat it means here
G76Threading cycle (multi-pass)
P020060a parameter: dwell time, program number, sequence number or cycle setting, depending on the code
Q50peck depth or another cycle setting
R0.05arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
X18.16X axis target (on a lathe, the diameter)
Z-20.Z axis target or depth
P920a parameter: dwell time, program number, sequence number or cycle setting, depending on the code
Q300peck depth or another cycle setting
F1.5feed rate (on threading codes, the lead)

Codes people confuse with G76 on a lathe

CodeWhat it does instead
G92 Thread cutting cycle (lathe). Cuts one thread pass and returns, one line per pass.
G32 Thread cutting (single pass). Cuts one thread pass, synchronising feed with the spindle.
G76 (mill) Fine boring cycle. Bores, orients the spindle and shifts the tool away before retracting.

Other codes in the lathe cycle group

These also act only on their own line.

  • G70 Finishing cycle
  • G71 Rough turning cycle
  • G72 Rough facing cycle
  • G73 Pattern repeating cycle (lathe)
  • G74 Face peck drilling / grooving (lathe)
  • G75 Grooving cycle (X)
  • G90 Outside/inside diameter cutting cycle (lathe)
  • G92 Thread cutting cycle (lathe)
  • G94 Facing cycle (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: G76

  1. What does G76 do? (Mill)

  2. What does G76 do? (Lathe)

  3. Which code: Bores, orients the spindle and shifts the tool away before retracting.(Mill)

Show the answers
  1. Bores, orients the spindle and shifts the tool away before retracting.
  2. Cuts a complete thread in many passes from one or two lines.
  3. G76

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G76 mean in CNC programming?
On a mill: Fine boring cycle. Bores, orients the spindle and shifts the tool away before retracting. On a lathe: Threading cycle (multi-pass). Cuts a complete thread in many passes from one or two lines.
Is G76 modal?
Yes. G76 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G76 and G85?
G76 (fine boring cycle): bores, orients the spindle and shifts the tool away before retracting. G85 (boring cycle (feed out)): feeds in and feeds back out, for reaming and boring.

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