Flexible NC programming
1.9 String operations
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
79
1.9.4 Conversion to lower/upper case letters (TOLOWER, TOUPPER)
Function
The "conversion to lower/upper case letters" function allows all of the letters of a string to be
converted into a standard representation.
Syntax
<STRING_ERG>=TOUPPER("<string>")
<STRING_ERG>=TOLOWER("<string>")
Significance
TOUPPER: Using the TOUPPER command, all of the letters in a character string
are converted into upper case letters.
TOLOWER: Using the TOLOWER command, all of the letters in a character string
are converted into lower case letters.
Character string that is to be converted
<string>:
Type: STRING
Variable for the result of the conversion
<STRING_ERG>:
Type: STRING
Example
Because user inputs can be initiated on the operator interface, they can be given standard
capitalization (upper or lower case):
Program code
DEF STRING [29] STRG
...
IF "LEARN.CNC"==TOUPPER(STRG) GOTOF LOAD_LEARN