|
YARP CiA-402 EtherCAT Device 0.6.0
YARP device plugin for EtherCAT CiA-402 drives
|
Classes | |
| class | CheckEncoderCalibration |
| Encoder calibration checker: compare live encoder readings against a reference TOML file. More... | |
| class | EthercatManager |
| Minimal EtherCAT master built on SOEM for CiA-402 devices. More... | |
| struct | FieldInfo |
| Metadata describing a field inside the raw TxPDO image. More... | |
| struct | RxPDO |
| Process Data Object written from master to slave (RxPDO). More... | |
| class | StateMachine |
| class | StoreHome37 |
| Calibration utility: home all CiA-402 drives on the bus and persist the result to flash. More... | |
| class | TxView |
| Lightweight view over a slave's TxPDO image. More... | |
Enumerations | |
| enum class | State : uint8_t { NotReadyToSwitchOn = 0 , SwitchOnDisabled = 1 , ReadyToSwitchOn = 2 , SwitchedOn = 3 , OperationEnabled = 4 , QuickStopActive = 5 , FaultReaction = 6 , Fault = 7 , Unknown = 8 } |
| enum class | TxField : uint8_t { Statusword , OpModeDisplay , Position6064 , Velocity606C , Torque6077 , PositionError6065 , Timestamp20F0 , STO_6621_01 , SBC_6621_02 , Enc1Pos2111_02 , Enc1Vel2111_03 , Enc2Pos2113_02 , Enc2Vel2113_03 , TemperatureDrive } |
| Identifiers for fields read from a slave (TxPDO → master). More... | |
Functions | |
| static constexpr State | sw_to_state (uint16_t sw) |
| static constexpr std::string_view | state_to_string (State s) |
| std::tm | getLocalTime (const std::time_t &t) |
Variables | |
Encoder SDO indices | |
| static constexpr uint16_t | IDX_ENC1_CONFIG = 0x2110 |
| :03 = resolution (counts/rev) | |
| static constexpr uint16_t | IDX_ENC1_DATA = 0x2111 |
| :01 = raw position, :02 = adjusted position | |
| static constexpr uint16_t | IDX_ENC2_CONFIG = 0x2112 |
| :03 = resolution (counts/rev) | |
| static constexpr uint16_t | IDX_ENC2_DATA = 0x2113 |
| :01 = raw position, :02 = adjusted position | |
|
strong |
| Enumerator | |
|---|---|
| NotReadyToSwitchOn | |
| SwitchOnDisabled | |
| ReadyToSwitchOn | |
| SwitchedOn | |
| OperationEnabled | |
| QuickStopActive | |
| FaultReaction | |
| Fault | |
| Unknown | |
Definition at line 35 of file CiA402StateMachine.h.
|
strong |
Identifiers for fields read from a slave (TxPDO → master).
Each value corresponds to a standard or vendor-specific object/subindex that can be mapped into the TxPDO image and accessed via TxView.
Definition at line 53 of file EthercatManager.h.
|
inline |
Definition at line 12 of file TimeUtils.h.
|
inlinestaticconstexpr |
Definition at line 78 of file CiA402StateMachine.h.
|
inlinestaticconstexpr |
Convert a raw status-word to the canonical CiA-402 state.
Only the relevant bits (0,1,2,3,4,5,6) are masked, exactly as the spec does. Patterns are taken from IEC 61800-7-204, table 13.
Definition at line 53 of file CiA402StateMachine.h.
|
staticconstexpr |
:03 = resolution (counts/rev)
Definition at line 14 of file EncoderSdoIndices.h.
|
staticconstexpr |
:01 = raw position, :02 = adjusted position
Definition at line 15 of file EncoderSdoIndices.h.
|
staticconstexpr |
:03 = resolution (counts/rev)
Definition at line 16 of file EncoderSdoIndices.h.
|
staticconstexpr |
:01 = raw position, :02 = adjusted position
Definition at line 17 of file EncoderSdoIndices.h.