Hi, I currently have an Okuma LB15 which is a great machine but am looking at a HAAS SL30 (2004) for its bigger spindle & longer turning length. I machine a lot of hydraulic cylinder rods, most of which are pretty basic...one end has a thread for the clevis & the other a thread & maybe a step up for the piston.
On my Okuma I have a couple of different variable programs for each end in which I can simply change the values at the start of the program for different size chrome bar, thread size, length etc.
@018$A.MIN%
(1 & 1/4 X 12 TPI VARIABLE THREAD)
(PUTS 1MM X 45 DEG CHAMFER ON ROD)
(CAL SHOULDER OF THREADING TOOL)
DX1=38.1 (CHROME BAR DIA)
DX2=31.7 (THREAD OD)
LZ=0 (FACE OF JOB***DO NOT CHANGE)
LZ1=6 (AMOUNT TO FACE OFF)
LZ2=31 (FULL LENGTH FROM FACE) (LZ)
LZ3=30.5 (LENGHT OF THREAD)
G0X300Z300
G50S2500
T010101 (0.8 CNMG)
G0X=DX1-10Z=LZ+LZ1
M0 (PULL OUT STOCK)
G0X=DX1+3Z=LZ+LZ1+2
G96S180M42M3
Z=LZ+LZ1
M8
G86N1D1F.2
N1G82
G0X=DX1+3Z=LZ
G1X-1.5
Z=LZ+1
G80M9
G0Z=LZ+2
G85N2D5U.5W.05F.2
N2G81
G0X=DX2-3.5
G1G42Z=LZ F.18
X=DX2 Z=LZ-1
Z=LZ-LZ2
X=DX1-2
G1X=DX1+3Z=LZ-LZ2-2.5
G40
G80
G0X300Z300M9
N3G97S750M42M3T020202 (.8 VNMG)
G0X=DX2+3Z=LZ+2
G96S220M8
G87N2
G0X300Z300 M9
N4G97S450M42M3T0303 (THREAD 12 TPI)
G0X=DX2+10Z=LZ+10 M8
G71X=DX2-2.77Z=LZ-LZ3 H2.77D.3U.07F2.116M22M33M74
G0X300Z300M9
M2
These work really well so I am wondering if the HAAS control (2004) provides a similar function?
Also, if anyone knows how I can add variables for the threading cycle( G71 X=DX2-2.77 Z=LZ-LZ3 H2.77 D.3U.07 F25.4J12 to the start of my program it would be awesome. At the moment I scroll through the program & change these for different threads.
Thanks in advance.