Siemens SINUMERIK 828D Commissioning Manual page 870

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Generating user dialogs
1.9 Predefined functions
Function name
String find
118
Description
The function searches the transferred string for the first match with the
substring.
If the substring is found, the function returns the index to the first char‐
acter (starting with zero) or, if not, -1.
Parameter:
string - string variable
findstring - string to be found
startindex – start index (optional)
Syntax:
<function name="string.find" return="<int val>">
str1, find string
</function>
Example:
<let name="index">0</let>
<let name="str1" type="string">A brown bear hunts a
brown dog. </let>
<function name="string.find" return="index"> str1,
_T"brown"
</function>
Result:
Index = 2
or
<function name="string.find" return="index"> str1,
_T"brown", 1
</function>
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Easy XML

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents