Obtain data for the current tool, use SUBFUNCT in conjunction with the %LOAD statement.
For details of the %LOAD statement see %LOAD section.
For example:
%MACRO=15=..=TOOLCHANGE=8,47,48,
%LOAD=SUBFUNCT
...
...
The data available for the current tool selected is now available using the standard system variables.