VAR01="HALLO/WELT"
VAR02=INST(1,"/",VAR01) ; Result = 6
END_LOAD
LEFT Function: String from left
Syntax: LEFT
(string, length)
Description: LEFT returns a string containing the specified number of characters starting from
the left-hand side of a string.
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,5) ; Result = "HELLO"
END_LOAD
RIGHT function: String from right
Syntax: RIGHT
(string, length)
Description: RIGHT returns a string containing the specified number of characters starting
from the right-hand side of a string.
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
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3 153