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

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
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.
Tool Compensation (W1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Status = GETTENV(_NAME, _TDDL)
INT
0:
Function OK
-1:
No memory location reserved for tool environments
(MD18116 $MN_MM_NUM_TOOL_ENV = 0),
i.e., the "Tool environments" functionality if 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 the following:
- 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 is stored in the data set specified by "_NAME".
Detailed Description
2.10 Working with tool environments
2-143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents