Siemens SINUMERIK 828D Programming Manual page 78

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Flexible NC programming
1.9 String operations
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 "<<".
Examples
Example 1: Concatenation of strings
Program code
DEF INT IDX=2
DEF REAL VALUE=9.654
DEF STRING[20] STRG="INDEX:2"
IF STRG=="Index:"<<IDX GOTOF NO_MSG
MSG("Index:"<<IDX<<"/value:"<<VALUE)
NO_MSG:
Example 2: Explicit type conversion with <<
Program code
DEF REAL VALUE=3.5
<<VALUE
78
Comments
; The specified type REAL variable is converted into a
STRING type.
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Comments
; Didplay:
"Index:2/value:9.654"
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents