G76 Threading Cycle Simulator and NC Code Generator (FANUC Lathe)

14 July 2026

Mentor CNC Editör Ekibi

⚙️ MENTOR CNC
G76 Vida Disi Acma Cevrimi (Tek Noktali) · FANUC 0i-TC Uyumlu · Egitim Simulatoru
G76 MODULU
⚙️ Parca & Dis Bilgisi
Tornalanmis silindir uzerine acilacak disin disardan capi (M anma capi)
📝 Dis Standardi (otomatik hatve/aci)
 
Standart secilince otomatik dolar, manuelde siz girin
FANUC G76'da sadece bu acilar gecerli
Alin yuzu Z=0 kabul edilir
Dis sonu (negatif, aynaya dogru)
Dis derinligi: 0.6134 x P = ...
 
⚒ G76 Cevrim Parametreleri
Ilk pasoda kesilen derinlik (yaricap)
Bundan kucuk paso atilmaz
Son ek finis pasosu derinligi
Ayni derinlikte tekrar gecis (yuzey kalitesi)
0=pah yok, 1=tam hatve pahli cikis (rolyef varsa kullanilir)
🔧 Malzeme & Kesme
⚡ Kesme Parametreleri
Vc (kesme hizi)100 m/dak
Hesaplanan paso sayisi
n (sabit devir)500 dev/dak
Maks. devir (G50)2500 dev/dak
🖥️ Canli Takim Yolu Simulasyonu hazir
🟦 Ham stok 🟦 Islenmis profil ── G0 hizli ── G1 kesme ▮ Takim
⚡ G-Kod Ciktisi (CNC'ye hazir)
 
💡 G76 Dis Acma Cevrimi — Bilmen Gerekenler
ONEMLI NOT: Bu arac genel ortalama degerlerle hazirlanmis bir egitim ornegidir. Gercek isleme oncesi malzeme olcusune ve kullandiginiz insertin uretici katalog Vc/f degerlerine gore parametreleri mutlaka kontrol edip duzeltiniz.
▸ G76 ile G92 farki nedir?
G92 BASIT bir cevrimdir: her paso icin AYRI bir satir yazip capi siz elle kucultursunuz. G76 ise TEK cagirmayla calisan OTOMATIK bir cevrimdir: ilk paso derinligini (Δd) verirsiniz, kontrol kalan tum pasolari, acili (compound) dalisi ve finis pasolarini kendisi hesaplayip uygular.
▸ Pasolar neden gittikce kuculur?
G76, ilerledikce kesme alani sabit kalsin diye her pasoyu bir oncekinden DAHA SIG alir (kok-kare azalan model). Ilk pasolar derin, son pasolar cok incedir — bu sayede takim her pasoda benzer yuk gorur, citirdama (chatter) azalir.
▸ Aci (a) hem profili hem dalis yonunu belirler
Girilen dis acisi (60/55/80/30/29) sadece V profilini degil, takimin acili (compound) mi yoksa duz mu dalacagini da belirler. 0° = radyal (duz) dalis, diger acilar = takim agirlikli tek kenardan kesim yaparak omru uzatir.
▸ Standart secince hatve neden otomatik geliyor?
Sistemde ISO metrik kaba hatve (M3-M64) ve Whitworth (BSW) tablolari hafizada kayitlidir. Anma capini girip standardi secince hatve ve aci otomatik dolar; "Manuel" secip kendi hatve/acinizi de girebilirsiniz.

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.
⚠️ SORUMLULUK REDDI: Bu arac bir egitim simulatorudur. Uretilen G-kodu gercek CNC tezgahinda kullanmadan once mutlaka uzman makinist tarafindan kontrol edilmeli, takim offsetleri dogru tanimlanmali ve parca oncesi kuru calisma (dry run) yapilmalidir. Mentor CNC, olusabilecek hicbir kayip, hasar veya yaralanmadan sorumlu tutulamaz.

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 calculationProgrammer writes each passControl calculates
InfeedRadial (both flanks cut)Flank infeed along the thread angle
Program lengthOne block per passTwo blocks
Spring passesAdded manuallyAutomatic with m
Best forFine pitch, 2–4 passes, quick jobsCoarse 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

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. 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".
  6. 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.
  7. 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) ;
AddressSimulator fieldNote
mSpring (finish) passes01–99
rPull-out chamfer00–99 → 0.0–9.9 × lead
aThread angle60 metric/UN, 55 Whitworth, 30 trapezoidal
Q(Δdmin)Minimum pass depthmicrons, no decimal point (Q100 = 0.1 mm)
R(d)Finish allowancemm, radius value
XMinor (root) diametermajor diameter − 2 × thread height
ZThread end Zabsolute
R(i)Taper (radius)0 or omitted = straight thread
P(k)Thread heightmicrons (P1534 = 1.534 mm)
Q(Δd)First pass depthmicrons
FLeadmm/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.

PitchThread height k (0.6134 × P)Δd = 0.4 mmΔd = 0.6 mm
1.5 mm0.92 mm6 passes3 passes
2.0 mm1.23 mm10 passes5 passes
2.5 mm1.53 mm15 passes7 passes
3.0 mm1.84 mm22 passes10 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):

Pass123456789Finish
Total depth (mm)0.500.710.871.001.121.221.321.411.481.53
Removed this pass (mm)0.500.210.160.130.120.110.100.090.070.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 / alarmCauseFix
PS0061 "Address P/Q not specified"P(k) or Q(Δd) missing in the second G76 blockWrite 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/0Regenerate 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 lostPut G97 S___ before the threading blocks
Lead error in the first turnStart Z too close to the face, slide cannot accelerateStart at least 2–3 pitches in front of the part
Chatter, rough flank finishΔd too large, long tool overhang, rpm too highReduce Δd, set m=2, lower rpm by about 20%
Unwanted chamfer at the thread endM23 (chamfering) is active at power-upAdd M24 or set r=00
Cycle interrupted and jogged by handThe program cannot resume mid-cycleReturn 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: P1534 for 1.534 mm, Q500 for 0.5 mm. P1.534 gives 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.