EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK 828D

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 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 #75 background imageLoading...
Page #75 background image
Flexible NC programming
1.9 String operations
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
75
1.9.1 Type conversion to STRING (AXSTRING)
Function
Using the function "type conversion to STRING" variables of different types can be used as a
component of a message (MSG).
When using the << operator this is realized implicitly for data types INT, REAL, CHAR and
BOOL (see "
Concatenation of strings (<<) (Page 77)").
An INT value is converted to normal readable format. REAL values convert with up to
10 decimal places.
Type AXIS variables can be converted to STRING using the
AXSTRING command.
Syntax
<STRING_ERG> = << <any_type>
<STRING_ERG> = AXSTRING(<axis identifier>)
Significance
Variable for the result of the type conversion <STRING_ERG>:
Type: STRING
<any_type>: Variable types INT, REAL, CHAR, STRING and BOOL
AXSTRING: The AXSTRING command supplies the specified axis identifier
as string.
Variable for axis identifier
<axis identifier>:
Type: AXIS
Note
FRAME variables cannot be converted.
Examples
Example 1:
MSG("Position:"<<$AA_IM[X])
Example 2: AXSTRING
Program code Comments
DEF STRING[32] STRING_ERG
STRING_ERG=AXSTRING(X) ; STRING_ERG == "X"

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 828D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 828D
CategoryControl Systems
LanguageEnglish

Related product manuals