G-code G76 is a cnc cycle which is used for thread cutting on cnc machines.
Threading cycle G76 is explained here G76 Thread Cycle.
Taper thread cutting with G76 thread cycle is explained here G76 Tapered Threading
For Multi-start thread cutting with G76 see G76 Multi-Start Threading
For G76 threading cycle one line see G76 One-Line Format.
G76 threading cycle can be used for internal threading on cnc lathe machines.
This G76 threading example actually cuts external threads on two different diameters.
G76 Thread Cycle Example
N10 T3 N20 G97 S800 M03 N30 G00 X30 Z5 T0303 N40 G76 P021060 QI00 R100 N50 G76 X18.2 Z-20 P900 Q200 FI.5 N60 G00 X50 Z-20 N70 G76 P021060 Ql00 R100 N80 G76 X38.2 Z-52 P900 Q200 FI .5 N90 G00 X200 Z200 N100 M30