W1: Tool offset
18.12 Working with tool environments
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1585
18.12.7
Changing tool components
SETTCOR function
The SETTCOR function is used to change tool components taking into account all general conditions that can be
involved when evaluating the individual components.
The SETTCOR function is a predefined subprogram. It must, therefore, be programmed in a separate block.
Note
Regarding the terminology: If in the following, in conjunction with the tool length, tool
components are involved, then the components considered from a vectorial perspective are
meant, which make up the complete tool length, e.g. geometry or wear. Such a component
comprises three individual values (L1, L2, L3), which are called coordinate values in the
following.
The tool component "geometry" therefore comprises three coordinate values $TC_DP3 to
$TC_DP5.
Syntax:
Status = SETTCOR(_CORVAL, _COMP, _CORCOMP, _CORMODE, _GEOAX, _STAT,
_T, _D, _DL)
With the exception of the first two parameters (_CORVAL and _COMP) all of the
parameters can also be omitted.
Value/parameter:
Status
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 _STAT does not exist.
-3:
Invalid string in parameter _COMP.
Causes of this error can be invalid characters or characters programmed twice.
-4:
Invalid T number.
-5:
Invalid D number.
-6:
Invalid DL number.
-7:
Attempt to access a non-existent memory module.
-8:
Attempt to access a non-existent option (programmable tool orientation, tool
management).
-9:
Illegal numerical value for the _CORCOMP parameter.
-10: Illegal numerical value for the _CORMODE parameter.
-11: The contents of the _COMP and _CORRCOMP parameters are contradictory.
-12: The contents of the _COMP and _CORRMODE parameters are contradictory.