Read T, D, Dl From A Tool Environment - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

2.10.5

Read T, D, DL from a tool environment

GETTENV function
The GETTENV function is used to read the T, D and DL numbers stored in a tool
environment.
The GETTENV function is a predefined subprogram. It must, therefore, be programmed in a
separate block.
Syntax:
Value/parameter:
Status
_NAME
_TDDL[3]
It is possible to omit the first parameter in the GETTENV function call (e.g., GETTENV(,
_TDDL)) or to pass a null string as the first parameter (e.g., GETTENV("", _TDDL)). In both
of these two special cases, the T, D and DL numbers of the active tool are returned in
_TDDL.
Basic logic functions: Tool Offset (W1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Status = GETTENV(_NAME, _TDDL)
INT
0:
Function OK
-1:
No memory reserved for tool environments:
MD18116 $MN_MM_NUM_TOOL_ENV = 0 (number of tool environments in TO
area).
i.e. the "tool environments" functionality is not available.
-2:
A tool environment with the name specified in _NAME does not exist.
STRING
Name of the tool environment, from which the T, D and DL numbers can be read
INT
This integer array contains:
- in "_TDDL[0]" the T number of the tool,
- in "_TDDL[1]" the D number of the tool,
- in "_TDDL[2]" the DL number of the tool,
whose tool environment in the data set is stored with the name "_NAME".
Detailed Description
2.10 Working with tool environments
171

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents