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을 반환합니다.