Translation of Data Types
The Anybus data types are translated to CIP-standard and vice versa as follows:
Anybus Data Type | CIP Data Type | Comments |
---|---|---|
BOOL | BOOL | Each ADI element of this type occupies one byte. |
ENUM | USINT | |
SINT8 | SINT | |
UINT8 | USINT | |
SINT16 | INT | Each ADI element of this type occupies two bytes. |
UINT16 | UINT | |
SINT32 | DINT | Each ADI element of this type occupies four bytes. |
UINT32 | UDINT | |
FLOAT | REAL | |
CHAR | SHORT_STRING | SHORT_STRING consists of a single-byte length field (which in this case represents the number of ADI elements) followed by the actual character data (in this case the actual ADI elements). This means that a 10-character string occupies 11 bytes. |
SINT64 | LINT | Each ADI element of this type occupies eight bytes. |
UINT64 | ULINT | |
BITS8 | BYTE | Each ADI element of this type occupies one byte. |
BITS16 | WORD | Each ADI element of this type occupies two bytes. |
BITS32 | DWORD | Each ADI element of this type occupies four bytes. |
OCTET | USINT | |
BITS1-7 | BYTE | Bit fields of size 1 - 7 |
PAD0-8 | BYTE | Bit fields of size 0 - 8 used for padding |
PAD9-16 | BYTE | Bit fields of size 9 - 16 used for padding |
BOOL1 | BOOL |