|
Motion Master 6.0.0-alpha.50
Next-generation motion control software
|
Per-port link state and error counters decoded from a slave's ESC. More...
#include <fieldbus_driver.h>
Public Attributes | |
| bool | linkUp = false |
| Physical link detected on this port (DL Status link bit). | |
| bool | loopClosed = false |
| Loop closed on this port (no downstream slave, or port disabled). | |
| bool | communication = false |
| Stable communication established on this port (DL Status). | |
| uint8_t | invalidFrame = 0 |
| Invalid-frame counter: frames with a bad FCS/structure (0x0300+). | |
| uint8_t | rxError = 0 |
| Physical-layer RX error counter: RX_ER from the PHY (0x0301+). | |
| uint8_t | forwardedError = 0 |
| uint8_t | lostLink = 0 |
| Lost-link counter: link-down events on this port (0x0310+). | |
Per-port link state and error counters decoded from a slave's ESC.
Each EtherCAT Slave Controller has up to four physical ports; the counters are 8-bit and saturate at 255 (they do not wrap) and are cleared only by a power cycle or an explicit write — so callers interpret them as a monotonic "errors since reset" figure and watch for a rising delta rather than an absolute value. Link state is decoded from DL Status (0x0110); the counters come from the error-counter block (0x0300–0x0313).
| bool mm::comm::PortDiagnostics::communication = false |
Stable communication established on this port (DL Status).
| uint8_t mm::comm::PortDiagnostics::forwardedError = 0 |
Forwarded RX error counter: errors flagged by an upstream ESC (0x0308+). Pinpoints the segment where corruption began.
| uint8_t mm::comm::PortDiagnostics::invalidFrame = 0 |
Invalid-frame counter: frames with a bad FCS/structure (0x0300+).
| bool mm::comm::PortDiagnostics::linkUp = false |
Physical link detected on this port (DL Status link bit).
| bool mm::comm::PortDiagnostics::loopClosed = false |
Loop closed on this port (no downstream slave, or port disabled).
| uint8_t mm::comm::PortDiagnostics::lostLink = 0 |
Lost-link counter: link-down events on this port (0x0310+).
| uint8_t mm::comm::PortDiagnostics::rxError = 0 |
Physical-layer RX error counter: RX_ER from the PHY (0x0301+).