EtherCAT | General EtherCAT datagram The "Datagram Header" contains information for the EtherCAT command type, a numerical identifier used by the master for identifying duplicates or lost datagrams, and an address specification. This is followed by a length specification indicating the length of the subsequent data within the datagram, two reserved bits, one bit to prevent circulating frames, another reserved bit, one bit to indicate whether another EtherCAT datagram follows, and finally an EtherCAT event request register. Position addressing Position addressing should only be used during start-up of the EtherCAT system to scan the fieldbus.
Later, position addressing should only be used to detect newly added slaves. The datagram contains the position address of the addressed slave device as a negative value. Each slave increments this address. The slave that reads this address as zero is addressed and will execute the corresponding command as soon as it receives it. I/O 48 Version: 2.3.0 Field Data type Value/Description Type 4 bits Protocol type. EtherCAT slave controllers (ESCs) only support EtherCAT commands (type = 0x1). Field Data type Value/Description Cmd BYTE EtherCAT command type Idx BYTE The index is a numerical identifier used by the master to identify duplicates or lost datagrams.
The EtherCAT slaves should not change the index. Address BYTE[4] Address: auto-increment, configured station address or logical address Len 11 bits Length of the data following within this datagram R 3 bits Reserved, 0 C 1 bit Circulating frame: 0: Frame does not circulate 1: Frame has circulated once M 1 bit Multiple EtherCAT datagrams 0: Last EtherCAT datagram 1: At least one further EtherCAT datagram follows IRQ WORD EtherCAT event request register of all slave devices combined with a logical OR Data BYTE[n] Data to be read or written WKC WORD Working Counter