FSoE: List of all communication error codes

This table lists all FSoE communication error codes defined in the ETG.5100 standard:

Error CodeDescriptionError code
0Local reset or acknowledgement of a RESET command-
1Unexpected commandINVALID_CMD
2Unknown commandUNKNOWN_CMD
3Invalid connection IDINVALID_CONNID
4CRC errorINVALID_CRC
5Watchdog has expiredWD_EXPIRED
6Invalid FSoE Slave AddressINVALID_ADDRESS
7Invalid safety dataINVALID_DATA
8Invalid communication parameter lengthINVALID_COMMPARALEN
9Invalid communication parameter dataINVALID_COMPARA
10Invalid application parameter lengthINVALID_USERPARALEN
11Invalid application parameter dataINVALID_USERPARA
0x80-0xFFInvalid SafePara (device-specific)-

Source: ETG.5100 S (D) V1.2.0, Table 28: FSoE communication error codes, available for free on request from the EtherCAT Technology Group (ETG)

C++ enum class representation

FSoECommErrorCode.h
enum class FSoECommErrorCode : uint8_t {
    Reset              = 0x00,
    InvalidCmd         = 0x01,
    UnknownCmd         = 0x02,
    InvalidConnID      = 0x03,
    InvalidCRC         = 0x04,
    WdExpired          = 0x05,
    InvalidAddress     = 0x06,
    InvalidData        = 0x07,
    InvalidCommParaLen = 0x08,
    InvalidCommPara    = 0x09,
    InvalidUserParaLen = 0x0A,
    InvalidUserPara    = 0x0B,
    // 0x80–0xFF: device-specific SafePara errors
};

Python IntEnum representation

fsoe_comm_error_codes.py
from enum import IntEnum

class FSoECommErrorCode(IntEnum):
    RESET                = 0x00
    INVALID_CMD          = 0x01
    UNKNOWN_CMD          = 0x02
    INVALID_CONN_ID      = 0x03
    INVALID_CRC          = 0x04
    WD_EXPIRED           = 0x05
    INVALID_ADDRESS      = 0x06
    INVALID_DATA         = 0x07
    INVALID_COMM_PARA_LEN = 0x08
    INVALID_COMM_PARA    = 0x09
    INVALID_USER_PARA_LEN = 0x0A
    INVALID_USER_PARA    = 0x0B
    # 0x80–0xFF: device-specific SafePara errors

Check out similar posts by category: FSoE, EtherCAT, Safety