Tool Table
- babinda01
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 1
03 Jul 2018 07:12 #113297
by babinda01
Tool Table was created by babinda01
Hi
I am playing around with a new GUI, and am fiddling around with the tool-table. My question is, can I add addidtional fields, that I can use within my gui, but which won't affect how LinuxCNC reads the table?
For example can I add the following enteries, without disturbing Linuxcnc when it reads the table in:
S10000
F300
M8
N7
Thanks
I am playing around with a new GUI, and am fiddling around with the tool-table. My question is, can I add addidtional fields, that I can use within my gui, but which won't affect how LinuxCNC reads the table?
For example can I add the following enteries, without disturbing Linuxcnc when it reads the table in:
S10000
F300
M8
N7
Thanks
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
03 Jul 2018 08:05 #113299
by cmorley
Replied by cmorley on topic Tool Table
I assume you wish to save these entries to a file?
presently you would need to save these entries to a separate file.
There has been work to eliminate this limitation but nothing has been finished.
Chris M
presently you would need to save these entries to a separate file.
There has been work to eliminate this limitation but nothing has been finished.
Chris M
Please Log in or Create an account to join the conversation.
- babinda01
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 1
03 Jul 2018 08:27 #113300
by babinda01
Replied by babinda01 on topic Tool Table
Hi Chris
Thanks for your help. I was hoping to be able to use just the one tool file, nevermind. I will write a master tool-table within my application and then create the LinuxCNC tool-table from that.
I have modeled most of my tool-table from a Siemens 828, and so I want to be able to set spindle info, feeds, coolant parameters etc within my table.
Regards
Andrew
Thanks for your help. I was hoping to be able to use just the one tool file, nevermind. I will write a master tool-table within my application and then create the LinuxCNC tool-table from that.
I have modeled most of my tool-table from a Siemens 828, and so I want to be able to set spindle info, feeds, coolant parameters etc within my table.
Regards
Andrew
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
03 Jul 2018 08:33 #113301
by cmorley
Replied by cmorley on topic Tool Table
Oh yes I understand, the tool table is woofully incomplete.
Chris M
Chris M
Please Log in or Create an account to join the conversation.
- babinda01
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 1
03 Jul 2018 10:50 #113305
by babinda01
Replied by babinda01 on topic Tool Table
Hi Chris
Thanks, the 2 tooltable method seems to be working for me. Attached is a screenshot of my first rough attempt which seems to be working.
Thanks, the 2 tooltable method seems to be working for me. Attached is a screenshot of my first rough attempt which seems to be working.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
03 Jul 2018 11:01 #113306
by cmorley
Replied by cmorley on topic Tool Table
beautiful!
Wanna build some widgets for qtvcp
i am not sure if you are referencing gladevcp widgets for your work (or if you are using python) but I will warn you if you use your tooltable to actually edit linuxcnc's tooltable file, you will want to add code to make sure the OS doesn't cache the data.
gladevcp uses this:
Chris M
Wanna build some widgets for qtvcp
i am not sure if you are referencing gladevcp widgets for your work (or if you are using python) but I will warn you if you use your tooltable to actually edit linuxcnc's tooltable file, you will want to add code to make sure the OS doesn't cache the data.
gladevcp uses this:
# Theses lines are required to make sure the OS doesn't cache the data
# That would make linuxcnc and the widget to be out of synch leading to odd errors
file.flush()
os.fsync(file.fileno())
# tell linuxcnc we changed the tool table entries
try:
linuxcnc.command().load_tool_table()
except:
print "Reloading tooltable into linuxcnc failed"
Chris M
Please Log in or Create an account to join the conversation.
- babinda01
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 1
03 Jul 2018 11:51 #113310
by babinda01
Replied by babinda01 on topic Tool Table
Hi Chris
I suppose at about this point I need to admit/confess to being a "Windows Person", please dont think any less of me.
I am using a split screen (2 seperate monitors on the one pc) approach like the new Mazak, and DMG Mori CELOS controls ().
I have used your GScreen basic tutorial to make quite a simple UI that gets displayed on the top Monitor, this ui is pretty well just Gremlin and the GCode window. The lower monitor is then displaying my app which is written in B4J, and which connects to the LinuxCNC python interface via websockets.
In this way I can have my tool setup screens, workpiece setting screens, probing screens etc etc. as well as a simple 2.4D cadcam system that I wrote quite some time ago.
As soon as its finished I will be posting most of it - possibly without the cadcam portion.
Regards
Andrew
I suppose at about this point I need to admit/confess to being a "Windows Person", please dont think any less of me.
I am using a split screen (2 seperate monitors on the one pc) approach like the new Mazak, and DMG Mori CELOS controls ().
I have used your GScreen basic tutorial to make quite a simple UI that gets displayed on the top Monitor, this ui is pretty well just Gremlin and the GCode window. The lower monitor is then displaying my app which is written in B4J, and which connects to the LinuxCNC python interface via websockets.
In this way I can have my tool setup screens, workpiece setting screens, probing screens etc etc. as well as a simple 2.4D cadcam system that I wrote quite some time ago.
As soon as its finished I will be posting most of it - possibly without the cadcam portion.
Regards
Andrew
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
03 Jul 2018 19:30 #113342
by cmorley
Replied by cmorley on topic Tool Table
That's a unique way of doing it. Cool!
I'm glad GScreen and the tutorial was useful to you.
I'll be interested to see a video or pics of your system.
Welcome to the dark side (linux) lol
Chris M
I'm glad GScreen and the tutorial was useful to you.
I'll be interested to see a video or pics of your system.
Welcome to the dark side (linux) lol
Chris M
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4866
07 Jul 2018 17:25 #113687
by andypugh
We did develop a tool database schema (and as it is a database you can easily add extra fields)
wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolDatabase
I got it working, but it never made it into a "real" LinuxCNC distribution.
Replied by andypugh on topic Tool Table
I have modeled most of my tool-table from a Siemens 828, and so I want to be able to set spindle info, feeds, coolant parameters etc within my table.
We did develop a tool database schema (and as it is a database you can easily add extra fields)
wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolDatabase
I got it working, but it never made it into a "real" LinuxCNC distribution.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10841
- Thank you received: 3579
07 Jul 2018 21:08 #113721
by rodw
Replied by rodw on topic Tool Table
I've seen your tool table database schema Andy. Its not something I need but I did wonder if it could not be ported to one of the python SQL database engines rather than using SQL Lite. This might offer a tighter integration to the LinuxCNC code base.
Please Log in or Create an account to join the conversation.
Time to create page: 0.096 seconds