Detailed Description
2.10 Working with tool environments
Tool Compensation (W1)
2-142 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2.10.4 How many environments and which ones are saved?
$P_TOOLENVN
This system variable returns the number of available data sets for describing tool
environments. (Data sets defined by TOOLENV and not yet deleted).
The range of values is 0 to MD18116 $MN_MM_NUM_TOOL_ENV.
This system variable can be accessed even if no tool environments are possible
(MD18116 = 0). In this case, the return value is 0.
Syntax:
_N = $P_TOOLENVN
Data type:
_N INT
Number of defined TOOLENV
$P_TOOLENV
This system variable returns the number of the nth data set for describing a tool
environment.
The assignment of numbers to data sets is not fixed, but can be changed as a result of
deleting or creating data sets. The data sets are numbered internally. The range is from
1 to $P_TOOLENVN.
Syntax:
_NAME = $P_TOOLENV[i]
Data type:
_NAME STRING
Name of the data set with number i
i INT
Number of the data set.
If an index, which does not refer to a defined data set, is passed, alarm 17020 (illegal array
index1) is output.