Programming commands
6.3 Functions
Example
REG[0]=STRINSERT("Hello!", " world", 5)
STRREMOVE function: Remove string
Syntax:
Description:
Parameters:
Example
REG[0]=STRREMOVE("Hello world!", 5, 6)
TRIMLEFT function: Remove blanks from the left of the string
Syntax:
Description:
Parameters:
Example
REG[0]=TRIMLEFT("
TRIMRIGHT function: Remove blanks from the right of the string
Syntax:
Description:
Parameters:
Example
REG[0]=TRIMRIGHT("Hello!
186
STRREMOVE
(string1, remove positon , count)
STRREMOVE removes a specific number of characters at a specific position
within a character string.
string1
Character string from which characters are to be re‐
moved
remove position
Position at which characters are to be removed from the
character string
count
Number of characters to be removed
(string1)
TRIMLEFT
TRIMLEFT removes blanks on the left from a character string.
string1
Character string from which blanks are to be removed
from the left of the character string
Hello!")
(string1)
TRIMRIGHT
TRIMLEFT removes blanks on the right from a character string.
string1
Character string from which blanks are to be removed
from the right of the character string
")
; Result = "Hello world!")
; Result = "Hello!")
; Result = "Hello!")
; Result = "Hello!")
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1