W1: Tool offset
18.12 Working with tool environments
Basic Functions
1578
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
18.12.4
How many environments and which ones are saved?
$P_TOOLENVN
This system variable returns the number of available data sets for describing tool environments. (Data sets
defined by
TOOLENV
and not yet deleted.)
The value range is from 0 to machine data:
MD18116 $MN_MM_NUM_TOOL_ENV (number of tool environments in TO area).
This system variable can be accessed even if no tool environments are possible (MD18116 = 0). In this case, the
return value is 0.
$P_TOOLENV
This system variable returns the number of the nth data set for describing a tool environment.
The assignment of numbers to data sets is not fixed, but can be changed as a result of deleting or creating data
sets. The data sets are numbered internally. The range is from 1 to $P_TOOLENVN.
18.12.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.
Syntax:
_N = $P_TOOLENVN
Data type:
_N
INT
Number of defined
TOOLENV
Syntax:
_NAME = $P_TOOLENV[i]
Data type:
_NAME
STRING
Name of the data set with number i
i
INT
Number of the data set.
If an index is specified, which does not point to a defined data set, the following alarm is
output:
Alarm "17020 (inadmissible array-index1)"
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...