Lathe Macros
[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.
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
Please Log in or Create an account to join the conversation.
- Zahnrad Kopf
- Offline
- Elite Member
- Posts: 218
- Thank you received: 3
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.
JT
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
In the meantime, don't use this config on a real machine.
Please Log in or Create an account to join the conversation.
If only gremlin could create an image like that for the pre-view
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.
- willburrrr2003
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
Regards,
Will
Please Log in or Create an account to join the conversation.
That is pretty awesome, Well Done Sir,
Question, how would one go about adding this to their own config? We will be starting another turning center retrofit here shortly, and wouldn't mind tinkering with this when I get it up and running.
Thanks
Rick
Please Log in or Create an account to join the conversation.
Question, how would one go about adding this to their own config?
There are a few glitches I am ironing out (like, I forgot to make the facing sub pay any attention to angle, and I really can't get threads to work)
Also, the tool-per-sub thing is really annoying me, I am going to do away with that, and have a setup tab to choose a tool and possibly set its offset. (This is part of a plan to stop using the Axis touch-off button as I am forever getting mixed up between tool and coordinate system, and messing up the whole thing)
But, other than that, it can live in a tab alongside any other options, and really doesn't get in the way at all. It just requires a few INI file entries and some G-code files in the config directory (deliberately out of their normal position)
Feel free to experiment with the published version, and let me know what you think so far. Just possibly leave out the tool or the workpiece
Please Log in or Create an account to join the conversation.
I tried you Macro code and it seems to be the thing to use for my application. At least the savestate.ini stuff.
I have a silly question seeing that I am wanting to use this kind of thing with Gmoccapy and a touch screen with no keyboard or mouse. Is there a way to enlarge the spin button so that it could be more touch friendly or should I have another approach here?
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.