FSoE: Liste aller Kommunikationsfehlercodes
Diese Tabelle listet alle FSoE-Kommunikationsfehlercodes auf, die im ETG.5100-Standard definiert sind:
| Fehlercode | Beschreibung | Fehlercode |
|---|---|---|
| 0 | Lokaler Reset oder Bestätigung eines RESET-Befehls | - |
| 1 | Unerwarteter Befehl | INVALID_CMD |
| 2 | Unbekannter Befehl | UNKNOWN_CMD |
| 3 | Ungültige Verbindungs-ID | INVALID_CONNID |
| 4 | CRC-Fehler | INVALID_CRC |
| 5 | Watchdog abgelaufen | WD_EXPIRED |
| 6 | Ungültige FSoE-Slave-Adresse | INVALID_ADDRESS |
| 7 | Ungültige Sicherheitsdaten | INVALID_DATA |
| 8 | Ungültige Kommunikationsparameterlänge | INVALID_COMMPARALEN |
| 9 | Ungültige Kommunikationsparameterdaten | INVALID_COMPARA |
| 10 | Ungültige Anwendungsparameterlänge | INVALID_USERPARALEN |
| 11 | Ungültige Anwendungsparameterdaten | INVALID_USERPARA |
| 0x80-0xFF | Ungültige SafePara (gerätespezifisch) | - |
Quelle: ETG.5100 S (D) V1.2.0, Tabelle 28: FSoE communication error codes, kostenlos auf Anfrage erhältlich von der EtherCAT Technology Group (ETG)
C++ enum class-Repräsentation
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-Repräsentation
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