128 lines
5.7 KiB
Markdown
128 lines
5.7 KiB
Markdown
# Performance/Stability Tweaks
|
|
## EtherCrab Config
|
|
We set ethercrab to default settings for everything except for RetryBehaviour, so that one unlikely failure doesnt destroy the EtherCAT network.
|
|
|
|
```rust
|
|
let maindevice = MainDevice::new(
|
|
pdu,
|
|
Timeouts {
|
|
// Default 5000ms
|
|
state_transition: Duration::from_millis(5000),
|
|
// Default 30_000us
|
|
pdu: Duration::from_micros(30_000),
|
|