You can use G92
G92 X (1st cut) Z (end point) F (feed/lead)
X (2nd cut)
X (3rd cut)
X (4th cut)
X (5th cut)
etc etc etc
I have metric thread coming up using some material that's hard to get. I used the vardex thread turning program to program it, because I'm hesitant to do all the conversions myself and use a g76 cycle. The problem is I've never really used g-code that individually programs every pass. Here is the output:
PassNo Depth, inch Acc.depth, inch Accumulated. Z, inch D, inch
P1 0.0121 0.0121 -0.0036 2.6883
P2 0.0100 0.0221 0.0022 2.7083
P3 0.0091 0.0312 -0.0031 2.7265
P4 0.0070 0.0382 0.0009 2.7406
P5 0.0059 0.0441 -0.0025 2.7524
P6 0.0052 0.0493 0.0005 2.7628
P7 0.0047 0.0540 -0.0022 2.7722
P8 0.0043 0.0583 0.0003 2.7809
P9 0.0040 0.0624 -0.0020 2.7889
P10 0.0038 0.0662 0.0002 2.7965
P11 0.0036 0.0697 -0.0019 2.8036
P12 0.0034 0.0731 0.0001 2.8104
P13 0.0033 0.0764 -0.0018 2.8169
P14 0.0031 0.0795 0.0000 2.8232
P15 0.0030 0.0825 -0.0017 2.8292
P16 0.0029 0.0854 0.0000 2.8350
P17 0.0028 0.0882 -0.0016 2.8406
P18 0.0027 0.0909 0 2.8460
My plotter gives me a syntax error I was wondering what I had to had in order to get this to run on a Fanuc controller. Is there a g code I need to preface this with?
EDIT: For reference it is an internal M72 x 4 thread.
You can use G92
G92 X (1st cut) Z (end point) F (feed/lead)
X (2nd cut)
X (3rd cut)
X (4th cut)
X (5th cut)
etc etc etc
Standard Fanuc single step threading......
Generic Code:
N1000
G00G54G97T0404M04
G50S625
X2.9346Z0.0
M41
G97S0625
G00X2.8326Z-0.0821
G1X2.9294
G32Z-3.0F0.25
G00X2.8326
Z-0.1564
G01X3.0152
G32Z-3.0F0.25
G00X2.8326
Z-0.224
G01X3.0933
G32Z-3.0 F0.25
G00X2.8326
Z-0.2859
G01X3.1648
G32Z-3.0F0.25
G00X2.8326
Z-0.3427
G01X3.2304
G32Z-3.0F0.25
G00X2.8326
Z-0.375
G01X3.2677
G32Z-3.0F0.25
G00X2.8326
X2.8346Z5.0
X10.0
G97
G30U0W0
M01
M30
Another Example: (Reverse JIS Spec.)
%
:0001
G00T0404
M42
G97S0625M04
X-2.9346Z0.0
G00X-2.8326Z-0.0821
G01X-2.9294
G32Z-3.0.F0.25
G00X-2.8326
G00Z-0.1564
G01X-3.0152
G32Z-3.0F0.25
G00X-2.8326
G00Z-0.224
G01X-3.0933
G32Z-3.0F0.25
G00X-2.8326
G00Z-0.2859
G01X-3.1648
G32Z-3.0F0.25
G00X-2.8326
G00Z-0.3427
G01X-3.2304
G32Z-3.0F0.25
G00X-2.8326
G00Z-0.375
G01X-3.2677
G32Z-3.0F0.25
G00X-2.8326
G00X-2.8346Z5.0
G00X-10.0
G28U0W0
T0400
M05
M30
Good Luck![]()