FSoE:安全 PDU 命令表

FSoE 安全 PDU 命令决定了 PDU 的含义。

FSoE 标准中定义了以下命令:

命令描述
0x36ProcessData
0x2AReset
0x4ESession
0x64Connection
0x52Parameter
0x08FailSafeData

来源: ETG.5100 S (D) V1.2.0,第 8.1.2: Safety PDU commands 节,可向 EtherCAT Technology Group (ETG) 申请获取

C++ 表示

SafetyPDUCommand.h
enum class SafetyPDUCommand : uint8_t {
    ProcessData = 0x36,
    Reset = 0x2A,
    Session = 0x4E,
    Connection = 0x64,
    Parameter = 0x52,
    FailSafeData = 0x08
};

Python 表示

safety_pdu_command.py
from enum import IntEnum

class SafetyPDUCommand(IntEnum):
    ProcessData = 0x36
    Reset = 0x2A
    Session = 0x4E
    Connection = 0x64
    Parameter = 0x52
    FailSafeData = 0x08

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