|
<< Click to Display Table of Contents >>
Configuration File for Struct Data Types |
To edit Struct data types, that is, the N2 or B2 parameters equal to 20, click Structure types on the APR03 tab. The declaration of these structures must follow the next syntax.
STRUCT TYPE
{
Element1,
Element2,
Element3,
[...]
}
The fields that must be defined in this file are described on the next table.
Fields of a configuration file
Field |
Description |
|---|---|
TYPE |
Defines the number of a Struct data type. In I/O Tags, this value is used in the N4 or B4 parameters |
Element |
Elements must be separated by commas and between braces, after defining a TYPE field, and define the structure of each record on a table. Members must be defined by integer values equivalent to data types interpreted by this Driver. String data types, that is, with the N2 parameter equal to 19, are not accepted as members of structures |
Reading Struct data types must be performed by a Block Tag in which each Block Element corresponds to a member of that structure.
In addition to declaring structures, this file can also contain comments, preceded by the // characters, according to the pattern used by the C language. The next code contains an example of a structure.
// Struct accessed by Tags with the N/B parameters
// equal to 20 and N4/B4 equal to 1 (one, type)
STRUCT 1
{
1, // WORDBCDLH
0, // WORDBCDHL
3, // WORDHEXAHL
}