Maximum number of data sets for tool environments
Machine data MD18116 $MN_MM_NUM_TOOL_ENV is used to define the maximum number
of data sets that can be saved to describe the tool environments. The data are in the TOA area.
They are kept even when the control system is switched off.
Data cannot be backed up. This means that this data cannot be transferred between the
different control systems.
3.13.13.2 Delete tool environment (DELTOOLENV)
The DELTOOLENV function is used to delete the data sets that are used to describe tool
environments. Deletion means that the set of data stored under a particular name can no longer
be accessed (an access attempt triggers an alarm).
Note
Data sets can only be deleted using the DELTOOLENV function, by an INITIAL.INI download
or by a cold start (NC power up with default machine data). There are no additional automatic
deletion operations.
Syntax
<Status> = DELTOOLENV(<name>)
<Status> = DELTOOLENV()
Meaning
DELTOOLENV(...): Predefined function to delete a tool environment
Alone in the
block:
Yes
<Status>: Function return value. Negative values indicate error states.
Data type: INT
Value: 0 Function OK
-1 No memory reserved for tool environments:
MD18116 $MN_MM_NUM_TOOL_ENV = 0
This means that the "tool environments" functionality is not
available.
-2 A tool environment with the specified name does not exist.
Parameters
1 <name>: Name of data set to be deleted
Data type: STRING
DELTOOLENV(): DELTOOLENV() deletes data sets describing tool environments without spec‐
ifying a name
Work preparation
3.13 Tool offsets
NC programming
810 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0