I have a Mitsubishi M700 control on my VMC. I am trying to automate my Tool setting but I cannot find the Variable number for the 'tool in the spindle'. Any help would be appreciated.

At this point I used a line after my M6 using #4320 to write the tool number to another variable but 4320 gets rewritten to nul after the cycle ends. If anyone were to do a tool change without updating my temp variable the tool offset may get written to the wrong offset. I tried to find/edit the M6 Macro to add the temp variable line in there but was unsuccessful.