Modify tool table by macro - i.e. slot #

Here is where you can request new features or special features.

Modify tool table by macro - i.e. slot #

Postby DanStory » Tue Nov 30, 2021 12:44 am

I have found that there is no specific way to modify the tool table [extended] fields outside of the typical Z offset and dia values. Part of making an M6 ATC macro I need to control the slot # which I can only read and not save in a formal manner, I have resorted to using the exec.Writekey to save the slot # for a tool, however this then doesn't update the in-memory copy of the tool table UCCNC manages, so the tool table details modal does not reflect any changes I save (via exec.Writekey) nor does it from exec.Gettooltabledata(). It would be ideal if there was APIs to manage the tool table in complete form accessible by macros.
DanStory
 
Posts: 22
Joined: Tue Nov 30, 2021 12:29 am

Re: Modify tool table by macro - i.e. slot #

Postby DanStory » Sat Jan 15, 2022 10:54 pm

Is this on the roadmap? The work arounds are easily open to human error and/or data loss.
DanStory
 
Posts: 22
Joined: Tue Nov 30, 2021 12:29 am

Re: Modify tool table by macro - i.e. slot #

Postby cncdrive » Sat Jan 15, 2022 11:26 pm

Yes, this was implemented yesterday, and is to be final tested.
cncdrive
Site Admin
 
Posts: 4934
Joined: Tue Aug 12, 2014 11:17 pm

Re: Modify tool table by macro - i.e. slot #

Postby DanStory » Mon Jan 17, 2022 1:44 pm

Thanks for the update, I can't wait for its release :D
DanStory
 
Posts: 22
Joined: Tue Nov 30, 2021 12:29 am

Re: Modify tool table by macro - i.e. slot #

Postby lp_felix » Wed Feb 16, 2022 6:29 pm

DanStory wrote:Thanks for the update, I can't wait for its release :D


+1
lp_felix
 
Posts: 26
Joined: Tue Sep 06, 2016 3:11 pm

Re: Modify tool table by macro - i.e. slot #

Postby lp_felix » Tue Apr 19, 2022 6:21 pm

DanStory wrote:Thanks for the update, I can't wait for its release :D


+1
lp_felix
 
Posts: 26
Joined: Tue Sep 06, 2016 3:11 pm

Re: Modify tool table by macro - i.e. slot #

Postby juraj.balaj » Sat Nov 25, 2023 9:50 pm

Is it implemented in 1.2116v?
juraj.balaj
 
Posts: 4
Joined: Wed Jan 13, 2021 8:29 pm

Re: Modify tool table by macro - i.e. slot #

Postby cncdrive » Mon Nov 27, 2023 10:07 pm

Yes.
cncdrive
Site Admin
 
Posts: 4934
Joined: Tue Aug 12, 2014 11:17 pm

Re: Modify tool table by macro - i.e. slot #

Postby juraj.balaj » Mon Dec 25, 2023 10:26 pm

Thank you, but I haven't found an API to manage the detailed tooltable.
juraj.balaj
 
Posts: 4
Joined: Wed Jan 13, 2021 8:29 pm

Re: Modify tool table by macro - i.e. slot #

Postby cncdrive » Tue Dec 26, 2023 4:44 pm

Open the example plugin template in Visual studio and in the plugin class start typing UC. and then the Visual studio helper will give you all the available function prototypes.
The tooltable read/write functions are:

Code: Select all
string Readtooltablecell(int toolnumber, Datatypes.Tooltablerowname column)
bool Writetooltablecell(int toolnumber, Datatypes.Tooltablerowname column, string value)
cncdrive
Site Admin
 
Posts: 4934
Joined: Tue Aug 12, 2014 11:17 pm

Next

Return to Feature Request

Who is online

Users browsing this forum: No registered users and 1 guest