Concatenation Of Strings (<<) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

1.9.3
Concatenation of strings (<<)
Function
The function "concatenation strings" allows a string to be configured from individual
components.
The concatenation is realized using the operator "<<". This operator has STRING as the
target type for all combinations of basic types CHAR, BOOL, INT, REAL, and STRING. Any
conversion that may be required is carried out according to existing rules.
Syntax
<any_type> << <any_type>
Significance
<any_type>:
<< :
For example, such a message or a command can be configured from text lists and
parameters can be inserted (for example a block name):
MSG(STRG_TAB[LOAD_IDX]<<BAUSTEIN_NAME)
CAUTION
The intermediate results of string concatenation must not exceed the maximum string
length.
Note
The FRAME and AXIS types cannot be used together with the operator "<<".
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Variable, type CHAR, BOOL, INT, REAL or STRING
Operator to chain variables (<any_type>) to configure a character string
(type STRING).
This operator is also available alone as a so-called "unary" variant. This
can be used for explicit type converter to STRING (not for FRAME and
AXIS):
<< <any_type>
Flexible NC programming
1.9 String operations
83

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents