same pocket at different tools

More
14 Nov 2022 18:50 #256707 by MichalHK
Hello,

first Im using random tool changer.
My idea is have in tool table defined and measured all tools in workshop.
But problem is if I define same pocket at multiple tools. Linuxcnc tell me that cant find tool in tool table.
If pocket is defined only for one tool all works great,
Is is normal behaviour?
I think that linux look into tool table find number of tool, read pocket and execute change.
Why check that pocket is same at many different tools?

Thanks Michal

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

More
14 Nov 2022 19:13 #256709 by andypugh
When does LinuxCNC tell you that it can't find the tool?
Which version of io are you using (Note, I am not sure that this makes any difference)
linuxcnc.org/docs/stable/html/man/man1/iocontrol.1.html

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

More
15 Nov 2022 12:27 #256770 by MichalHK
Using : IO control V2
Example:
Tool 1 pocket 8
Tool 2 pocket 8
Tool 3 pocket 10
Tool 4 pocket 14

MDI: T2M6 - Linux tell me "Requested tool 2 not found in the tool table" and erase all my tools from 2 at the end of table.
After that I must define all my tools and measere it, its lot of work.

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

More
16 Nov 2022 00:55 #256821 by andypugh
I just tried an experiment and with a nonrandom LinuxCNC itself (v2.8.4) is perfectly happy with shared pockets, but the tool editor isn't keen.

If you edit the table with a text editor it seems to work as expected (looking at iocontrol.0.tool-prep-pocket)

With a random toolchanger the behaviour is as you describe. 

It _might_ be possible to change this behaviour using a custom tool database handler:
linuxcnc.org/docs/devel/html/tooldatabase/tooldatabase.html

I haven't looked deeply enough into it to see whether this is possible. 

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

More
16 Nov 2022 18:50 #256877 by MichalHK
Thanks its secret room of linuxcnc. I never heard about this feature. I will thinking about it. I will check source code of linuxcnc becouse Im thinking its bad behaviour that linux erase me tool table. Tell any warning/error and stop machine is good but erase table not.

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

More
18 Nov 2022 23:27 #257077 by andypugh
I think you might be out of luck, Dewey just updated the docs for the tool database and also explained what is going on.

github.com/LinuxCNC/linuxcnc/commit/cd90...c327f2bcd5c59d8f5524

I know why the system works like it does, and fully understand why it has the effect that it has, but I don't necessarily approve of it.

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

More
20 Nov 2022 14:25 #257162 by MichalHK
OK, I understand. No problem. I change my handling tools. But fine it was if linuxcnc doesnt delete tool table.

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

More
21 Nov 2022 15:38 #257229 by andypugh
Unfortunately the way that the random toolchanger works is to write the current data to the tool table on every toolchange, and with duplicated pockets the internal data has "forgotten" about the earlier uses of the pockets by that stage.

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

Time to create page: 0.084 seconds
Powered by Kunena Forum