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