EasyManuals Logo

Siemens SINUMERIK 810D Programming Manual

Siemens SINUMERIK 810D
687 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #45 background imageLoading...
Page #45 background image
Flexible NC programming
1.10 String operations
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1-31
1.10.6 Look for character/string in the string
Function
This functionality searches for single characters or a string within a string. The function
results specify where the character/string is positioned in the string that has been searched.
Programming
Syntax
INT_ERG = INDEX (STRING,CHAR) Result type: INT
INT_ERG = RINDEX (STRING,CHAR) Result type: INT
INT_ERG = MINDEX (STRING,STRING) Result type: INT
INT_ERG = MATCH (STRING,STRING) Result type: INT
Semantics
Search functions: They return the position in the string (first parameter) where the search
has been successful. If the character/string cannot be found, the value "–1" is returned. In
this case, the first character is in position 0.
Parameters
INDEX searches for the character specified as
the second parameter in the string
specified as the second parameter (from
the beginning).
RINDEX searches for the character specified as
the second parameter in the string
specified as the second parameter (from
the end).
MINDEX same as the INDEX function except that a
list of characters is specified (as a
string) and the index of the first
character found is returned.
MATCH searches for a string in a string.
This can be used to break up a string by certain criteria, for example, at blanks or path
separators ("/").

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals