Main Content
EtherCAT Data Types
The Simulink® Real-Time™ EtherCAT® blocks directly support the following EtherCAT data types. The software maps other EtherCAT data types to a byte array. The byte array requires explicit data type conversion by using Byte Pack, Byte Unpack, or S-function blocks.
EtherCAT Data Type | Data Type Size (bits) | Converted Simulink Data Type |
---|---|---|
bit | 1 | uint8 |
bit8 | 8 | uint8 |
bitarr | 8 (bit array) | uint8 |
bitarr16 | 16 (bit array) | uint16 |
bitarr32 | 32 (bit array) | uint32 |
BOOL | 1 | Boolean |
int8 | 8 | int8 |
int16 | 16 | int16 |
int32 | 32 | int32 |
int64 | 64 | int64 |
uint8 | 8 | uint8 |
uint16 | 16 | uint16 |
uint32 | 32 | uint32 |