OpenEtherCATsociety / SOEM

Simple Open Source EtherCAT Master
Other
1.31k stars 670 forks source link

Do you support open mode? I want to connect both master and slave EtherCAT network segments to a standard Ethernet switch #682

Open lhf739181583 opened 1 year ago

ArthurKetels commented 1 year ago

Although EtherCAT supports its packets to be encapsulated in UDP packets, the routing options are very limited because slaves are completely passive. Unless you have a very specific use case I strongly recommend against using Ethernet switches in an EtherCAT topology.

1GuoHaiTong1 commented 6 months ago

hello,my project: master and slave are connected through the switch, slaveinfo shows that no slaves found. How can I modify it to make it work?

image
1GuoHaiTong1 commented 6 months ago

master system:Ubuntu22.04 slave : UR20-FBC-EC

ArthurKetels commented 6 months ago

Unless you have special managed switches that can route master traffic to the slave and back based on port connection number this will not work. SOEM uses the MAC numbers in the ethernet header to detect redundancy configurations. They are not real MAC numbers. And EtherCAT does not use IP numbers, so there is no way for normal automatic routing to work.

Remove the switches.

1GuoHaiTong1 commented 6 months ago

OK, thanks for your reply and explanation

ArthurKetels commented 5 months ago

If you want an optic fiber connection between master and slave there are media converters for EtherCAT available. For example Beckhoff CU1521-0010

1GuoHaiTong1 commented 5 months ago

Thanks again for your advice