CNC lathe · G-code
G76: multiple-pass threading cycle
G76 cuts a whole thread in one block: it works out the passes from the thread depth and first cut, infeeding along the flank. Haas lists it as one-shot (group 00). Formats below from Haas, LinuxCNC and Fanuc, each from its maker.
On a Haas mill, G76 is the fine boring cycle.
Worked example
3/4-10 UNC external thread, 1" long (Haas; K = 0.0613" for 10 TPI). Written for this page in the Haas format.
G97 S600 M03G00 X0.85 Z0.2G76 X0.6273 Z-1.0 K0.0613 D0.012 F0.1 A60G00 X3. Z1.For 3/4-10 UNC, K = 0.61343 × 0.1 = 0.0613" and X = 0.75 − 2K = 0.6273".
How each control writes it
Haas G76 X- Z- K- D- F- A- (one block)
One source: Haas Automation, the control's maker
- X
- Minor (root) diameter at full depth (optional)
- Z
- End of the thread (optional)
- K
- Thread height, radius
- D
- Depth of the first pass
- F
- Lead of the thread (feed per revolution)
- A
- Tool nose angle, 0–120°, no decimal point
- I
- Taper, radius (optional)
- P
- Infeed method (single edge, constant load) (optional)
- Q
- Thread start angle, no decimal point (optional)
- U
- Incremental X to full depth (optional)
- W
- Incremental Z to the thread end (optional)
- Settings 95/96 set the pull-out chamfer; M23/M24 turn it on and off.
- Setting 86 sets the finish allowance taken off K.
- Haas suggests A59 on a 60° thread to reduce chatter.
LinuxCNC G76 P- Z- I- J- R- K- Q- H- E- L-
One source: the LinuxCNC project, the control's maker
- P
- Thread pitch, distance per revolution
- Z
- End of the thread
- I
- Crest offset from the drive line (negative for external)
- J
- Depth of the first cut
- R
- Depth degression: 1 constant depth, 2 constant area (optional)
- K
- Full thread depth
- Q
- Compound slide angle (optional)
- H
- Number of spring passes (optional)
- E
- Taper distance along the drive line (optional)
- L
- Which ends taper (optional)
- Positions are taken from a "drive line" through the starting X.
- I, J, K are diameters in G7 and radii in G8.
Source: LinuxCNC documentation, "G76 Threading Cycle" (archived Oct 29, 2026)
Fanuc G76 P(m)(r)(a) Q- R- then G76 X(U)- Z(W)- R- P- Q- F- (two lines)
One source: FANUC, the control's maker
- P (line 1)
- Three pairs of digits: finish passes, chamfer at the end (tenths of the lead), tool angle. P010060 = 1 pass, no chamfer, 60°
- Q (line 1)
- Smallest cut as the passes shrink, in the least increment, no decimal point (optional)
- R (line 1)
- Finish allowance for the last pass (optional)
- X
- Diameter at full depth: the minor Ø outside, the major Ø inside
- Z
- End of the thread
- R (line 2)
- Taper, radius (0 or left out for a straight thread) (optional)
- P (line 2)
- Thread height, radius, in the least increment, no decimal point
- Q (line 2)
- Depth of the first pass, in the least increment, no decimal point
- F
- Lead of the thread
- FANUC 0i-TF (lathe), G code system A (U and W are incremental), from its operator’s manual. On another FANUC model or G code system, check that control’s manual.
- The same two-block format is printed in Cutting Tool Engineering and in Machinery’s Handbook 31st ed. Cutting Tool Engineering adds that Fanuc 10, 11 and 15-T take an older one-line form, G76 X Z I K D A F.
Source: FANUC B-64604EN-1/01, Operator's Manual, 0i-TF (lathe), §4.2.7, Cutting Tool Engineering, "Single-point thread programming can be fun and easy" (checked against Machinery’s Handbook 31st ed.)
How the controls differ
- Only Haas takes A, D, U, W.
- Only LinuxCNC takes E, H, J, L, R.
- Only Fanuc takes P (line 1), P (line 2), Q (line 1), Q (line 2), R (line 1), R (line 2).
- A word two controls share can still mean different things: read each control's list above.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.