Siemens SINUMERIK 840DE sl Commissioning Manual page 1092

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Variables
5.15 Use of strings
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."
● Deleting a variable:
VAR10.VAL = ""
● Setting a variable with a text variable:
VAR11.VAL = VAR1.VAL
● Data type matching:
VAR13.VAL ="This is the " << (VAR14 - VAR8) << ". error"
106
;Result: Blank string
;Result: "This is an"
;Result: "This is the 11th error"
;Result: "This is an error"
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents