Higgins909
Aluminum
- Joined
- Nov 19, 2018
I can program basic shapes, but when it comes to threads/angles idk what's going on. It's a Mitsubishi lathe with a M70 controller. Shares a lot of code with HAAS I think but some are different. I have a 24th edition Machinery's Handbook. I found the NPT area and could not figure out how to calculate this thread. Looking at the print it shows the thread kind of blending in with the diameter. I could just tell it to make a L2 E2 thread but that wouldn't match up with the diameter of the part. I speak in Inches and my G-code is messy as I haven't done much with it.
The example part:
1/4 NPT external with some kind of unspecified 45 deg chamfer on the first thread/s... I haven't even started to worry about calculating that. Then the rest of the diameter of the shaft is 0.545"... 2" part with a 1/4 NPT thread with that DIA the whole length.
So I've figured that I need to have a ramp up area and I thought I calculated that ok. X0.4648 Z0.2 . I've found that every inch of thread is tapered at .0625" so I did that x .2 and took that number and subtracted from the E0 number. I thought I was getting somewhere then I realized I needed to calculate the thread to match the .545 diameter. That's where I struggled. I somehow came up with it being about 1.08" long. The taper looked possibly ok in Fusion 360 but the length looked way too long. (Fusion doesn't have NPT from my findings and skills are limited on that as I use it for basic 3d printing only)
I also struggle with the G76. I THINK I got everything correct on the G76 minus the R value which I don't really understand and the X Z positions. I have noticed my G71 might not be using TNR (G42) properly. But this is the code I had made. It's not much, I was stressing on the calculations of the NPT more than anything... I got off work and have spent several hours trying to figure it out... I don't call myself a machinist.
Thanks,
Higgins909
The example part:
1/4 NPT external with some kind of unspecified 45 deg chamfer on the first thread/s... I haven't even started to worry about calculating that. Then the rest of the diameter of the shaft is 0.545"... 2" part with a 1/4 NPT thread with that DIA the whole length.
So I've figured that I need to have a ramp up area and I thought I calculated that ok. X0.4648 Z0.2 . I've found that every inch of thread is tapered at .0625" so I did that x .2 and took that number and subtracted from the E0 number. I thought I was getting somewhere then I realized I needed to calculate the thread to match the .545 diameter. That's where I struggled. I somehow came up with it being about 1.08" long. The taper looked possibly ok in Fusion 360 but the length looked way too long. (Fusion doesn't have NPT from my findings and skills are limited on that as I use it for basic 3d printing only)
I also struggle with the G76. I THINK I got everything correct on the G76 minus the R value which I don't really understand and the X Z positions. I have noticed my G71 might not be using TNR (G42) properly. But this is the code I had made. It's not much, I was stressing on the calculations of the NPT more than anything... I got off work and have spent several hours trying to figure it out... I don't call myself a machinist.
Thanks,
Higgins909
Code:
(OP1 R3 EDITING0 ;
(CAUTION-RESTART) ;
(T1 ROUGH) ;
(T2 DRILL) ;
(T3 FIN) ;
(T5 THREAD) ;
(T8 CEN) ;
(G54) ;
;
(BARPULL FACE) ;
T0101 ;
G00 G18 G20 G40 G80 G99 ;
G54 G50 S3000 ;
G00 X0.2 Z0.025 ;
M00 ;
;
;
(TURN);
G00 Z0.1 ;
X0.75 ;
G97 S750 M03 ;
G96 S500 M08 ;
G01 Z0.002 F0.008 ;
X-0.032 ;
G00 Z0.1 ;
X0.75 ;
;
;
G71 U0.02 R0.05 ;
G71 P100 Q110 U0.020 W0.002 F0.008 ;
N100 G00 G42 X0.4773 Z0.0 F0.0035 ;
G01 X0.5025 Z-0.4018 ;
G01 X0.545 ;
G01 G40 Z-2.0 ;
N110 G40 X0.75 ;
;
;
G97 S750 ;
G28 G00 U0.0 M09 ;
G28 G00 W0.0 ;
;
;
(FIN FACE TURN);
T0303 ;
G00 G18 G20 G40 G80 G99 ;
G54 ;
G50 S3000 ;
G97 S750 M03 ;
;
G00 X0.75 Z0.0 ;
G96 S500 M08 ;
G01 X-0.032 F0.005 ;
G00 Z0.1 ;
X0.45 ;
;
G70 P100 Q110;
;
G97 S750 M05 ;
G28 G00 U0.0 M09 ;
G28 G00 W0.0 ;
;
;
(THREAD);
T0505 ;
G00 G18 G20 G40 G80 G99 ;
G54 ;
G50 S3000 ;
G97 S750 M03 ;
;
G00 X0.4648 Z0.2 M08 ;
;
G76 P020029 Q50 R10 ;
G76 X 0.5025 Z-0.4018 R-0.0312 P444 Q50 F0.0555 ;
;
G28 G00 U0.0 M09 ;
G28 G00 W0.0 ;
;
M30 ;