G76: Fine boring cycle (mill) or Threading cycle (multi-pass) (lathe)
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.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Canned cycle |
| Modal | Yes: 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.
| Word | What it means here |
|---|---|
G76 | Fine 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.2 | peck depth or another cycle setting |
F80. | feed rate (on threading codes, the lead) |
Codes people confuse with G76 on a mill
| Code | What 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.
G73High-speed peck drillingG74Left-hand tapping cycleG80Canned cycle cancelG81Drilling cycle (spot drill)G82Drilling cycle with dwellG83Deep hole peck drillingG84Tapping cycle (right hand)G85Boring cycle (feed out)G86Boring cycle (spindle stop, rapid out)G89Boring 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.
| Type | G-code |
|---|---|
| Machine | Lathe (G-code system A) |
| Group | Lathe cycle |
| Modal | No: 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.
| Word | What it means here |
|---|---|
G76 | Threading cycle (multi-pass) |
P020060 | a parameter: dwell time, program number, sequence number or cycle setting, depending on the code |
Q50 | peck depth or another cycle setting |
R0.05 | arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting |
X18.16 | X axis target (on a lathe, the diameter) |
Z-20. | Z axis target or depth |
P920 | a parameter: dwell time, program number, sequence number or cycle setting, depending on the code |
Q300 | peck depth or another cycle setting |
F1.5 | feed rate (on threading codes, the lead) |
Codes people confuse with G76 on a lathe
| Code | What 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.
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
-
What does
G76do? (Mill) -
What does
G76do? (Lathe) -
Which code: Bores, orients the spindle and shifts the tool away before retracting.(Mill)
Show the answers
- Bores, orients the spindle and shifts the tool away before retracting.
- Cuts a complete thread in many passes from one or two lines.
- G76
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.