Lathe Macros

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.

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

mariusl wrote: 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?


I am a bit confused by your problem. If your lathe is set up in mm, and all the other numbers are mm, then the thread pitch should be mm. (ie, 1.25 in the box is correct for a 1.25mm pitch thread)

I think that the subs include a G21, but perhaps they don't. Is your lathe accidentally in Imperial mode?

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

More
12 years 1 month ago #50920 by mariusl
Replied by mariusl on topic Lathe Macros
Hi Andy

If you are confused by my problem then you must know how I am feeling already.
I spent many hours trying all kinds of things but it just remains the same.
The lathe is setup in mm - G21 present
There seem to be an index enable pulse that occurs every revelution of the chuck.

Have a gander at the pics included.







Regards
Marius


www.bluearccnc.com

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

Time to create page: 0.553 seconds
Powered by Kunena Forum