G76 cevrimi nasil calisir?
FANUC G76, tek noktali (single-point) takimla dis acma icin kullanilan OTOMATIK COK PASOLU bir cevrimdir. Iki satir halinde programlanir:G76 P(m)(r)(a) Q(Δdmin) R(d) — m: bitirme pasosu sayisi, r: cikis/pah payi (hatvenin onda biri), a: dis acisi (60/55/80/30/29/0), Q: en kucuk paso (mikron), R: finis payi derinligi (mm).
G76 X(u) Z(w) R(i) P(k) Q(Δd) F(L) — X/Z: dis sonu (kok capi/Z), R: konik miktari (duz diste 0), P: tam dis derinligi (mikron), Q: ilk paso derinligi (mikron), F: hatve.
G76 ile G92 arasindaki temel fark
G92 tek satirlik basit bir cevrimdir; her pasoyu SIZ hesaplayip ayri ayri cagirirsiniz (X degerini her seferinde elle kucultursunuz). G76 ise tek cagirmada calisir: ilk paso derinligini ve toplam dis derinligini verirsiniz, kontrol pasolari otomatik (kok-kare azalan) hesaplar, acili dalisi uygular ve sona bitirme pasolarini ekler.G76'yi diger dis cevrimlerinden ayiran nedir?
G76, G32 (duz/tek paso manuel dis kesme) ve G92'den (basit tek-satir cevrim) farkli olarak; otomatik paso hesabi, acili (compound) dalis ile takim asinmasini azaltma, opsiyonel konik dis (boru disi gibi) destegi ve otomatik bitirme/finis pasolari sunar. Bu yuzden FANUC kontrollerde en cok tercih edilen dis acma cevrimidir.Hatve (pitch) hafizasi nasil calisiyor?
Metrik secilince ISO 261 standart kaba hatve serisi (M3=0.5mm ... M64=6mm) anma capina gore otomatik eslenir. Whitworth secilince BSW capa karsilik gelen TPI degeri mm hatveye cevrilir. Manuel secimde hatve ve aciyi siz girersiniz — ozel/ince hatveli disler icin kullanilir.With this free G76 threading cycle simulator and NC code generator you can enter the nominal thread diameter and pick a standard (pitch and angle fill in automatically), set the first pass depth and finish allowances, watch the live toolpath simulation and instantly generate the FANUC 0i-TC compatible two-block G76 program. For the theory see our G76 Threading Cycle guide, for the simple single-block alternative the G92 Threading Simulator, and for thread calculation the Thread Calculator.
What the G76 threading cycle does and when to use it
G76 is the FANUC multiple repetitive threading cycle. You give it the major diameter, the minor (root) diameter, the lead and the first pass depth; the control works out the number of passes, the depth of every pass and the flank infeed, then cuts the whole thread from one two-block command. Doing the same job with G92 means writing every pass by hand.
G76 is the right choice for a CNC threading cycle program when:
- The pitch is 1.5 mm (16 TPI) or coarser — the pass count grows quickly and hand-written G92 blocks become long and error-prone.
- You want flank (angled) infeed — G76 shifts the tool along the thread angle (29–30°) on every pass so the chip comes off one flank and chatter drops.
- The part runs in production — all threading parameters sit in two blocks, so the program is easy to read, check and adjust at the machine.
G92 or G76? Decision table
| G92 (single block) | G76 (multiple repetitive) | |
|---|---|---|
| Pass calculation | Programmer writes each pass | Control calculates |
| Infeed | Radial (both flanks cut) | Flank infeed along the thread angle |
| Program length | One block per pass | Two blocks |
| Spring passes | Added manually | Automatic with m |
| Best for | Fine pitch, 2–4 passes, quick jobs | Coarse pitch, production, pre-trapezoidal work |
Rule of thumb: under 1.5 mm pitch with 3–4 passes, G92 is fine; anything coarser, use G76. You can try the single-block version in the G92 Threading Cycle Simulator.
How to use the simulator step by step
- Nominal diameter and standard: enter the major diameter and pick metric, UN or Whitworth. Pitch and thread angle fill in automatically; overwrite the pitch for a special thread.
- Thread start and end Z: start at least 2–3 pitches in front of the face (e.g. Z3 to Z5) so the slide reaches full feed before the first turn; the end Z is the end of the thread length. With no relief groove, set a pull-out chamfer with
r. - First pass depth Δd: 0.3–0.6 mm in steel, 0.5–0.8 mm in aluminium. This value sets the pass count (see the √n rule below).
- Minimum pass depth Q: the floor for the ever-shallower passes near the root. Stay above 0.05–0.1 mm; below that the insert rubs and the flank finish suffers.
- Finish allowance R and spring passes m: R 0.03–0.08 mm, m usually 1. For a critical flank finish set m=2 and let the last pass run "empty".
- Vc, n and G50: the simulator derives rpm from Vc but writes a constant spindle speed (
G97) into the code. Cap the chuck speed with G50; rpm must not change while threading. - Run the simulation, download the code: watch each pass depth and the flank infeed in the live toolpath, download the .nc file and prove it out in single block before cutting metal.
Reading the two blocks the simulator generates
G76 P(m)(r)(a) Q(Δdmin) R(d) ;
G76 X(U) Z(W) R(i) P(k) Q(Δd) F(L) ;| Address | Simulator field | Note |
|---|---|---|
m | Spring (finish) passes | 01–99 |
r | Pull-out chamfer | 00–99 → 0.0–9.9 × lead |
a | Thread angle | 60 metric/UN, 55 Whitworth, 30 trapezoidal |
Q(Δdmin) | Minimum pass depth | microns, no decimal point (Q100 = 0.1 mm) |
R(d) | Finish allowance | mm, radius value |
X | Minor (root) diameter | major diameter − 2 × thread height |
Z | Thread end Z | absolute |
R(i) | Taper (radius) | 0 or omitted = straight thread |
P(k) | Thread height | microns (P1534 = 1.534 mm) |
Q(Δd) | First pass depth | microns |
F | Lead | mm/rev |
For the link between these addresses and the FANUC parameters (No. 5130, 5140–5145) and for the single-block FS10/11 format, see the G76 Threading Cycle guide; here we only cover what you need to read the generated code.
How the pass depth is distributed: the √n rule
G76 removes a constant chip area on every pass. Because the thread groove widens as it gets deeper, the passes get progressively shallower. The total depth of pass n, measured from the crest:
d(n) = Δd × √n → number of passes ≈ (k / Δd)²Two practical consequences. First, halving Δd quadruples the pass count, so do not make Δd needlessly small on a coarse pitch. Second, once the calculated pass drops below Q(Δdmin) the control clamps it to Δdmin; a large Δdmin therefore makes the last passes deeper than you expect.
| Pitch | Thread height k (0.6134 × P) | Δd = 0.4 mm | Δd = 0.6 mm |
|---|---|---|---|
| 1.5 mm | 0.92 mm | 6 passes | 3 passes |
| 2.0 mm | 1.23 mm | 10 passes | 5 passes |
| 2.5 mm | 1.53 mm | 15 passes | 7 passes |
| 3.0 mm | 1.84 mm | 22 passes | 10 passes |
Worked example: M20×2.5 external thread, 35 mm long
A 2.5 mm pitch metric thread on Ø20 bar. Thread height k = 0.6134 × 2.5 = 1.534 mm; minor diameter X = 20 − 2 × 1.534 = 16.93 mm. First pass 0.5 mm, minimum pass 0.1 mm, finish allowance 0.05 mm, one spring pass, one-lead pull-out. With those values the simulator generates:
O0076 ;
G21 G40 G99 ;
T0303 ; (60° external threading insert)
G97 S900 M03 ; (constant rpm - never G96 for threading)
G00 X26.0 Z5.0 M08 ; (two pitches in front of the face)
G76 P011060 Q100 R0.05 ; (m=01, r=1.0 lead, a=60°)
G76 X16.93 Z-35.0 P1534 Q500 F2.5 ;
G00 X100.0 Z100.0 M09 ;
M30 ;Pass distribution the control calculates (radius values from the crest):
| Pass | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Finish |
|---|---|---|---|---|---|---|---|---|---|---|
| Total depth (mm) | 0.50 | 0.71 | 0.87 | 1.00 | 1.12 | 1.22 | 1.32 | 1.41 | 1.48 | 1.53 |
| Removed this pass (mm) | 0.50 | 0.21 | 0.16 | 0.13 | 0.12 | 0.11 | 0.10 | 0.09 | 0.07 | 0.05 |
Roughing stops at 1.48 mm (thread height minus finish allowance) and the spring pass takes the last 0.05 mm. The first pass removes 0.5 mm, the ninth only 0.07 mm, yet the chip area is the same on every pass. If the insert chips on the first pass, the problem is not the pass count but Δd being too large for the nose radius: drop Δd to 0.4 and accept the extra passes.
Taper and multi-start threads
Taper threads (NPT, BSPT): R(i) in the second block is the radius difference between the thread start and end: R(i) = (D − d) / 2. The sign is positive when the tool touches the small diameter first and negative when it touches the large diameter first; an external taper thread cut from large to small diameter is therefore usually written with R-.
Multi-start threads: the G76 blocks stay the same; only the start Z of each extra start is shifted by lead / number of starts. On an M16×4 P2 thread (two starts, 4 mm lead) the first start begins at Z0 and the second at Z2, with F4 in both calls. The same cycle is simply called twice from different start points. For the full calculation of multi-start and taper threads use the Thread Calculator and NC Program Generator.
Typical alarms and shop-floor problems
| Symptom / alarm | Cause | Fix |
|---|---|---|
| PS0061 "Address P/Q not specified" | P(k) or Q(Δd) missing in the second G76 block | Write thread height and first pass depth in microns |
| PS0062 "Illegal command in G71–G76" | Δd zero or negative, Δdmin larger than k, or a tool angle other than 80/60/55/30/29/0 | Regenerate the values in the simulator; use a macro or G32 for a special angle |
| Lead is wrong, thread "drifts" | G96 active; rpm changes with diameter and spindle-slide sync is lost | Put G97 S___ before the threading blocks |
| Lead error in the first turn | Start Z too close to the face, slide cannot accelerate | Start at least 2–3 pitches in front of the part |
| Chatter, rough flank finish | Δd too large, long tool overhang, rpm too high | Reduce Δd, set m=2, lower rpm by about 20% |
| Unwanted chamfer at the thread end | M23 (chamfering) is active at power-up | Add M24 or set r=00 |
| Cycle interrupted and jogged by hand | The program cannot resume mid-cycle | Return to the stop position before restarting; safest is to rerun the cycle from the start |
Six common mistakes
- Writing P(k) and Q with a decimal point. These addresses take microns:
P1534for 1.534 mm,Q500for 0.5 mm.P1.534gives you a thread 1.5 microns deep. - Using the nominal diameter as X. X is the minor diameter, not the major. For M20×2.5 it is X16.93, not X20.
- Threading in constant surface speed. Never thread under G96; the changing rpm ruins the lead.
- r=00 with no relief groove. The tool runs into the shoulder. Without a groove use a pull-out of at least one lead.
- Mixing up the two Q addresses. Q in the first block is the minimum pass depth, Q in the second is the first pass depth; both in microns, different meanings.
- First run at full speed. Prove a new program in single block at 50% rapid with the tool offset clear of the part and watch the toolpath.
Frequently asked questions
Which FANUC controls run the code this simulator generates?
The two-block format runs on FANUC 0i-T (0i-TB/TC/TD/TF), 16i/18i/21i-T and 30i/31i/32i-T. FS10/11 and some Mitsubishi controls use a single-block G76 with A, D, K and I instead of the Q and P addresses. Compare with the G76 example in your machine's programming manual before the first run.
Can G76 cut internal threads?
Yes. X then becomes the major diameter of the internal thread and the start X sits inside the minor diameter; the control reads the infeed direction from the sign of the X move. Use a short, rigid internal threading bar and reduce Δd by about 30% compared with an external thread.
Why is the thread height 0.6134 × pitch?
That is the practical depth for a 60° external metric thread cut with a sharp-point (partial profile) insert. Full-profile inserts use the manufacturer's catalog value, typically around 0.54–0.58 × pitch. You can overwrite the thread height in the simulator; check with a thread gauge and adjust the last pass accordingly.
Is G76 enough for trapezoidal (Tr) threads?
With a 30° angle G76 will cut a trapezoidal thread, but on 6–8 mm pitches the groove is so wide that even flank infeed does not lower the insert load enough. For those jobs use the FANUC Macro Threading tool, which splits the groove in both depth and width.