G76 Cycle Examples for CNC Lathe

G76 Cycle Examples

Example - 1

G76 Cycle Program Example - 1

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;

Example - 2

G76 Cycle - Two-rim screw example

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;

Example - 3

G76 Cycle Program Example - 3

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;

Example - 4

G76 Cycle Program Example - 4

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;

Example - 5 (Internal Thread)

G76 Cycle Program Example for Internal Threading

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;

Example - 6 (Taper Thread)

G76 Cycle Program Example for 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;

Example - 7 (Internal Taper Thread)

G76 Cycle Program Example for 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;

Example - 8 (OD Threading)

M20 x 2.5
Pitch = 2.5

External Threading - M20

O00076 ;
T0000 ;
G00 X0. Z-100. ;
T0808 M07 ;
G97 S1000 M04 ;
G00 X22. Z5. ;
G76 P020060 Q200 R100 ;
G76 X16.8 Z-40. P1600 Q500 F2.5 ;
S0 T0000 ;
G00 X0. Z-100. M09 ;
M05 ;
M30 ;

Internal Threading - M20

O0079 ;
T0000 G00 X0 Z-100. ;
T0707 M07 ;
G97 S1000 M04 ;
G00 X15. Z5. ;
G76 P020060 Q200 R100 ;
G76 X20. Z-40. P1600 Q500 F2.5 ;
S0 T0000 X0. Z-100. M09 ;
M05 ;
M30 ;

Example - 9

Multiple Start Threading

Four start thread cutting on φ30mm (RH) lead 8mm
Pitch = Lead / No. start
Pitch = 8 / 4 = 2mm

O0763 ;
T0000 ;
G0 X0. Z-100. ;
T0505 M07 ;
G97 S1000 M04 ;
G0 X32. Z10. ; (For 1. Start)
G76 P020060 Q150 R50 ;
G76 X27.44 Z-60. P11280 Q400 F8.0 ;
G0 X32.Z8. ;(For 2. Start)
G76 P020060 Q150 R50 ;
G76 X27.44 Z-60. P1280 Q400 F8.0 ;
G0 X32.Z6. ; (For 3. Start)
G76 P02.0060 Q150 R50 ;
G76 X27.44 Z-60. P1280 Q400 F8.0 ;
G0 X32. Z4. ;(For 3. Start )
G76 P020060 Q150 R50 ;
G76 X27.44 Z-60. P1280 Q400 F8.0 ;
S0 T0000 M09 ;
G0 X0.2-100. M05 ;
M30 ;

Example - 10

N10 G97 S1000 M03 ;
T0100 ;
G00 X50.0 Z5.0 T0101 ;
G76 P021060 Q100 R100 ;
G76 X28.2 Z-32.0 P900 Q500 F1.5 ;
G00 X200.0 Z200.0 T0100 ;
M30 ;