FSoE: List of all communication error codes
This table lists all FSoE communication error codes defined in the ETG.5100 standard:
| Error Code | Description | Error code |
|---|---|---|
| 0 | Local reset or acknowledgement of a RESET command | - |
| 1 | Unexpected command | INVALID_CMD |
| 2 | Unknown command | UNKNOWN_CMD |
| 3 | Invalid connection ID | INVALID_CONNID |
| 4 | CRC error | INVALID_CRC |
| 5 | Watchdog has expired | WD_EXPIRED |
| 6 | Invalid FSoE Slave Address | INVALID_ADDRESS |
| 7 | Invalid safety data | INVALID_DATA |
| 8 | Invalid communication parameter length | INVALID_COMMPARALEN |
| 9 | Invalid communication parameter data | INVALID_COMPARA |
| 10 | Invalid application parameter length | INVALID_USERPARALEN |
| 11 | Invalid application parameter data | INVALID_USERPARA |
| 0x80-0xFF | Invalid 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 errorsIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow