I am working on etherCAT communication and have just started using CODESYS. I would like to know if it is possible to create a ethercat master using CODESYS on the PC and configure a raspberry PI as a slave device and setup a communication system between them. If yes, please guide me on how it can be realized.
Regards,
Aaron.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are manufacturers specific Ethernet/EtherCAT adaptors, as for example the EK1100 from Beckhoff, which and at least with me worked fine. However you should be aware that since Raspberry PI has just 1 Ehternet port, you need an additional Ethernet port in order to have your PI-PLC connected with the LAN, and an USB/ETH adaptor did the job for me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Depending on the task configuration it won't work this way. I mean, the project I worked with, the time slice was 2ms for the fastest task, and the Wifi latency can easily reach and surpass this time. In other hand, if you are running a lightweight task for a bare interlock application, you can configure the task time slice for a mild value.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I am working on etherCAT communication and have just started using CODESYS. I would like to know if it is possible to create a ethercat master using CODESYS on the PC and configure a raspberry PI as a slave device and setup a communication system between them. If yes, please guide me on how it can be realized.
Regards,
Aaron.
Hi Aron,
without additional hardware it is not possble to have an EtherCAT Slave on Raspberry PI.
Regards
Edwin
Last edit: eschwellinger 2021-10-28
There are manufacturers specific Ethernet/EtherCAT adaptors, as for example the EK1100 from Beckhoff, which and at least with me worked fine. However you should be aware that since Raspberry PI has just 1 Ehternet port, you need an additional Ethernet port in order to have your PI-PLC connected with the LAN, and an USB/ETH adaptor did the job for me.
Hello,
Can't we use the Ethernet port on the Pi for the EtherCAT and the Wifi to communication with Codesys ?
Actually the connection between PC and Raspberry PI functions perfectly fine through WiFi.
Depending on the task configuration it won't work this way. I mean, the project I worked with, the time slice was 2ms for the fastest task, and the Wifi latency can easily reach and surpass this time. In other hand, if you are running a lightweight task for a bare interlock application, you can configure the task time slice for a mild value.