Gmoccapy - A new screen for linuxcnc

More
13 years 3 months ago #36880 by andypugh
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
More
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
More
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.
More
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
More
13 years 3 months ago #36935 by jlviloria
Replied by jlviloria on topic Gmoccapy - A new screen for linuxcnc
Hello,

<< git pull and git reset >>> to see the improvements made, but will not leave me any GScreen and gmoccapy configs, I get this error.


Jorge Viloria


Attachments:
More
13 years 3 months ago #36954 by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Halo Jorge,

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 too :) I 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
Powered by Kunena Forum