Limit to number of tools in tool table

More
23 Sep 2018 19:14 #117903 by Gommiswald
Hi
I also wanted to change one of my CNC milling machinges to linuxCNC, but with the limation of tools to 56, I have no chance. For the milling machine I have about 150 tools.
I tried the above link, changed the two files with no resultat. T60 M6 G43 will give a error message.
Also the limitation that a tool must always have a specific pocket number - never the same - it is difficult to work with tool turret. If you have a carousel with 8 places, but a you have more than these 8 tools - what can we do? IMO it is normal, that a tool number 1 and a tool number 9 could have the same pockets.

Has anybody an idea? It would be great.

Daniel

Please Log in or Create an account to join the conversation.

More
23 Sep 2018 20:40 #117908 by andypugh
You can _own_ more than 56 tools as long as you don't have them all in the tool table at the same time.

So, you can keep all the tools in (for example) a spreadsheet and paste them in to the tool table as you add them to a project.

I realise this is not ideal, and I spent a long time some years ago working on keeping an unlimited number of tools in a database, but never got it integrated into a released version of linuxCNC.

Please Log in or Create an account to join the conversation.

More
06 Nov 2018 07:51 #120080 by szatri

Tool table limit (257 instead of 56)
By default the tool limit of linuxcnc is 56 tools. This is normally to low (after all we are not working with a >10 year controller). To solve this two changes must be made in the source code as described below:

linuxcnc.nml
The file linuxcnc.nml is located at:

"your linuxcnc-dev"/configs/common/linuxcnc.nml

Two changes should be made:

Replace the value 16384 of line number 10:

B emcStatus SHMEM localhost 16384 0 0 2 16 1002 TCP=5005 xdr

to 33792

B emcStatus SHMEM localhost 33792 0 0 2 16 1002 TCP=5005 xdr


and replace the value 8192 of line number 15:

B toolSts SHMEM localhost 8192 0 0 5 16 1005 TCP=5005 xdr

to 33792

B toolSts SHMEM localhost 33792 0 0 5 16 1005 TCP=5005 xdr


emctool.h
The file emctool.h is located at:

"your linuxcnc-dev"/src/emc/nml_intf/emctool.h

One change should be made:

Replace the value 56 of line number 23:

define CANON_POCKETS_MAX 56

to 257

define CANON_POCKETS_MAX 257


Compile and have fun with more tools!


Hello, where can I find these files for editing?
it is not in the machine settings directory.

Please Log in or Create an account to join the conversation.

More
06 Nov 2018 10:32 #120092 by andypugh
These changes require downloading the source-code of LinuxCNC and re-compiling.

Please Log in or Create an account to join the conversation.

More
18 Nov 2018 09:31 - 18 Nov 2018 09:36 #120935 by nkp
checked the changes from here github.com/LinuxCNC/linuxcnc/issues/411

but this is a very short and simple test))
Has anyone already tried this at work?
ps
large_tool_file_generator:
gist.github.com/nkp216/6b7212d09cb696c9478cb7668e239984
Attachments:
Last edit: 18 Nov 2018 09:36 by nkp.

Please Log in or Create an account to join the conversation.

More
23 Feb 2020 20:53 #158328 by 3D-Master
one thing that i would really appreciate is to define a tool as a touch probe. This way the tool will be only allowed to rotate when orienting the spindle. M3/M4 commands will be ignored. Also the maximum feedrate should be limited to a definable value.

Other useful parameters would be:

Tool edge radius (0 or more, float)
Delta length (extra tool length offset - negative, 0 or positive - float)
Delta radius (extra tool radius offset - negative, 0 or positive - float)
Delta edge radius (extra tool edge radius offset - negative, 0 or positive - float)
orienting angle (0-359.999 - float)
Tool locked (used with breakage detection - 0 or 1)
number of cutting edges (0 or positive)
length offset and radius offset (for measuring length and radius - negative, 0 or positive - float)
lbreak and rbreak (for tool breakage detection - negative, 0 or positive - float)
Nmax (maximum rotation speed - 0 or positive)

and maybe to be allowed to define tools like this: T1.1 (still the same physical tool but other definitions)

my wishlist :P

Please Log in or Create an account to join the conversation.

More
23 Feb 2020 22:19 #158336 by cmorley
There was some work on using a database for the tool table.
This would allow arbitrary info to be added to the tooltable.
This would be a first step to what you want.

Andy started it but got discouraged by lack of support IIRC.

Chris

Please Log in or Create an account to join the conversation.

More
24 Feb 2020 16:18 #158393 by andypugh
Max speed would seem like a very sensible thing to have in a base tool database, rather than a custom entry.

To avoid this:


(And another I saw but can't now find where a fly-cutter went through the cabinet and two walls)
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
24 Feb 2020 16:33 #158394 by andypugh
Added to wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolDatabase
(but does it really belong in the "tool" category?)

Please Log in or Create an account to join the conversation.

More
24 Feb 2020 17:04 #158396 by 3D-Master

(but does it really belong in the "tool" category?)


yes, at least what i know Heidenhain does this. This prevents the tool to go above the set max-rpm when automatically calculating the rpm based on the tool diameter and cutting speed (VC in Metric and SFM in Imperial)

Please Log in or Create an account to join the conversation.

Time to create page: 0.404 seconds
Powered by Kunena Forum