- Posts: 262
- Thank you received: 0
Lathe Macros
Has anyone been able to?
I can get the tab to appear with the following my INI.
EMBED_TAB_NAME= Cycles
EMBED_TAB_LOCATION= ntb_preview
The tab appears with pictures, spin boxes etc.
I get an error when I press go.
I've tried
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
EMBED_TAB_COMMAND=gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
EMBED_TAB_COMMAND=gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
as commands.
I get the following error:
What I would ideally like to do is embed more directly via python, as I'm customising gmoccapy, but I can't for the life of me work out how to do this.
I must admit I don't quite understand how these Lathe Macros actually work, I can't find the code that actually does the cutting.
I understand the GUI generation but not how it does anything with the input values.
EDIT: I see now that HAL_SpinButton etc pass values to Hal. The gcode routines then read these.
EDIT2: I think I've got it working, I'd mixed up config files when I put:
[RS274NGC]
# Enables the reading of INI and HAL values from gcode
FEATURES=12
(and not actually put them in my active config)
Thanks,
Nick
Please Log in to join the conversation.
The problem was surely the features=12 that was not present.
I am using the macros extensively and they work very well in gmoccapy.
I will be adding some feature to that soon but for now I am snowed under with a large project.
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
i'll take a look at this in the next few days
Please Log in to join the conversation.
Thanks,
Drew
Please Log in to join the conversation.
drogge wrote: Can someone point me to the latest version of LathMacros? The zip file in the first post hasn't been updated since May 18, 2013 and from reading this topic is seems as though some things may have been fixed.
Yes, some things have indeed been fixed, and I have added the ability to enter different units in the boxes and have them auto-convert.
I have not got round to putting up the new version, I will try to do it tomorrow.
Please Log in to join the conversation.
Drew
Please Log in to join the conversation.
What is the status of the code that is included in the distro's?
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
mariusl wrote: What is the status of the code that is included in the distro's?
Is it in a sample config? I don't recall doing that.
Please Log in to join the conversation.
mariusl wrote: What is the status of the code that is included in the distro's?
Is it in a sample config? I don't recall doing that.
Please Log in to join the conversation.
edit: not in the 2.6.5 distro either.
Drew
Please Log in to join the conversation.
