bnjmnp / pysoem

Cython wrapper for the Simple Open EtherCAT Master Library
MIT License
95 stars 36 forks source link

Ethercat Ring Topology #124

Closed Michaelicious closed 1 month ago

Michaelicious commented 7 months ago

Is it possible to use 2 network interfaces for the same ecat network to create ring topology ?

bnjmnp commented 7 months ago

Recently I added a second optional parameter called ifname_red to the Master.open() function, this is used for the redundancy port, maybe this is exactly what you want.

Under the hood pyseom just uses the SOEM's ecx_init_redundant() if a second port is given. Whereas if only one port is given it uses standard ecx_init() function.

I just realized that the context managers open() function does not allow the seconde port, I'll add this soon.