Here a general question:
Why are tools set-up according to the G-Code ??
It would make much more sense to adjust the T## in the program according to the tools that are in the machine !!
We have done exactly that. It saves a lot of time and works great.
www.tool-wall.com/software.htm