Hi all,

I need to screwcut a 1/2 NPT thread, 18mm in length using a fanuc oi control (2 line G76)

I've been searching here & elsewhere & have come up with a prog.

Would be grateful if you could have a look & see what you think:

(there is a relief at the front of the part, so I can start straight from Z0)

N3 T0303 (1/2 NPT - 14)
G97 S350 M3
G00 G99 X100. Z0.
G00 G40 G99 X22. M8
G76 P030060 Q40 R0.03
G76 X18.432 Z-18. P1500 R-0.562 Q200 F1.814 (Where: X = Pipe OD -(2 X HEIGHT) and R = (18/16) /2 )
G28 U0 M9
G28 W0
M01


Many thanks in advance for any advice


David