Read T, D And Dl Number (Gettenv) - Siemens SINUMERIK 840D sl Function Manual

Tools
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

W1: Tool offset
2.16 Working with tool environments
DELTOOLENV():
2.16.3

Read T, D and DL number (GETTENV)

The GETTENV function is used to read the T, D and DL numbers stored in a tool environment.
Syntax
<Status> = GETTENV(<name>, <TDDL>)
Meaning
GETTENV(...):
<Status>:
Parameters
1
2
GETTENV(,<TDDL>),
GETTENV("",<TDDL>):
210
DELTOOLENV() deletes data sets describing tool environments without spec‐
ifying a name
Predefined function to read T, D and DL numbers in a data set to describe a tool
environment
Alone in the
block:
Function return value. Negative values indicate error states.
Data type:
Value:
Name of the data set from which the T, D and DL numbers are to be read
<name>:
Data type:
The field of this result parameter contains the T, D and DL numbers of the tool,
<TDDL>:
whose tool environment is saved in the specified data set:
● <TDDL> [0]: T number
● <TDDL> [1]: D number
● <TDDL> [2]: DL number
Data type:
Yes
INT
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.
STRING
INT[3]
When calling function GETTENV, it is permissible to omit the first pa‐
rameter – or to transfer the null string as first parameter. In these two
special cases, in <TDDL>, the T, D and DL numbers of theactive tool are
returned.
Function Manual, 06/2019, A5E47435126B AA
Tools

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents