Lathe Macros
14 Apr 2021 20:03 - 14 Apr 2021 20:06 #205935
by Muzzer
Replied by Muzzer on topic Lathe Macros
I'm confused by the path config.
I previously had this path in my INI file:
SUBROUTINE_PATH = subroutines
I believe I need to add the lathe macros folder, which looks like this in my case. I suspect I can use an incremental(?) path but don't know how to implement that yet:
SUBROUTINE_PATH = /home/muzzer/linuxcnc/configs/probe_basic/probe_basic_lathe/lathe_macros_V3
How do I end up with both folders in my path? Do I simply separate them with a colon like this?
SUBROUTINE_PATH = subroutines: /home/muzzer/linuxcnc/configs/probe_basic/probe_basic_lathe/lathe_macros_V3
I'm a Linux noob as you can tell.
Also, the README file talks about .PNG files which seem to have been superseded by an SVG file. Presumably this has several images within it?
I previously had this path in my INI file:
SUBROUTINE_PATH = subroutines
I believe I need to add the lathe macros folder, which looks like this in my case. I suspect I can use an incremental(?) path but don't know how to implement that yet:
SUBROUTINE_PATH = /home/muzzer/linuxcnc/configs/probe_basic/probe_basic_lathe/lathe_macros_V3
How do I end up with both folders in my path? Do I simply separate them with a colon like this?
SUBROUTINE_PATH = subroutines: /home/muzzer/linuxcnc/configs/probe_basic/probe_basic_lathe/lathe_macros_V3
I'm a Linux noob as you can tell.
Also, the README file talks about .PNG files which seem to have been superseded by an SVG file. Presumably this has several images within it?
Last edit: 14 Apr 2021 20:06 by Muzzer.
Please Log in or Create an account to join the conversation.
14 Apr 2021 20:50 #205937
by andypugh
Replied by andypugh on topic Lathe Macros
Yes, a colon separator should work.
There are two variants of the macros, a fixed-size one using PNG and then a resizable one using SVG (And, yes, all the images are different layers in the same file in the case of the SVG.)
The touchscreen / resizable version needs a button connected to the gladevcp "cycle-start" button to start each macro. I would encourage that to be a physical button.
There are two variants of the macros, a fixed-size one using PNG and then a resizable one using SVG (And, yes, all the images are different layers in the same file in the case of the SVG.)
The touchscreen / resizable version needs a button connected to the gladevcp "cycle-start" button to start each macro. I would encourage that to be a physical button.
Please Log in or Create an account to join the conversation.
15 Apr 2021 19:41 #206037
by Muzzer
Replied by Muzzer on topic Lathe Macros
I've got this in my INI file:
[DISPLAY]
DISPLAY = probe_basic_lathe
LATHE = 1
# Andy Pugh's macros here:
EMBED_TAB_NAME=Cycles
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
# QtPyVCP Specific Options
CONFIRM_EXIT = False
FULLSCREEN = True
MAXIMIZE = False
POSITION = 0x0
LOG_FILE = sim.log
LOG_LEVEL = DEBUG
PREFERENCE_FILE = sim.pref
CONFIG_FILE = custom_config.yml
and
[RS274NGC]
RS274NGC_STARTUP_CODE = G7 G18
# File containing interpreter variables
# PARAMETER_FILE = sim-lathe.var
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = subroutines: /home/muzzer/linuxcnc/configs/probe_basic/probe_basic_lathe/lathe_macros_V3/
I even copied these files into the same directory as the INI file:
lathehandler.py
lathemacro.ui
LatheMacro.svg
But no cigar was there.
I was hoping to see an additional tab alongside Main/File/Offsets etc near the middle of the screen. Could somebody point me in the right direction please? Thanks!
[DISPLAY]
DISPLAY = probe_basic_lathe
LATHE = 1
# Andy Pugh's macros here:
EMBED_TAB_NAME=Cycles
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
# QtPyVCP Specific Options
CONFIRM_EXIT = False
FULLSCREEN = True
MAXIMIZE = False
POSITION = 0x0
LOG_FILE = sim.log
LOG_LEVEL = DEBUG
PREFERENCE_FILE = sim.pref
CONFIG_FILE = custom_config.yml
and
[RS274NGC]
RS274NGC_STARTUP_CODE = G7 G18
# File containing interpreter variables
# PARAMETER_FILE = sim-lathe.var
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = subroutines: /home/muzzer/linuxcnc/configs/probe_basic/probe_basic_lathe/lathe_macros_V3/
I even copied these files into the same directory as the INI file:
lathehandler.py
lathemacro.ui
LatheMacro.svg
But no cigar was there.
I was hoping to see an additional tab alongside Main/File/Offsets etc near the middle of the screen. Could somebody point me in the right direction please? Thanks!
Please Log in or Create an account to join the conversation.
15 Apr 2021 20:17 #206042
by andypugh
Replied by andypugh on topic Lathe Macros
If you start LinuxCNC from the command line do you see any clues?
Please Log in or Create an account to join the conversation.
15 Apr 2021 21:02 #206046
by Muzzer
Replied by Muzzer on topic Lathe Macros
Thanks, I'd forgotten that was an option! I'll have a look at the messages....
Please Log in or Create an account to join the conversation.
15 Apr 2021 21:19 #206048
by Muzzer
Replied by Muzzer on topic Lathe Macros
I can't see any mention of any of the files or key words. Looks as if it's not getting launched perhaps.
Attachments:
Please Log in or Create an account to join the conversation.
15 Apr 2021 22:57 #206057
by andypugh
Replied by andypugh on topic Lathe Macros
Does Probe Basic support embedded tabs? Maybe it doesn't?
The GladeVCP docs have the format to load a plane standalone, you could try that.
The GladeVCP docs have the format to load a plane standalone, you could try that.
Please Log in or Create an account to join the conversation.
17 Apr 2021 12:26 #206182
by Muzzer
Replied by Muzzer on topic Lathe Macros
I think I can sort of see what you refer to in the Glade docs but this is beyond my ken at the moment. I have nothing approaching a profound knowledge at the moment, apart from profound knowledge of my ignorance perhaps!
I may have to leave this until the next PB Lathe release and/or until I've done some more self tuition.
I may have to leave this until the next PB Lathe release and/or until I've done some more self tuition.
Please Log in or Create an account to join the conversation.
20 Apr 2021 12:22 #206522
by andypugh
Replied by andypugh on topic Lathe Macros
I think you might need to ask on the ProbeBasic part of the forum if it is possible to embed a GladeVCP tab in the QtVCP GUI. I can see that it might not be supported.
Please Log in or Create an account to join the conversation.
07 Aug 2021 10:25 #217112
by BigDo
Replied by BigDo on topic Lathe Macros
i also have a problem with lathe macros. The backgroundpicture does not show up.
My .INI and Picture Path is
/home/cnc//linuxcnc/configs/universa500_LatheMacros
Subs are in
/home/cnc//linuxcnc/configs/universa500_LatheMacros/nc_subroutines/lathemacros
Someone any Ideas why this backgroundpictue does not show up?
Niko
My .INI and Picture Path is
/home/cnc//linuxcnc/configs/universa500_LatheMacros
Subs are in
/home/cnc//linuxcnc/configs/universa500_LatheMacros/nc_subroutines/lathemacros
Someone any Ideas why this backgroundpictue does not show up?
Niko
Please Log in or Create an account to join the conversation.
Time to create page: 0.130 seconds