FSoE: جدول أوامر PDU للسلامة

يحدد أمر PDU للسلامة في FSoE معنى وحدات PDU.

تُعرَّف الأوامر التالية في معيار FSoE:

الأمرالوصف
0x36ProcessData
0x2AReset
0x4ESession
0x64Connection
0x52Parameter
0x08FailSafeData

المصدر: ETG.5100 S (D) V1.2.0، القسم 8.1.2: Safety PDU commands، متاح عند الطلب من مجموعة تقنية EtherCAT (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