Siemens SINUMERIK 840D sl Programming Manual page 378

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

Advertisement

Kinematic chains
7.2 Index determination by means of names (NAMETOINT)
Syntax
<RetVal>=NAMETOINT(<SysVar>,<Name>[,<NoAlarm>])
Meaning
NAMETOINT
<RetVal>
<SysVar>
<Name>
<NoAlarm>
Example
Program code
DEF INT INDEX
$NP_PROT_NAME[27]="Cover"
...
INDEX=NAMETOINT("$NP_PROT_NAME","Cover"
)
References
Function Manual, Special Functions; Section K7: Kinematic chains
378
:
Determination of the system variable index
:
Function return value
Data type:
Range of
values:
Value:
:
Name of the system variable array of the STRING type
Data type:
Range of
values:
:
Character string or name for which the system variable index is to be determined.
Data type:
:
Alarm suppression (optional)
Data type:
Value:
INT
-1 ≤ x ≤ (max. number of configured components -1)
-1
The sought name has not been found or an error has
occurred.
≥ 0
System variable index
STRING
Name of all NC system variable arrays of the STRING type
STRING
BOOL
FALSE
In the event of an error (<RetVal> < 0), the program
processing is stopped and an alarm displayed.
TRUE
In the event of an error, the program processing is not
stopped and no alarm displayed.
Application: User-specific reaction corresponding to
the return value
Comment
;INDEX==27
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents