Data Types Overview
The MDP information is subdivided into modules, which contain different elements. The elements may have different data types.
Data type | Description |
---|---|
BOOLEAN | 8-bit Boolean value. 1=true, 0= false |
SIGNED8 | 8 bit signed integer |
SIGNED16 | 16 bit signed integer |
SIGNED32 | 32 bit signed integer |
UNSIGNED8 | 8 bit unsigned integer |
UNSIGNED16 | 16 bit unsigned integer |
UNSIGNED32 | 32 bit unsigned integer |
UNSIGNED64 | 64 bit unsigned integer |
REAL32 | 32-bit floating point value |
VISIBLE STRING | ASCII string, variable length, not null-terminated |
Arrays can be initiated based on these basic data types. Two examples are explained in the following:
- ARRAY [0..5] OF UNSIGNED8: The data type is an array of length 5 of type UNSIGNED8. The total size is therefore 5 bytes.
- ARRAY [ ] OF UNSIGNED32: The data type is an array of any length of type UNSIGNED32.