write to Tool Table (specifically pocket) from O Code
- jhandel
- Offline
- Premium Member
Less
More
- Posts: 142
- Thank you received: 6
27 Dec 2020 02:56 #193261
by jhandel
write to Tool Table (specifically pocket) from O Code was created by jhandel
Howdy all,
Is there a way to write to a tools pocket via O code (or python that I can then expose as a custom G or M code?
Thanks
Josh
Is there a way to write to a tools pocket via O code (or python that I can then expose as a custom G or M code?
Thanks
Josh
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4025
- Thank you received: 1735
27 Dec 2020 03:39 #193263
by Aciera
Replied by Aciera on topic write to Tool Table (specifically pocket) from O Code
Since the tool table is stored in a text file you could maybe try to use a bash script to modify it. Another question is whether that modified file can then be reloaded while running the Gcode.
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
Less
More
- Posts: 142
- Thank you received: 6
27 Dec 2020 19:33 #193307
by jhandel
Replied by jhandel on topic write to Tool Table (specifically pocket) from O Code
Hoping there is a way though Python + Remap or straight O-code/G-code...
There is G10, but that seems to only set tool length not tool diameter and not any other props (like pocket, which is what I am hunting for now)..
And there doesn't seem to be a way to read the table either
There is G10, but that seems to only set tool length not tool diameter and not any other props (like pocket, which is what I am hunting for now)..
And there doesn't seem to be a way to read the table either
Please Log in or Create an account to join the conversation.
- mikeross
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 3
15 Jan 2021 01:15 - 15 Jan 2021 01:16 #195388
by mikeross
Replied by mikeross on topic write to Tool Table (specifically pocket) from O Code
Try M61
I accidentally had my machine set to random tool changer in the INI when doing an initial configuration and using M61 it seems that it looks for both the tool # and the pocket. So you may be able to set T to pocket Q by using M61 but I haven't tried myself.
If you don't have random tool changer configured M61 is content with just the tool # T
I accidentally had my machine set to random tool changer in the INI when doing an initial configuration and using M61 it seems that it looks for both the tool # and the pocket. So you may be able to set T to pocket Q by using M61 but I haven't tried myself.
If you don't have random tool changer configured M61 is content with just the tool # T
Last edit: 15 Jan 2021 01:16 by mikeross.
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds