Lathe Macros

More
21 Sep 2014 21:57 - 21 Sep 2014 22:22 #51407 by pippin88
pippin88 replied the topic: Lathe Macros
I'm trying to integrate these into gmoccapy but not having much success.

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:
Emit interp-run
emc/task/emctask.cc 389: interp_error: Named parameter #<_hal[gladevcp.turn.z-f]> not defined
Named parameter #<_hal[gladevcp.turn.z-f]> not defined
/usr/lib/pymodules/python2.7/gmoccapy/notification.py:111: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1 char 51: '_hal[gladevcp.turn.z-f]' is not a valid name: '[' 
  label.set_markup(text)
/usr/lib/pymodules/python2.7/gmoccapy/notification.py:125: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1 char 51: '_hal[gladevcp.turn.z-f]' is not a valid name: '[' 

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
Last Edit: 21 Sep 2014 22:22 by pippin88.
More
23 Sep 2014 12:51 #51473 by mariusl
mariusl replied the topic: Lathe Macros
Sorry for not replying in time here but my data network was down for three days.

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.
More
23 Oct 2014 19:31 #52331 by cncbasher
cncbasher replied the topic: Lathe Macros
Nick ,
i'll take a look at this in the next few days
More
16 Dec 2014 04:30 #54040 by drogge
drogge replied the topic: Lathe Macros
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.

Thanks,
Drew
More
16 Dec 2014 04:51 #54042 by andypugh
andypugh replied the topic: Lathe Macros

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.
More
16 Dec 2014 04:56 #54043 by drogge
drogge replied the topic: Lathe Macros
Thanks Andy. I appreciate it.

Drew
More
16 Dec 2014 06:10 #54044 by mariusl
mariusl replied the topic: Lathe Macros
Andy
What is the status of the code that is included in the distro's?
More
16 Dec 2014 06:17 #54045 by andypugh
andypugh replied the topic: Lathe Macros

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.
More
16 Dec 2014 06:31 #54046 by andypugh
andypugh replied the topic: Lathe Macros

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.
More
16 Dec 2014 08:58 - 16 Dec 2014 09:24 #54053 by drogge
drogge replied the topic: Lathe Macros
I ran a find on the 2.6.3 distribution and couldn't locate one of the files from LatheMacro.zip so I don't think it's included in that distribution.

edit: not in the 2.6.5 distro either.

Drew
Last Edit: 16 Dec 2014 09:24 by drogge.
Time to create page: 0.087 seconds
Powered by Kunena Forum