RevPi + Codesys + EtherCAT
Posted: 14 May 2021, 11:58
Hello,
We are doing some tests in the following condition:
RevPi 1 has the RevPi Gate EtherCAT Slave on the left hand side and codesys has been configured as such.
RevPi 2 acts as an EtherCAT Master on eth1 and we imported the ESI file of the RevPi Gate EtherCAT Slave; the master port eth1 si connected to the RevPi Gate EtherCAT Slave upper port.
Code has been deployed on both devices and both of them are running fine with "all green".
What we noticed is the following situation
We are doing some tests in the following condition:
- RevPi Connect + RevPi Gate EtherCAT Slave
- RevPi Connect
RevPi 1 has the RevPi Gate EtherCAT Slave on the left hand side and codesys has been configured as such.
RevPi 2 acts as an EtherCAT Master on eth1 and we imported the ESI file of the RevPi Gate EtherCAT Slave; the master port eth1 si connected to the RevPi Gate EtherCAT Slave upper port.
Code has been deployed on both devices and both of them are running fine with "all green".
What we noticed is the following situation
- RevPi 1 sets its output bits, those are NOT retrieved by RevPi 2
- RevPi 2 sets its output bits, those are retrieved by RevPi 2 in random positions (i.e. setting the very first bit, sets to true ALL the first bit of each of the 512 bytes)