EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK 840DE SL

Siemens SINUMERIK 840DE SL Commissioning Manual

Siemens SINUMERIK 840DE SL
1734 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 #1092 background imageLoading...
Page #1092 background image
5.15 Use of strings
Strings
Strings can be used as part of the configuration. These allow text to be displayed dynamically
or different texts to be chained for the purpose of code generation.
Rules
The following rules must be observed with regard to string variables:
Logic operations are processed from left to right.
Nested expressions are solved from the inside outwards.
No distinction is made between uppercase and lowercase type.
String variables are generally displayed left justified.
Strings can be deleted simply by assigning a blank string.
Strings can be appended after the equality sign using the operator "<<". Quotation marks (")
in the string are represented by two successive quotation mark symbols. Strings can be
checked for equality in IF instructions.
Example
Default settings for the following examples:
VAR1.VAL = "This is an"
VAR8.VAL = 4
VAR14.VAL = 15
VAR2.VAL = "Error"
$85001 = "This is an"
$85002 = "Alarm text"
Editing strings:
Chaining of strings:
VAR12.VAL = VAR1 << " Error." ;Result: "This is an error"
Deleting a variable:
VAR10.VAL = "" ;Result: Blank string
Setting a variable with a text variable:
VAR11.VAL = VAR1.VAL ;Result: "This is an"
Data type matching:
VAR13.VAL ="This is the " << (VAR14 - VAR8) << ". error"
;Result: "This is the 11th error"
Variables
5.15 Use of strings
SINUMERIK Integrate Run MyScreens (BE2)
106 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Questions and Answers:

Siemens SINUMERIK 840DE SL Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 840DE SL
CategoryControl Systems
LanguageEnglish

Related product manuals