Command | Explanation |
Fields | Declares the number of members in the structure |
Field | Sets a member. |
The Field command syntax is as follows:
Fieldx=CW,DES,TYPE,[COUNT],[EQUAL]
Parameter | Explanation |
x | A counter starting from 1 and ending at Fields. |
CW | Column width as percentage. The sum of all column widths should not exceed 95. For example, if you have 10 fields and you need to allocate the same width, the number that you should enter is 9.5. |
DES | Description of the member. Alphanumeric. |
TYPE | Type of the field. See below. |
Count | Optional. Default value is 1 byte. |
Equal | Value that should be equal to
the value of the member. Ignored if Validate=No. Equal could be entered as ASCII of Hex. If Hex, then append the 0x prefix. |
Below are the currently supported types:
Type | Length |
Boolean, Byte, INT8, Char | 1 |
Word, INT, INT16, CHARU, Hex | 2 |
Octal, Decimal | 3 |
DWord, Long, INT32, Float, Single | 4 |
QWord, Double, INT64, Binary | 8 |
XLong, LongDouble | 10 |
INT128 | 16 |
Examples: [Section1] // Required. Fields=6 // 6 members to follow /* First field, 5% column width, the caption will be "Stamp", type is Char and it should be equal to :. */ Field1=5,Stamp,char,,: Field2=5,Length,hex // note that count=1 and equal is undefined Field3=5,Address,hex,2 // 2 bytes construct the member Field4=5,Type,hex Field5=8,Checksum,hex Field6=5,LF,char,2,0x0D0A // equal is in hex mode, 0D0A stands for CR and LF.
Back.