DarraEtherCAT
EtherCATマスタのコアクラスです。EtherCATネットワーク全体の初期化、状態管理、スレーブ制御、およびPDO通信を管理します。
クラスの構造
DarraEtherCAT // master instance
│
├── Config → MasterConfig // communication configuration
├── Diagnostics → MasterDiagnosticsInfo // master diagnostics
├── MasterOD → MasterObjectDictionary // ETG.1510 master object dictionary
│
├── Slaves[n] → Slave // slave list
│ │
│ ├── PDO → SlavePdo // PDO data read/write
│ ├── Diagnostics → SlaveDiagnostics // diagnostic information
│ │ └── DC → SlaveDCDiagnostics // DC synchronization diagnostics
│ ├── Startup → StartupParameterList // startup parameters
│ │
│ ├── CoE → CoEInstance? // CANopen over EtherCAT
│ │ ├── CiA402 → CiA402Instance? // servo drive protocol
│ │ └── CiA401 → CiA401Instance? // generic I/O protocol
│ ├── SoE → SoEInstance? // Servo over EtherCAT
│ ├── FoE → FoEInstance? // File over EtherCAT
│ ├── EoE → EoEInstance? // Ethernet over EtherCAT
│ ├── AoE → AoEInstance? // ADS over EtherCAT
│ ├── VoE → VoEInstance? // Vendor over EtherCAT
│ ├── FSoE → FSoEInstance? // functional safety protocol
│ └── MDP → MdpInstance? // modular device
│
└── Events → MasterEvents // event collection
├── ProcessDataCyclicSync // PDO サイクルコールバック(同期、FSoE などのリアルタイム制御用)
├── StateChanged // master state change
├── SlaveStateChanged // slave state change → routed to slave.Events automatically
├── EmergencyEventDetailed // emergency event → routed to slave.Events automatically
├── SlaveOffline / SlaveOnline // ホットプラグ → routed to slave.Events automatically
├── PDOFrameLoss // PDO frame loss
├── SdoError // SDO read/write failure
├── MailboxError // mailbox timeout / protocol error / channel closed
├── DCSyncLost // DC synchronization lost → routed to slave.Events automatically
└── RedundancyModeChanged // redundancy mode change
プロトコルインスタンス(CoE、SoEなど)は、スレーブが実際にサポートしている内容に基づいて作成されます。スレーブがサポートしていないプロトコルの場合は、nullが返されます。