- Posts: 19899
- Thank you received: 4655
Gmoccapy - A new screen for linuxcnc
- andypugh
- Offline
- Moderator
-
Less
More
13 years 3 months ago #36880
by andypugh
There is a G-code for that (G10) though it does not allow for changing the tool comment.
If you want to manipulate the tool table using "magic comments" then you could look at
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...0698515a22652a#l1353
Replied by andypugh on topic Gmoccapy - A new screen for linuxcnc
f1oat wrote: I would like to add a small feature to Gmoccapy: altering automatically the tool table by reading tags in G-Code file..
There is a G-code for that (G10) though it does not allow for changing the tool comment.
If you want to manipulate the tool table using "magic comments" then you could look at
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...0698515a22652a#l1353
- newbynobi
- Offline
- Moderator
-
Less
More
- Posts: 1931
- Thank you received: 394
13 years 3 months ago #36910
by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
@f1oat,
you have to add some code like Chris mentioned to hal_status_file_loaded,
as the file is placed in hal_sourceview, you can just parse this file and then you emit a clicked command to the corresponding buttons in gmoccapy to add a tool to the tooltable, you can emit also the apply button and so on.
I hope you don't get an error, loading the file, because at that moment the needed tools do not exist!
And what happen, when the tool already exist?
But it is a very interesant Idea, IMHO only theoretic, because what if you have the tools in the tool table, but you dont have them in real?
Norbert
you have to add some code like Chris mentioned to hal_status_file_loaded,
as the file is placed in hal_sourceview, you can just parse this file and then you emit a clicked command to the corresponding buttons in gmoccapy to add a tool to the tooltable, you can emit also the apply button and so on.
I hope you don't get an error, loading the file, because at that moment the needed tools do not exist!
And what happen, when the tool already exist?
But it is a very interesant Idea, IMHO only theoretic, because what if you have the tools in the tool table, but you dont have them in real?
Norbert
- f1oat
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 10
13 years 3 months ago #36912
by f1oat
Replied by f1oat on topic Gmoccapy - A new screen for linuxcnc
@cmorley @andypugh @newbynobi
Thank you for your help. I am now near a solution.
I will try to use Python class inheritance to keep my modifications outside the official gmoccapy, so that upgrade will be easy.
In my setup, tool change is manual. So, during G-Code execution, it will be safer to prompt for the tool with a human readable description instead of tool number. Also, automatic synchronization of tool table with Cambam is a must for me because I have not yet stabilized my Cambam tools list.
Thank you for your help. I am now near a solution.
I will try to use Python class inheritance to keep my modifications outside the official gmoccapy, so that upgrade will be easy.
In my setup, tool change is manual. So, during G-Code execution, it will be safer to prompt for the tool with a human readable description instead of tool number. Also, automatic synchronization of tool table with Cambam is a must for me because I have not yet stabilized my Cambam tools list.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
13 years 3 months ago #36914
by cmorley
Replied by cmorley on topic Gmoccapy - A new screen for linuxcnc
Excellent.
Please post a video or something when you get it working.
I'd like to see it
Chris M
Please post a video or something when you get it working.
I'd like to see it
Chris M
- jlviloria
- Offline
- Elite Member
-
Less
More
- Posts: 161
- Thank you received: 9
13 years 3 months ago #36935
by jlviloria
Replied by jlviloria on topic Gmoccapy - A new screen for linuxcnc
- newbynobi
- Offline
- Moderator
-
Less
More
- Posts: 1931
- Thank you received: 394
13 years 3 months ago #36954
by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Halo Jorge,
The quote is an email from Chris, because I also traped in it. I made a new git clone and transfered later my data to it.
Norbert
you must have tested pynggcgui before it was included in linuxcnc.
Which means it's still there in lib/python or lib/python/gladevcp
purge all the versions that are not included in the official source.
GObject is trying to register two programs with that same name.
I got caught with it tooI mentioned it in the maillist.
The quote is an email from Chris, because I also traped in it. I made a new git clone and transfered later my data to it.
Norbert
The following user(s) said Thank You: jlviloria
Moderators: newbynobi, HansU
Time to create page: 2.001 seconds