Conversion To Lower/Upper Case Letters (Tolower, Toupper) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

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:
TOLOWER:
<string>:
<STRING_ERG>:
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
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Using the TOUPPER command, all of the letters in a character string
are converted into upper case letters.
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
Type:
STRING
Variable for the result of the conversion
Type:
STRING
Flexible NC programming
1.9 String operations
85

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents