Page 1 of 2
Modify tool table by macro - i.e. slot #
Posted:
Tue Nov 30, 2021 12:44 am
by DanStory
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.
Re: Modify tool table by macro - i.e. slot #
Posted:
Sat Jan 15, 2022 10:54 pm
by DanStory
Is this on the roadmap? The work arounds are easily open to human error and/or data loss.
Re: Modify tool table by macro - i.e. slot #
Posted:
Sat Jan 15, 2022 11:26 pm
by cncdrive
Yes, this was implemented yesterday, and is to be final tested.
Re: Modify tool table by macro - i.e. slot #
Posted:
Mon Jan 17, 2022 1:44 pm
by DanStory
Thanks for the update, I can't wait for its release
Re: Modify tool table by macro - i.e. slot #
Posted:
Wed Feb 16, 2022 6:29 pm
by lp_felix
DanStory wrote:Thanks for the update, I can't wait for its release
+1
Re: Modify tool table by macro - i.e. slot #
Posted:
Tue Apr 19, 2022 6:21 pm
by lp_felix
DanStory wrote:Thanks for the update, I can't wait for its release
+1
Re: Modify tool table by macro - i.e. slot #
Posted:
Sat Nov 25, 2023 9:50 pm
by juraj.balaj
Is it implemented in 1.2116v?
Re: Modify tool table by macro - i.e. slot #
Posted:
Mon Nov 27, 2023 10:07 pm
by cncdrive
Yes.
Re: Modify tool table by macro - i.e. slot #
Posted:
Mon Dec 25, 2023 10:26 pm
by juraj.balaj
Thank you, but I haven't found an API to manage the detailed tooltable.
Re: Modify tool table by macro - i.e. slot #
Posted:
Tue Dec 26, 2023 4:44 pm
by cncdrive
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)