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!")
FORMAT function: Insert values or string with formatting identifier
Syntax: FORMAT
(Text with formatting identifier [, Value1] ... [, Value28] )
Description: Through the use of formatting identifiers, the FORMAT function enables up to
28 values or strings to be inserted at specified positions in a specific text.
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens
156 Programming Manual, 10/2015, 6FC5397-3DP40-5BA3