Siemens SINUMERIK 828D Commissioning Manual page 788

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

Advertisement

Generating user dialogs
1.6 XML identifier
Tag identifier
TYPEDEF
36
Meaning
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>
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Easy XML

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents