EasyManuals Logo

Siemens SINUMERIK 840D Programming Manual

Siemens SINUMERIK 840D
687 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #44 background imageLoading...
Page #44 background image
Flexible NC programming
1.10 String operations
Job planning
1-30 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.10.4 Conversion to lower/upper case
Function
This functionality permits conversion of all letters of a string to standard capitalization.
Syntax
STRING_ERG = TOUPPER (STRING) Result type: STRING
STRING_ERG = TOLOWER (STRING) Result type: STRING
Semantics
All lower case letters are converted to either upper or lower case letters.
Example
Because user inputs can be initiated on the HMI, they can be given standard capitalization
(upper or lower case):
DEF STRING [29] STRG
…
IF "LEARN.CNC" == TOUPPER (STRG) GOTOF LOAD_LEARN
1.10.5 Length of the string
Function
This functionality sets the length of a string.
Syntax
INT_ERG = STRLEN (STRING) Result type: INT
Semantics
It returns a number of characters that are not the 0 character, counting from the beginning of
the string.
Example
This can be used to ascertain the end of the string, for example, in conjunction with the
single character access described below:
IF(STRLEN (MODULE_NAME) > 10) GOTOF ERROR

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals