Parameters: string Character string or variable with the character string to be
processed
length Number of characters that are to be read out
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HALLO/WELT"
VAR02=LEFT(VAR01,4) ; Result = "WORLD"
END_LOAD
MIDS function: String from mid-string
Syntax: MIDS
(string, start [, length])
Description: MIDS returns a string containing the specified number of characters starting at
the specified position in the string.
Parameters: string Character string or variable with the character string to be
processed
start Start from where characters are to be read in the string
length Number of characters that are to be read out
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HALLO/WELT"
VAR02=LEFT(VAR01,4,4) ; Result = "LO/W"
END_LOAD
REPLACE Function: Replacing characters
Syntax: REPLACE
( string, FindString, ReplaceString [, start [, count ] ] )
Description: REPLACE replaces a character/string in a string with another character/string.
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
184 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1