Siemens SINUMERIK 840DE Programming Manual page 468

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Tables
12.4 List of predefined subprograms
6. String functions
Result
ISNUMBER
BOOL
ISVAR
BOOL
NUMBER
REAL
TOUPPER
STRING
TOLOWER
STRING
STRLEN
INT
INDEX
INT
RINDEX
INT
MINDEX
INT
SUBSTR
STRING
12-62
1st parameter
2nd parameter
to
3rd parameter
STRING
STRING
STRING
STRING
STRING
STRING
STRING
CHAR
STRING
CHAR
STRING
STRING
STRING
INT
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
parameter), defined by the start character (2nd
parameter) and number of characters (3rd
parameter).
Example:
SUBSTR("Hello world",1.5) returns "ello"
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents