Lathe Macros

More
13 years 5 months ago - 3 years 11 months ago #34357 by andypugh
Lathe Macros was created by andypugh
[EDIT 13/11/22 The various versions are now available for download here: github.com/andypugh/LatheMacros/releases ]

[EDIT 12/7/22 See here for an updated GTK3 version  forum.linuxcnc.org/41-guis/26550-lathe-macros?start=240#247195 ]

I have re-vamped the interface for my lathe.



The config is attached as a ZIP file. This is a sim-config just for playing about with.
[strike]Note that it uses features only included in Master (specifically the ability to read HAL pins in G-code)[/strike]

The macros now receive the values as subroutine parameters. so the FEATURES option is not needed.

Also new is the ability to type "3in" and have the value automatically become 76.2 to use imperial values on a metric lathe, or type 75mm and have the value automatically become 2.95 for the reverse
You can also type "tpi" for conversion to mm pitch, and the fractions /2 /4 /16 /32 /64 too.

So, if you want you can type "2 5/64in" and end up with the value in the box of "52.784"

[EDIT 13/11/2016] I have now made a re-sizable version for touch-screen use: forum.linuxcnc.org/41-guis/26550-lathe-macros?start=150#82743
Last edit: 3 years 11 months ago by andypugh.
The following user(s) said Thank You: Dimitrios, Bari, jrsphoto, RotarySMP, BruceLayne, arvidb, pkasy, jo_key, aer73, eFalegname and 5 other people also said thanks.

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

More
13 years 5 months ago #34362 by Zahnrad Kopf
Replied by Zahnrad Kopf on topic Lathe Macros
Andy,

That is really, really nice! Very well done, Sir. Well done, indeed.
Makes me want to get a box up and running before I get the turning center finished so I can play with it.

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

More
13 years 5 months ago #34401 by BigJohnT
Replied by BigJohnT on topic Lathe Macros
Very nice!

JT

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

More
13 years 5 months ago #34417 by emcPT
Replied by emcPT on topic Lathe Macros
:woohoo: Very good.

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

More
13 years 5 months ago - 10 years 10 months ago #34420 by andypugh
Replied by andypugh on topic Lathe Macros
I am still ironing the bugs out, but I made parts with the system this weekend.

The main problem at the moment is that the GladeVCP tabs steal keyboard events if the mouse pointer is over the tab.
ie, if the mouse pointer is on a part of the screen that is not the GladeVCP tab, then keyboard jogging in Axis works normally.
However, if you move the mouse pointer onto the tab (no need to click anything) the the cursor keys change values in the spinboxes, rather than jogging the machine.

[strike]Actually, the real main problem is that the "turning" macro is badly broken in the version I posted. There is a confusion about diameter/radius implicit in the G-code routine. I will fix this soon.
In the meantime, don't use this config on a real machine.[/strike]
Last edit: 10 years 10 months ago by andypugh.

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

More
13 years 5 months ago #34421 by ArcEye
Replied by ArcEye on topic Lathe Macros
Nice screen Andy

If only gremlin could create an image like that for the pre-view :laugh:

The main problem at the moment is that the GladeVCP tabs steal keyboard events if the mouse pointer is over the tab.
ie, if the mouse pointer is on a part of the screen that is not the GladeVCP tab, then keyboard jogging in Axis works normally.
However, if you move the mouse pointer onto the tab (no need to click anything) the the cursor keys change values in the spinboxes, rather than jogging the machine.


At a guess you probably have to hook into the enter-notify-event handler or whatever Gtk calls it, and discard the events in the gladevcp panel, so that only mouse button presses register there.

I see there already a kludge in ...gladevcp/xembed.py to try to stop it stealing keyboard events that are meant for Axis.

Good luck with that, focus grabbing is a pain in the proverbial.

regards

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

Time to create page: 0.442 seconds
Powered by Kunena Forum