Article Contents

**G76 Cycle Introduction**

In CNC lathes ( Turning machine ), G76 cycle is used for threading. In this cycle the thread cutting tool continues automatically by repeating the cycle until it reaches the depth of P (thread height) by removing the sawdust in the cycle.

In early stages of CNC development, simple G92 threading cycle was a direct result of computerized technology of its time. Computer technology has been rapidly advancing and many great new features have been offered to CNC programmers. These new features simplify program development. One of the major additions is another lathe cycle, used for threading – a multiple repetitive threading cycle G76. This cycle is considered a complex cycle – not because it is difficult to use (on the contrary) but because it has some very powerful internal features.

To fully appreciate the impact of G76 threading cycle, compare it with the original G32 threading method, and even G92 cycle. While a program using the G32 method requires four or even five blocks for each threading pass, and G92 cycle requires one block for each threading pass, G76 cycle will do any single thread in one or two blocks of program, depending on control model. With G76 cycle, any number of threading passes will still occupy only a very small portion of the program, making any editing (if necessary) very easy and fast.

You may be interested also: |

“CNC Lathe | G92 Cycle | Basic Threading” |

**G76 Cycle Format**

There are two programming formats available, depending on the control model. This is similar to programming of the other lathe cycles.

**Fanuc 6T/10T/11T/15T**

Figure 38-12 illustrates G76 cycle for older Fanuc 10/11/15T controls. Straight thread is shown.

The following parameters form the structure of G76 cycle applied as one-block (external or internal threads):

The one-block programming format for G76 cycle is: |

G76 X.. Z.. I.. K.. D.. A.. P.. F.. |

**Parameters**

X = Last pass thread diameter (external or internal) |

Z = Thread end position |

I = Taper amount over total length (I0 for straight threads) |

K = Actual thread depth per side – positive |

D = First threading pass depth – positive (no dec. point) |

A = Included insert angle – positive (six selections) |

P = Infeed method – positive (four selections) |

F = Feedrate (always the same as thread lead) |

Observe differences in the format structure for multiple repetitive cycle G76 with simple G92 cycle. G76 cycle appears to be simple as well, but the control system must do a large number of calculations and checks. All these calculations need data, in the form of input parameters that establish required thread specifications. Yet, in spite of more input parameters, G76 cycle is very easy to use in CNC thread programming.

**Fanuc 0T/16T/18T/20T/21T**

On the later Fanuc controls 0T, 16T, 18T, 21T and others, format of G76 cycle is somewhat changed from older models. Its purpose and function remain the same, the difference is only in the way how program data input is structured. Fanuc 10/11/15T use a single line cycle input, described earlier. Fanuc 0/16/18T/21 and other models require a two line input. Programmer **does not have a choice** – each format depends on the control system.

One-block and two-block G76 cycles are not interchangeable! |

If the control system requires a two-block entry for G76 cycle, programming format must cover two blocks:

The two-block programming format for G76 cycle is: |

G76 P.. Q.. R.. |

G76 X.. Z.. R.. P.. Q.. F.. |

**Parameters**

First block – starts with G76: |

P = … is a six-digit data entry in three pairs:Digits 1 and 2 – number of finish cuts (01-99)Digits 3 and 4 – number of leads for gradual pull-out (0.0-9.9 times lead), no decimal point used (00-99)Digits 5 and 6 – angle of thread (tool tip angle) (00, 29, 30, 55, 60, 80 degrees only) |

Q = Minimum cutting depth (last depth of cut) (positive radial value – no decimal point) |

R = Fixed amount for finish allowance (decimal point allowed) |

Second block – also must start with G76: |

X = a) Last thread pass diameter (absolute= X)…or … b) Distance from the start position to the last thread diameter (incremental= U) |

Z = Z-axis endpoint of thread (can also be incremental distance W) |

R = Radial difference between start and end thread positions at the final pass (R0 used for straight threads can be omitted) |

P = Single depth of thread (height of thread) (positive radial value – no decimal point) |

Q = First threading pass depth (largest cutting depth) (positive radial value – no decimal point) |

F = Feedrate (always the same as thread lead) |

** Do not confuse** P/Q letters of the first block with the P/Q letters of the second block. They all have their own meaning – within each block only! Figure 38-13 shows some basic definitions of a straight two-block G76 threading cycle.

**G76 Cycle Examples**

**G76 CNC Program Example – 1**

O3453;

T0101;

G50 S2500;

G96 M4 S180;

G0 X25 Z2 M8;

G71 U2 R1;

G71 P1 Q2 U0.6 W0.1 F0.25;

N1 G1 G42 X8.5 F0.1;

Z0;

X12 Z-1.75;

G1 Z-30;

X20;

N2 G40;

G0 X200 Z200 M9;

T0303;

G97 M4 S3500;

G0 X25 Z2 M8;

G70 P1 Q2;

G0 X200 Z200 M9;

T0505;

G50 S2500;

G96 M4 S90;

G0 X13 Z2 M8;

G0 Z-28;

G75 R1;

G75 X9.8531 Z-30 P2000 Q2800 F0.1;

G0 X200 Z200 M9;

T0707;

G97 M3 S500;

G0 X13 Z2;

**G76 P020060 Q300 R0.05;**

**G76 X9.8531 Z-27 P1073 Q300 F1.75;**

G0 X200 Z200 M9;

M30;

**G76 CNC Program Example – 2**

N10 G97 S800 M03;

G00 X30.0 Z5.0 T0303;

**G76 P021060 Q100 R100;**

**G76 X18.2 Z-20.0 P900 Q500 F1.5;**

G00 X50.0 Z-20.0;

**G76 P021060 Q100 R100;**

**G76 X38.2 Z-52.0 P900 Q500 F1.5;**

G00 X200.0 Z200.0;

M30;

**G76 CNC Program Example – 3**

O3451;

T0101;

G50 S2250;

G96 M4 S160;

G0 X30 Z2 M8;

G71 U2 R2;

G71 P1 Q2 U0.4 W0.15 F0.2;

N1 G1 G42 X12 F0.1;

G1 Z0;

G1 X16 Z-2;

G1 Z-31;

G1 X25;

N2 G40

G0 X200 Z200 M9;

T0303;

G97 M4 S3000;

G0 X30 Z2 M8;

G70 P1 Q2;

G0 X200 Z200 M9;

T0505;

G50 S2000;

G96 M4 S80;

G0 X17 Z2 M8;

Z-31;

G75 R1.5;

G75 X13.5464 Z-31 P2200 Q2900 F0.18;

G0 X200 Z200 M9;

T0707;

G97 M3 S600;

G0 X17 Z2;

**G76 P010060 Q200 R0.08; ( For First Start )**

**G76 X13.5464 Z-30 P1227 Q150 F4;**

G0 X17 Z4;

**G76 P010060 Q200 R0.08**

*( For Second Start )***G76 X13.5464 Z-30 P1227 Q150 F4;**

G0 X200 Z200 M9;

M30;

**G76 CNC Program Example – 4**

O0015;

N310 G54

N315 T0101 M04;

N320 G50 S2000;

N325 G96 S150;

N330 G99 F0.3;

N335 G00 X45 Z0 M08;

N340 G01 X–1.6;

N345 G00 X45 Z4;

N350 G71 U3 R1;

N355 G71 P360 Q390 U0.5 W0.2 F0.2;

N360 G42 G00 X18 Z1;

N365 G01 X19 Z0;

N370 X24 Z–2.5;

N375 Z–55;

N380 X36;

N385 G03 X44 Z–59 R4 F0.2;

N390 G40;

N395 G00 X200 Z200;

N400 T0202;

N405 G00 X45 Z1;

N410 G70 P360 Q395;

N415 G00 X200 Z200;

N420 T0404;

N425 G00 X36 Z–53;

N430 G75 R1.;

N431 G75 X18. Z–54.95 P2000 Q1000 F0.2;

N432 G28;

N436 M05;

N441 T0606;

N446 G50 S2500;

N451 G96 S220 M03;

N456 G00 X25 Z4;

**N466 G76 P024560 Q100 R100;**

**N471 G76 X21.2 Z–50 R0 P1900 Q300 F2.5;**

N481 G28;

N486 M05 M09;

N491 M30;

**G76 CNC Program Example – 5**

O0016;

N15 G54

N20 T0101 M03;

N25 G50 S1000;

N30 G96 S75;

N35 G99 F0.3;

N35 G00 X68 Z0;

N40 G01 X–1.6;

N45 G00 X69 Z3;

N50 G71 U2 R1;

N55 G71 P60 Q100 U0.5 W0.3 F0.3;

N60 G42 G00 X14 Z1;

N65 G01 X15 Z0;

N70 X20 Z–2.5;

N75 Z–51;

N80 X50 Z–60;

N85 Z–72;

N90 G02 X58 Z–76 I4 K0 F0.2;

N95 G03 X66 Z–80 R4 F0.2;

N100 G40;

N105 G28 U0 W0;;

N110 T0303;

N115 G50 S2000;

N120 G96 S150

N125 G00 X69 Z3;

N130 G70 P60 Q100;

N135 G28 U0 W0;

N140 T0404;

N145 G97 S500;

N150 G00 X25 Z–45;

N155 G42;

N160 G01 X15;

N165 W–6;

N170 X21;

N175 G40;

N180 G00 X200 Z200

N185 T0606;

N190 G50 S1000;

N195 G96 S75;

N200 G00 X21 Z3;

**N205 G76 P034560 Q100 R100.;**

**N210 G76 X17. Z–45. R0. P1700 Q300 F2.;**

N215 G28 U0 W0;

N220 M05 M09;

N225 M30;

**G76 CNC Program Example – 6 – Internal Thread**

O0764

N15 G54;

N20 T0101 M04;

N25 G50 S2000;

N30 G96 S150;

N35 G99 F0.3;

N50 G00 X83 Z0;

N55 G01 X–2;

N60 G01 X84 Z2;

N65 G71 U3. R1.;

N70 G71 P75 Q90 U0.5 W0.3 F0.3;

N75 G42 X60;

N80 G01 Z–45;

N85 G02 X80. Z–55. I10. K0. F0.3;

N90 G40;

N95 G28;

N100 T0202;

N105 G00 X84 Z2;

N110 G70 P75 Q90;

N120 G00 X150 Z200;

N125 G28;

N130 T0404

N135 G00 X0 Z5;

N140 G01 Z–10;

N150 G00 Z5;

N155 G28;

N160 T0606;

N165 G50 S2000 M03;

N170 G96 S200 F0.3;

N180 G00 X0 Z5;

N185 G74 R1.5;

N190 G74 Z–60. Q6000 F0.2;

N195 G28;

N200 M05 M09;

N205 T1010 M04;

N210 G41 G00 X15 Z5;

N240 G90 X22. Z–45. F0.2;

N245 X25;

N250 X28;

N255 X30;

N260 G40;

N265 G28;

N270 T0808;

N275 G00 X15 Z5;

N280 G00 X28;

N285 G01 Z–40;

N290 G01 X 40;

N295 X28;

N295 Z–42;

N300 X40;

N295 G01 X28;

N300 G00 Z5;

N305 G28;

N310 T1212 M04;

N315 G00 X27 Z3;

**N325 G76 P101060 Q200 R200.**

**N326 G76 X34. Z–42. R0. P1950 Q400 F3.**

N331 G28;

N336 M05 M09;

N341 M30;

**G76 CNC Program Example – 7 – Taper Thread**

O0016;

N15 G54

N20 T0101 M04;

N25 G50 S1000;

N30 G96 S75;

N35 G99 F0.3;

N35 G00 X38 Z0;

N40 G01 X–1.6;

N45 G00 X38 Z3;

N50 G71 U1.5 R1;

N55 G71 P60 Q100 U0.5 W0.3 F0.3;

N60 G42 G00 X30 Z0;

N65 G01 X35 Z–27;

N70 Z–52;

N75 X38;

N80 G40;

N105 G28 U0 W0;

N110 T0303;

N115 G50 S2000

N120 G96 S150

N150 G70 P60 Q80;

N155 G28 U0 W0;

N140 T0404;

N145 G97 S500;

N150 G00 X36 Z–31;

N155 G75 R1;

N160 G75 X28 Z–37 P500 Q3000;

N180 G00 X200 Z200

N160 T0606;

N165 G0 X37.6 Z3

**N170 G76 P020060 Q100 R0.1;**

**N175 G76 X35 Z–27 R–2.5 P1300 Q500 F2;**

N180 G0 X200 Z200;

N185 M05 M09;

N190 M30;

**G76 CNC Program Example – 8 – Internal Taper Thread**

O0016;

N15 G54

N20 T0101 M04;

N25 G50 S1000;

N30 G96 S75;

N35 G99 F0.3;

N35 G00 X38 Z0;

N40 G01 X–1.6;

N45 G00 X38 Z3;

N50 G71 U1.5 R1;

N55 G71 P60 Q100 U0.5 W0.3 F0.3;

N60 G42 G00 X30 Z0;

N65 G01 X35 Z-27;

N70 Z–52;

N75 X38;

N80 G40;

N105 G28 U0 W0;

N110 T0303;

N115 G50 S2000

N120 G96 S150

N150 G70 P60 Q80;

N155 G28 U0 W0;

N140 T0404;

N145 G97 S500;

N150 G00 X36 Z–31;

N155 G75 R1;

N160 G75 X28 Z–37 P500 Q3000;

N180 G00 X200 Z200

N160 T0606;

N165 G0 X30 Z3

**N170 G76 P020060 Q100 R0.1;**

**N175 G76 X32.6 Z–27 R2.5 P1300 Q500 F2;**

N180 G0 X200 Z200;

N185 M05 M09;

N190 M30;

**Need to More?**

**Our volunteers** have worked together and **carefully prepared the articles** published here **in their native language without using machine translation.** You can **search the entire site for more information** on the subject. You can **start a discussion on CNCarea.com forums** and join us to get support, ask questions, improve a published article or give your opinion.