Hi,
when you code the T command e.g. T1 then the variable (GetSelectedTool) is set to this value .
You can read this variable in a VB script.
To see what i mean you can create a simple macro ( M code) e.g. M999
a = GetSelectedTool()
SetVar(1,a)
Go to MDI page
Now go to Operator menu then open G code variable monitor
then type something like T5 M999 and watch the G code variable monitor.
You should then see the value of the T command in the G code variable monitor.
You can work with that value preparing the next tool change.
The tool is only changed when you code M6
Will you have fix tool position or random ?
Alex