EasyManuals Logo

Siemens SINUMERIK 808D ADVANCED Commissioning Manual

Siemens SINUMERIK 808D ADVANCED
508 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 #319 background imageLoading...
Page #319 background image
Commissioning Manual
01/2017
319
Tag identifier
Meaning
TYPE_CAST
The tag converts the data type of a local variable.
Syntax:
<type_cast name="variable name" type=" new type" />
Attributes:
name
Variable name
type
The new data type is assigned to the variable.
convert
The new data type is assigned to the variable. The variable value is also converted to
the new data type.
TYPEDEF
A new identifier for a data type can be defined with the “typedef” tag. This has the benefit
for the structure definitions that the data type can be defined once and then used as a
data type in a LET instruction.
The identifier and type are expected as attributes.
The parser supports only the specification of structure definitions.
In the type definition, a variable is declared with the “element” tag. The attributes of the
tag correspond to the attributes of the let instruction.
<typedef name="<identifier>" type="struct">
<element name="<name>" type="<variable type>" />
</typedef>
After definition, the identifier can be used as a data type for the LET instruction.
<let name="<variable name>" type="<identifier>"></let>
Example
:
<typedef name="my_struct" type="struct">
<element name="id" type="int" />
<element name="name" type="string" />
<element name="phone" type="string" />
</typedef>
<let name="info" type="my_struct"></let>
<op>
info.id = 1;
info.name = _T"my name";
info.phone= _T"0034 45634";
</op>

Table of Contents

Other manuals for Siemens SINUMERIK 808D ADVANCED

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 808D ADVANCED Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 808D ADVANCED
CategoryControl Unit
LanguageEnglish

Related product manuals