- Posts: 508
- Thank you received: 94
what is the right command(sequence) for adding new tool?
- Reinhard
- Offline
- Platinum Member
-
Less
More
7 years 1 day ago #149257
by Reinhard
Replied by Reinhard on topic what is the right command(sequence) for adding new tool?
Hi,
I was able to do a quick test. Good news: it works.
Then I tested the "reload" of a complete different file. This worked too, but had the side effect, that the original tool table was overwritten with the content of the other file. That was unwanted.
So bug or feature?
I'd like the idea of loading different tool-table sets. But I'd like to preserve each file - same as with gcode files. So what about adding path of tool-table-file to Tool-stats and change persistence handling with a given new filename?
I was able to do a quick test. Good news: it works.
Then I tested the "reload" of a complete different file. This worked too, but had the side effect, that the original tool table was overwritten with the content of the other file. That was unwanted.
So bug or feature?
I'd like the idea of loading different tool-table sets. But I'd like to preserve each file - same as with gcode files. So what about adding path of tool-table-file to Tool-stats and change persistence handling with a given new filename?
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
-
Less
More
- Posts: 5711
- Thank you received: 2100
7 years 12 hours ago #149334
by phillc54
Replied by phillc54 on topic what is the right command(sequence) for adding new tool?
You could have four tool tables, say tools.0, tools.1, tools.2 and tools.1
tools.0 would be empty and it would be the one you specified in your .ini file
tools.1, tools.2 & tools.3 would be your real tool table sets
Create (or add to an existing) a GladeVCP panel with three buttons to load the tool tables
In the python handler file for each button have something like:
This would load the contents of tools.1 into the current tool table (tools.0) as the startup tool table
You wouldn't be able to edit tools.1, tools.2 or tools.3 from the GUI as it would only edit the current contents of tools.0
tools.0 would be empty and it would be the one you specified in your .ini file
tools.1, tools.2 & tools.3 would be your real tool table sets
Create (or add to an existing) a GladeVCP panel with three buttons to load the tool tables
In the python handler file for each button have something like:
Warning: Spoiler!
Code:
#!/usr/bin/env python
import os
import linuxcnc
import shutil
def tools(new):
shutil.copy(new, table)
c.load_tool_table()
def on_tools_1_clicked(widget):
tools('tools.1')
def on_tools_2_clicked(widget):
tools('tools.2')
def on_tools_3_clicked(widget):
tools('tools.3')
i = linuxcnc.ini(os.environ['INI_FILE_NAME'])
c = linuxcnc.command()
table = i.find('EMCIO', 'TOOL_TABLE')
tools('tools.1')
This would load the contents of tools.1 into the current tool table (tools.0) as the startup tool table
You wouldn't be able to edit tools.1, tools.2 or tools.3 from the GUI as it would only edit the current contents of tools.0
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
7 years 10 hours ago #149342
by Reinhard
Replied by Reinhard on topic what is the right command(sequence) for adding new tool?
Hi Phil,
I kept thinking about tool management too and I finally came to the conclusion, that my conception of tool management is not appropriate for a cnc machine/controller.
So I probabely will create a standalone tooleditor with hierarchical tool definitions and lots of properties, so that you can share your tool definitions between cam and cnc-machine.
Then I will enable the tooleditor to generate a tool table file for linuxcnc (and another for a cam) and then a reload-button in the UI (together with single file handling) will suffice.
Thanks anyway
I kept thinking about tool management too and I finally came to the conclusion, that my conception of tool management is not appropriate for a cnc machine/controller.
So I probabely will create a standalone tooleditor with hierarchical tool definitions and lots of properties, so that you can share your tool definitions between cam and cnc-machine.
Then I will enable the tooleditor to generate a tool table file for linuxcnc (and another for a cam) and then a reload-button in the UI (together with single file handling) will suffice.
Thanks anyway
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
6 years 11 months ago #149545
by andypugh
It probably is. But LinuxCNC itself is far too simplistic in its tool handling.
Some time ago I came up with this, and even got some way in to making LinuxCNC work that way:
wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolDatabase
Replied by andypugh on topic what is the right command(sequence) for adding new tool?
Reinhard wrote: I kept thinking about tool management too and I finally came to the conclusion, that my conception of tool management is not appropriate for a cnc machine/controller.
It probably is. But LinuxCNC itself is far too simplistic in its tool handling.
Some time ago I came up with this, and even got some way in to making LinuxCNC work that way:
wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolDatabase
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
6 years 11 months ago #149628
by Reinhard
Replied by Reinhard on topic what is the right command(sequence) for adding new tool?
Hi Andy,

As I don't know much about lathe, I asked a friend, who recently became teamleader of multi-axis machines, to show me toolmanagement at a multi-axis machine.
Surprise!
He just established the tool-management I had in mind
He shares my opinion, that uses should not have to bother with slots or slot types.
The multiaxis machine has a carussel with static mounted tools and one or more milling spindle(s) with connection to atc.
The machine offers a separate tool-management editor for each spindle/carussel.
And my friend established the "standard", that the machine knows every tool, that is mounted in an adapter/tool holder - no matter wether the tool is inside the machine or outside.
This way the "operator" just cares about tool number - and the machine knows all values related to the tool number. Each tool keeps its tool-number, even outside of the machine.
The places for the toolholders are numbered according the tool numbers.
Yeah - I love it
And the tool is identifyable by comment and picture
Very nice.
So I try to go for it ...
Ah - by the way:
Even in the multiaxis machine, each tool is identified by the known parameters from basic machines, which means: length, radius and head radius for turning tools and X-, Z- and Orientation for static lathe tools.
No tool has parameters for UVWABC axis.
May be, linuxcnc did too much on that area.
Well, you're rightIt probably is.
As I don't know much about lathe, I asked a friend, who recently became teamleader of multi-axis machines, to show me toolmanagement at a multi-axis machine.
Surprise!
He just established the tool-management I had in mind
He shares my opinion, that uses should not have to bother with slots or slot types.
The multiaxis machine has a carussel with static mounted tools and one or more milling spindle(s) with connection to atc.
The machine offers a separate tool-management editor for each spindle/carussel.
And my friend established the "standard", that the machine knows every tool, that is mounted in an adapter/tool holder - no matter wether the tool is inside the machine or outside.
This way the "operator" just cares about tool number - and the machine knows all values related to the tool number. Each tool keeps its tool-number, even outside of the machine.
The places for the toolholders are numbered according the tool numbers.
Yeah - I love it
And the tool is identifyable by comment and picture
Very nice.
So I try to go for it ...
Ah - by the way:
Even in the multiaxis machine, each tool is identified by the known parameters from basic machines, which means: length, radius and head radius for turning tools and X-, Z- and Orientation for static lathe tools.
No tool has parameters for UVWABC axis.
May be, linuxcnc did too much on that area.
Please Log in or Create an account to join the conversation.
- akb1212
- Away
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 12
6 years 11 months ago #149674
by akb1212
Replied by akb1212 on topic what is the right command(sequence) for adding new tool?
I fully agree with you here Reinhard.
I come from using commersial systems at work, and a tool list with all necesary data that is easily shared with the CAM is a must.
So as Fusion 360 is used by a large portion of us as it is available at no cost it should be supported.
Also, Autodesk are open on their formats.
The question is if this is much work to be implemented. And also, who can do it. I can say I don't have the skills to do that.
Then there is the freecam world, which is another good initiative. I haven't looked to deeply in to that yet, but I assume they also have some form of tool management system?
Either way any CAM software needs more data than what you describe here. Geometry of the tool and holder is probably the most importent part. This is needed for colision testing, and is as such essential. This is already freely available in Fusion 360, so there is no reasons not to use it. And I strongly recommend using it!
The question is whether this is part of the library that LinuxCNC is seeing or not.
I come from using commersial systems at work, and a tool list with all necesary data that is easily shared with the CAM is a must.
So as Fusion 360 is used by a large portion of us as it is available at no cost it should be supported.
Also, Autodesk are open on their formats.
The question is if this is much work to be implemented. And also, who can do it. I can say I don't have the skills to do that.
Then there is the freecam world, which is another good initiative. I haven't looked to deeply in to that yet, but I assume they also have some form of tool management system?
Either way any CAM software needs more data than what you describe here. Geometry of the tool and holder is probably the most importent part. This is needed for colision testing, and is as such essential. This is already freely available in Fusion 360, so there is no reasons not to use it. And I strongly recommend using it!
The question is whether this is part of the library that LinuxCNC is seeing or not.
Please Log in or Create an account to join the conversation.
Time to create page: 0.133 seconds