Skip to content

Conversation

@ulikoehler
Copy link
Contributor

@ulikoehler ulikoehler commented Nov 2, 2025

The "sdo" example just lists SDOs (and doesn't work for all devices). Complimentary to #57 and to the docs from #54 but neither are required to merge.

This example reads an SDO with a known Index/Subindex using sdo_upload().

Example output:

$ RUST_LOG=debug cargo run --example read_sdo
[2025-11-02T06:46:33Z INFO  sdo] Opening EtherCAT master...
[2025-11-02T06:46:33Z DEBUG ethercat::master] Open EtherCAT Master /dev/EtherCAT0
[2025-11-02T06:46:33Z INFO  sdo] Reading SDO 0x6061/0 as int8...
SDO 0x6061/1 read int8 = 1

Verified using actual hardware (AS715N servo drive).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant