Lathe Macros

More
12 years 1 month ago #50866 by andypugh
Replied by andypugh on topic Lathe Macros

mariusl wrote: Is the threading function TPI only or is there a way to enter a metric pitch.

As my lathe is set up as metric then if I put "1.25" in the box I get a 1.25 mm pitch thread.
If your lathe is set up for imperial then you will get a 1.25" pitch.

However, if you put in the feature in post 48403 further up the page then you can type "25tpi" and it will automatically change to "1.016" and then if you type "mm" it will change to "0.04"

Also, is there a way to recover the original setting if the code was stopped midway? If not how would you do it in practise

The cycles all start from where the machine is when the "go" button is pressed, so if I decide to interrupt the sequence I just jog to a suitable starting point and press the button again.

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #50868 by Zahnrad Kopf
Replied by Zahnrad Kopf on topic Lathe Macros

andypugh wrote: However, if you put in the feature in post 48403 further up the page then you can type "25tpi" and it will automatically change to "1.016" and then if you type "mm" it will change to "0.04"


Andy,

Speaking as someone that has been living with the same way of things for years and years, THAT is pretty darn nifty! Nice work. I'll definitely look at implementing that once this one is up and running. Thank you.

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #50878 by mariusl
Replied by mariusl on topic Lathe Macros

As my lathe is set up as metric then if I put "1.25" in the box I get a 1.25 mm pitch thread.
If your lathe is set up for imperial then you will get a 1.25" pitch.


My lathe is set up for metric. I am not clever enough to work in imperial ;)
It looks like I did exactly as you would but the results are not the same.

I will implement the feature you mentioned. Will this feature be included in production (2.6.x) at any stage or will I have to make sure that I apply a fix after any update?

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #50881 by mariusl
Replied by mariusl on topic Lathe Macros

However, if you put in the feature in post 48403 further up the page then you can type "25tpi" and it will automatically change to "1.016" and then if you type "mm" it will change to "0.04"


Magic Stuff man. If I had paid attention to this I might have saved my threading tool. :blush:

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago - 12 years 1 month ago #50886 by mariusl
Replied by mariusl on topic Lathe Macros
Hi Andy
If I use the spinbox feature and enter 1.25mm it converts it to 0.0492 but then I get an error " In G76 K must be greater than J" You have J set at 0.2 so how does K get greater?
Must I modify the sub to use this in any way?

Regards
Marius


www.bluearccnc.com

Last edit: 12 years 1 month ago by mariusl.

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #50887 by mariusl
Replied by mariusl on topic Lathe Macros
I think the problem is now that depth is calculated on the TPI figure. When you enter a metric value the depth is not correct. So I multiplied the pitch by 25.4 and then with the 0.613. This however breaks the function for imperial threads. Or if you forget to add the mm after the entry.

I think a radio button for metric/imperial will be required unless you have a better idea ( I hope ).

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.582 seconds
Powered by Kunena Forum