EasyManuals Logo

Siemens SINUMERIK 810D Commissioning Manual

Siemens SINUMERIK 810D
626 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 #104 background imageLoading...
Page #104 background image
Expanding the Operator Interface (BE1) 08/2005
3 Syntax
© Siemens AG, 2005. All rights reserved
BE1/3-98 SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
3.6.11 Handling strings
Strings
Strings can be processed as part of the configuration. These allow text to be
displayed dynamically or different texts to be chained for the purpose of code
generation.
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.
Strings can be deleted simply by assigning a blank string.
Strings can be attached after the equal 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.
Examples
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"
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) << "th error"
;Result: "This is the 11th error"
Treatment of numerical values:
VAR13.VAL = "Error " << VAR14.VAL << ": " << $T80001 <<
$T80002 ;Result:
;"Error 15: This is an alarm text"
IF VAR15 == "Error" ;Strings in IF instruction
VAR16 = 18.1234 ;Result: VAR16 equals 18.1234,
;if VAR15 equals "Error"
ENDIF

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals