G76

Machining center, LatheModal, group 09

Fine boring cycle

On machining centers

G76 X_ Y_ Z_ R_ Q_ (shift amount) P_ (dwell) F_ K_

Diagram: G76 motion (side view)

RapidCutting feedQInitial pointR pointHole bottom Z① Rapid to R point② Feed to hole bottom③ Orient spindle stop④ Shift away from thecutting edge by Q⑤ Rapid out⑥ Shift back, spin spindle
At the hole bottom the spindle is stopped at an oriented position and shifted away from the cutting edge by Q before rapid retraction, so no return scratch is left on the bore. Shift direction is set by a machine setting. Figure shows G98.

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

    X—
    Y—
    Z—
    T—
    S0
    F0
    —0:00

      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)

      Diagram (lathe): G76 (lathe), multiple threading cycle

      Each passInfeed method (enlarged)Threaded sectionAEEnds with an angled pull-out1234Finish (d)ΔdkDepth of pass n = Δd × √n
      Infeeds along one flank of the thread (flank infeed). The depth of pass n is Δd × √n, so the infeed shrinks and each pass removes about the same amount; the finishing allowance d is cut last. k is the thread height.

      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.

      SourceMachineItemDetail
      HaasMachining centerFormatI/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
      HaasLatheFormatG76 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.

      1. 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
      2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
      3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
      4. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
      5. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com