Lathe Macros
- pippin88
- Offline
- Elite Member
Less
More
- Posts: 260
- Thank you received: 45
21 Sep 2014 21:57 - 21 Sep 2014 22:22 #51407
by pippin88
Replied by pippin88 on 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:
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
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.
Please Log in or Create an account to join the conversation.
- mariusl
- Offline
- Platinum Member
23 Sep 2014 12:51 #51473
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on 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.
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 or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
Less
More
- Posts: 1776
- Thank you received: 292
23 Oct 2014 19:31 #52331
by cncbasher
Replied by cncbasher on topic Lathe Macros
Nick ,
i'll take a look at this in the next few days
i'll take a look at this in the next few days
Please Log in or Create an account to join the conversation.
- drogge
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
16 Dec 2014 04:30 #54040
by drogge
Replied by drogge on 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
Thanks,
Drew
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
Less
More
- Posts: 23537
- Thank you received: 4852
16 Dec 2014 04:51 #54042
by andypugh
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.
Replied by andypugh on 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.
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 or Create an account to join the conversation.
- drogge
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
16 Dec 2014 04:56 #54043
by drogge
Replied by drogge on topic Lathe Macros
Thanks Andy. I appreciate it.
Drew
Drew
Please Log in or Create an account to join the conversation.
- mariusl
- Offline
- Platinum Member
16 Dec 2014 06:10 #54044
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic Lathe Macros
Andy
What is the status of the code that is included in the distro's?
What is the status of the code that is included in the distro's?
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
Less
More
- Posts: 23537
- Thank you received: 4852
16 Dec 2014 06:17 #54045
by andypugh
Is it in a sample config? I don't recall doing that.
Replied by andypugh on topic Lathe Macros
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 or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
Less
More
- Posts: 23537
- Thank you received: 4852
16 Dec 2014 06:31 #54046
by andypugh
Is it in a sample config? I don't recall doing that.
Replied by andypugh on topic Lathe Macros
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 or Create an account to join the conversation.
- drogge
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
16 Dec 2014 08:58 - 16 Dec 2014 09:24 #54053
by drogge
Replied by drogge on 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
edit: not in the 2.6.5 distro either.
Drew
Last edit: 16 Dec 2014 09:24 by drogge.
Please Log in or Create an account to join the conversation.
Time to create page: 0.194 seconds