Detailed Description
2.10 Working with tool environments
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 value range is from 0 to machine data:
MD18116 $MN_MM_NUM_TOOL_ENV (number of tool environments in TO area).
This system variable can be accessed even if no tool environments are possible (MD18116
= 0). In this case, the return value is 0.
Syntax:
Data type:
_N
$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:
Data type:
_NAME
i
170
_N = $P_TOOLENVN
INT
Number of defined TOOLENV
_NAME = $P_TOOLENV[i]
STRING
Name of the data set with number i
INT
Number of the data set.
If an index is specified, which does not point to a defined data set, the following alarm is
output:
Alarm "17020 (inadmissible array-index1)"
Basic logic functions: Tool Offset (W1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0