Siemens Sinumerik 840D sl Programming Manual page 504

Fundamentals
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Tables
17.7 Predefined functions
Arithmetic
Identifier
Return value
MAXVAL
REAL
BOUND
REAL: Check
status
Note:
The arithmetic functions can also be programmed in synchronized actions. These arithmetic functions are calculated and
evaluated in the main run. The synchronized action parameter $AC_PARAM[<n>] can also be used for calculations and as
buffer.
INT: functions
Identifier
Return value
ISNUMBER
BOOL
NUMBER
REAL
TOUPPER
STRING
TOLOWER
STRING
STRLEN
INT
INDEX
INT
RINDEX
INT
MINDEX
INT
SUBSTR
STRING
SPRINT
STRING
504
Parameter
1.
2.
REAL
REAL
REAL: Minimum
REAL: Maximum REAL:
Parameter
1.
2.
STRING
STRING
STRING
STRING
STRING
STRING
CHAR
STRING
CHAR
STRING
STRING
STRING
INT
STRING
3.
Checking varia‐
ble
Explanation
3.
Checks whether the input string can be con‐
verted to a number.
Converts the input string into a number.
Converts all alphabetic characters in the input
string to upper case.
Converts 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).
Searches for the character (2nd parameter) in
the input string (1st parameter).
The reply gives the place, at which the charac‐
ter was first found. The search is from left to
right. The 1st character in the string has the
index 0.
Searches for the character (2nd parameter) in
the input string (1st parameter).
The reply gives the place, at which the charac‐
ter was first found. The search is from right to
left. The 1st character in the string has the in‐
dex 0.
Searches for 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 1st character in the string has the
index 0.
INT
Returns the substring of the input string (1st
parameter), defined by the start character (2nd
parameter) and number of characters (3rd pa‐
rameter).
Returns the input string (1st parameter).
Programming Manual, 01/2015, 6FC5398-1BP40-5BA2
Explanation
Determines the larger value of
two variables
Checks whether the variable
value lies within the defined
min/max value range
Fundamentals

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents