Siemens SINUMERIK 828D Programming Manual page 571

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

Advertisement

6. String functions
Result
ISNUMBER
BOOL
ISVAR
BOOL
NUMBER
REAL
TOUPPER
STRING
TOLOWER
STRING
STRLEN
INT
INDEX
INT
RINDEX
INT
MINDEX
INT
SUBSTR
STRING
Fundamentals
Programming Manual, 07/2010, 6FC5398-1BP40-0BA0
1st parameter
2nd parameter
to
3rd parameter
STRING
STRING
STRING
STRING
STRING
STRING
STRING
CHAR
STRING
CHAR
STRING
STRING
STRING
INT
16.7 Predefined functions
Explanation
Check whether the input string can be converted to
a number.
Result is TRUE if conversion is possible.
Check whether the transfer parameter contains a
variable known in the NC. (Machine data, setting
data, system variable, general variables such as
GUDs)
Result is TRUE if all the following checks produce
positive results according to the (STRING) transfer
parameter:
– The identifier exists
– It is a 1- or 2-dimensional array
– An array index is allowed.
For axial variables, the axis names are accepted as
an index but not checked.
Convert the input string into a number.
Convert all alphabetic characters in the input string
to upper case.
Convert all alphabetic characters in the input string
to lower case.
The result is the length of the input string up to the
end of the string (0).
Find the character (2nd parameter) in the input
string (1st parameter). The reply gives the place, at
which the character was first found. The search is
from left to right.
The 1st character in the string has the index 0.
Find the character (2nd parameter) in the input
string (1st parameter). The reply gives the place, at
which the character was first found. The search is
from right to left.
The 1st character in the string has the index 0.
Find one of the characters specified in the 2nd
parameter in the input string (1st parameter). The
place where one of the characters was first found is
output. The search is from left to right. The first
character in the string has the index 0.
Returns the substring of the input string (1st para-
meter), defined by the start character (2nd para-
meter) and number of characters (3rd parameter).
Example:
SUBSTR("ACKNOWLEDGEMENT:10 to 99", 10, 2)
returns substring "10".
Tables
571

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents