Pipe Threading
26 Dec 2022 19:22 #260340
by jtrantow
Replied by jtrantow on topic Pipe Threading
Could someone explain how npt_pipe.ngc is intended to be used? Is this called from MDI or can it be connected to the lathe macros?
Is there an easy way to extend this to work with metric configs?
Is there an easy way to extend this to work with metric configs?
Please Log in or Create an account to join the conversation.
27 Dec 2022 15:17 #260398
by jtrantow
Replied by jtrantow on topic Pipe Threading
I was able to make a water tight adapter for the new RO water filter so the immediate need for this is past.
Looking at some of the other posts, I guess I need to look into how the lathe macros hook up to the GUI. My lathe is still running axis and I'll wait until I have time to update to gmoccapy and integrate then.
I think npt_pipe.ngc will still need some changes for metric units unless there is some magic that can switch imperial to metric while this subroutine runs???
Looking at some of the other posts, I guess I need to look into how the lathe macros hook up to the GUI. My lathe is still running axis and I'll wait until I have time to update to gmoccapy and integrate then.
I think npt_pipe.ngc will still need some changes for metric units unless there is some magic that can switch imperial to metric while this subroutine runs???
Please Log in or Create an account to join the conversation.
31 Dec 2022 15:47 #260647
by andypugh
Replied by andypugh on topic Pipe Threading
The lathe macros were originally written for Axis. They don't really integrate with the GUI at all, other than being displayed in a tab in the GUI. The call a set of G-code subroutines with the various settings passed in as parameters.
Please Log in or Create an account to join the conversation.
01 Oct 2024 02:52 - 01 Oct 2024 02:55 #311108
by Barry
Replied by Barry on topic Pipe Threading
I downloaded the npt_pipe.ngc program this morning and it worked perfectly on my CNC Lathe to cut 1/2"-14 NPT threads. Thank you for sharing this program.
Listed below are a few minor tweaks that I had to make to get the program to run on my setup. I hope this helps others.
1) Double click on the attached file in the forum to open the file in the browser. Then, Select All and Copy. Open NotePad in Windows or Kate in Linux and then Paste in the entire program file. Select, Save As and Title it npt_pipe.ngc.
2) Delete the First Program Line..... o<npt_pipe> sub, OR Comment It Out
using parethesies..... (o<npt_pipe> sub).
3) Delete the Last Program Line...... o<npt_pipe> endsub, OR Comment It
Out using parethesies..... (o<npt_pipe> endsub)
4) About 11 Program Lines down, there is a list of variables = #1, #2, #3 etc. as shown below.
#<_OutsideDiameter> = #1 (Nom or Act Dia, D)
#<_TPI> = #2 (=0 TPI, 0 for auto)
#<_First_Cut_Depth> = #3 (=0.015 First Cut)
#<_Minimum_Cut_Depth> = #4 (=0.003)
#<_X_Clearance> = #5 (=0.075 X clearance)
#<_Z_LeadIn> = #6 (=0.250 Z Leadin)
#<_TipRadius> = #7 (=0.003 Tip Radius)
#<_Spring_Passes> = #8 (=1 Spring Passes)
#<_CompoundSlideAngle> = #9 (=29.5 Angle, 0-30)
Replace the #Numbers with your parameters and save the file. My parameters for a 1/2-14 NPT thread were as follows:
#<_OutsideDiameter> = 0.5 (Nom or Act Dia, D)
#<_TPI> = 0 (=0 TPI, 0 for auto)
#<_First_Cut_Depth> = 0.006 (=0.015 First Cut)
#<_Minimum_Cut_Depth> = 0.002 (=0.003)
#<_X_Clearance> = 0.075 (=0.075 X clearance)
#<_Z_LeadIn> = 0.0625 (=0.250 Z Leadin)
#<_TipRadius> = 0.003 (=0.003 Tip Radius)
#<_Spring_Passes> = 1 (=1 Spring Passes)
#<_CompoundSlideAngle> = 0 (=29.5 Angle, 0-30)
5) Open the saved .ngc file in Linuxcnc (i.e. Linuxcnc configured for a Lathe.)
Good luck. Barry
Listed below are a few minor tweaks that I had to make to get the program to run on my setup. I hope this helps others.
1) Double click on the attached file in the forum to open the file in the browser. Then, Select All and Copy. Open NotePad in Windows or Kate in Linux and then Paste in the entire program file. Select, Save As and Title it npt_pipe.ngc.
2) Delete the First Program Line..... o<npt_pipe> sub, OR Comment It Out
using parethesies..... (o<npt_pipe> sub).
3) Delete the Last Program Line...... o<npt_pipe> endsub, OR Comment It
Out using parethesies..... (o<npt_pipe> endsub)
4) About 11 Program Lines down, there is a list of variables = #1, #2, #3 etc. as shown below.
#<_OutsideDiameter> = #1 (Nom or Act Dia, D)
#<_TPI> = #2 (=0 TPI, 0 for auto)
#<_First_Cut_Depth> = #3 (=0.015 First Cut)
#<_Minimum_Cut_Depth> = #4 (=0.003)
#<_X_Clearance> = #5 (=0.075 X clearance)
#<_Z_LeadIn> = #6 (=0.250 Z Leadin)
#<_TipRadius> = #7 (=0.003 Tip Radius)
#<_Spring_Passes> = #8 (=1 Spring Passes)
#<_CompoundSlideAngle> = #9 (=29.5 Angle, 0-30)
Replace the #Numbers with your parameters and save the file. My parameters for a 1/2-14 NPT thread were as follows:
#<_OutsideDiameter> = 0.5 (Nom or Act Dia, D)
#<_TPI> = 0 (=0 TPI, 0 for auto)
#<_First_Cut_Depth> = 0.006 (=0.015 First Cut)
#<_Minimum_Cut_Depth> = 0.002 (=0.003)
#<_X_Clearance> = 0.075 (=0.075 X clearance)
#<_Z_LeadIn> = 0.0625 (=0.250 Z Leadin)
#<_TipRadius> = 0.003 (=0.003 Tip Radius)
#<_Spring_Passes> = 1 (=1 Spring Passes)
#<_CompoundSlideAngle> = 0 (=29.5 Angle, 0-30)
5) Open the saved .ngc file in Linuxcnc (i.e. Linuxcnc configured for a Lathe.)
Good luck. Barry
Last edit: 01 Oct 2024 02:55 by Barry. Reason: Add'l info.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds