Create MyConfig - Expert
4.6 Script language
4.6.7.6
String concatenation (Concatenate-Operator)
The string concatenation operator "<<" can be used to combine constant strings and variables
to form a resulting string.
This operator is mainly intended for the assignment of Up variables when used in functions or
procedures with string parameters.
The string concatenation operator can also be directly used in functions and procedures.
Exceptions include Prepare and Patch; in this case, the string concatenation operator cannot
be used.
Example
Up.real = 12.34
Up.text = "units"
Up.para = "Value of Up.real: " << Up.real << " " << Up.text
Log(Up.para)
4.6.8
Character string operations
4.6.8.1
StringLen
StringLen("<string>")
The StringLen() function determines the length of a <string> character string and returns
it as a decimal number.
Note
Counting characters
All characters of a character string are counted, the printable and also the non-printable.
'\r' and '\n' each count as one character and are counted.
Example
Up.Len = StringLen("Ingenuity for life") ; Up.Len = 18
290
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE