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 conversion using Byte Pack, Byte Unpack, or S-function blocks.

EtherCAT Data TypeData Type Size (bits)Converted Simulink Data Type
bit1uint8
bit88uint8
bitarr8 (bit array)uint8
bitarr1616 (bit array)uint16
bitarr3232 (bit array)uint32
BOOL1Boolean
int88int8
int1616int16
int3232int32
int6464int64
uint88uint8
uint1616uint16
uint3232uint32
uint6464uint64
float32real32_T
double64real_T