Printed from Kezuriba (kezuriba.net/en/nc/g76/)
G76
Machining center, LatheModal, group 09Fine boring cycle
On machining centers
G76 X_ Y_ Z_ R_ Q_ (shift amount) P_ (dwell) F_ K_
- At the hole bottom the spindle stops at a fixed angle (orientation), shifts by Q away from the cutting edge, then retracts. Leaves no return marks on the bore wall
- The shift direction is set by a parameter (Setting 27 on Haas). If it does not match the edge direction of the boring bar, the tool cuts the bore wall
- Q is unsigned
Diagram: G76 motion (side view)
Full guide with examples: Canned cycles: how each one moves, how to choose, G98 vs G99
- G32: one threading pass (without a cycle)
- How values without a decimal point are read (P and Q are integers in least input increments)
Try it in the simulator (machining center)
G76 is fine boring: at the bottom it orients the spindle, shifts the tip by Q and retracts without scoring the bore (the shift is not drawn here).
Simulator with exercises: Machining center page
On lathes: Multiple thread cutting cycle (compound thread cutting cycle)
The same number means something different on lathes (FANUC-type G-code system A). Group 00.
G76 P_ (m: finishing passes, r: chamfer amount, a: tool nose angle, 2 digits each) Q_ (minimum depth of cut) R_ (finishing allowance); G76 X(U)_ Z(W)_ R_ (taper amount) P_ (thread height) Q_ (first depth of cut) F_ (lead)
- Two-block format. P in the first line is 6 digits: 2 digits for the number of finishing passes + 2 digits for the chamfer amount + 2 digits for the tool nose angle (e.g. P012060)
- P in the second line is the thread height and Q is the first depth of cut (both radius values). P, Q, and R have different meanings in the first and second lines
- Single-edge cutting, with the depth of cut reduced gradually so that the amount cut per pass (cross-sectional area) stays almost constant, which reduces the load on the tool (Siemens ISO dialect)
- F is the lead, not the pitch (for multi-start threads, pitch × number of starts)
- Q (minimum depth of cut) in the 1st line, and P (thread height) and Q (1st depth of cut) in the 2nd line, are written as integers in the least input increment without a decimal point (usually 0.001 mm) (e.g. Q100 in the 1st line is 0.1 mm; P1534 Q450 in the 2nd line are 1.534 mm and 0.45 mm). It is safer to write X and Z with a decimal point (whether a number without a decimal point is read as mm or as 0.001 mm depends on the machine setting). The Siemens ISO T example also has no decimal point in X and Z (X60640 Z25000)
- G32 when you want to build only the feed for a single pass yourself, without a cycle (for a thread that changes into a taper partway, a worm, etc.)
Diagram (lathe): G76 (lathe), multiple threading cycle
Full guide with examples: How to write lathe multiple repetitive cycles (G71, G70, G72, G73, G76)
Differences between controls and machines
The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.
| Source | Machine | Item | Detail |
|---|---|---|---|
| Haas | Machining center | Format | I/J can be used instead of Q to specify the shift direction and amountHaas warns that if it is commanded while the spindle is stopped (M05), it becomes a cycle without spindle rotation |
| Haas | Lathe | Format | G76 X(U)_ Z(W)_ K_ (thread height) D_ (first depth of cut) A_ (tool nose angle) I_ (taper) F_ P_ Q_ (one-block format)Haas uses the one-block format, and A has no decimal point. The finishing allowance is Setting 86, and chamfering is Setting 95/96 and M23/M24 |
Frequently asked questions about G76
- What is G76 (Fine boring cycle) used for and how is it formatted in a CNC program?
- G76 commands "Fine boring cycle" on Machining center, Lathe. The standard program format is "G76 X_ Y_ Z_ R_ Q_ (shift amount) P_ (dwell) F_ K_". At the hole bottom the spindle stops at a fixed angle (orientation), shifts by Q away from the cutting edge, then retracts. Leaves no return marks on the bore wall
- Is G76 a modal code or a one-shot (non-modal) code?
- G76 is a modal code (Group 09). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
- Does G76 work differently on machining centers (mills) versus CNC lathes?
- Yes. On a machining center G76 means "Fine boring cycle", whereas on a CNC lathe (FANUC G-code System A) G76 means "Multiple thread cutting cycle (compound thread cutting cycle)" (lathe format: "G76 P_ (m: finishing passes, r: chamfer amount, a: tool nose angle, 2 digits each) Q_ (minimum depth of cut) R_ (finishing allowance); G76 X(U)_ Z(W)_ R_ (taper amount) P_ (thread height) Q_ (first depth of cut) F_ (lead)"). Never copy G76 between mill and lathe programs without checking which G-code system (A, B, or C) your lathe uses.
- Are there differences in G76 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G76. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.
Sources
The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com