Ethercat protocol not responding
Please Log in or Create an account to join the conversation.
After a lot of research and experimentation with mostly broken example code, I managed to interface with a Yaskawa EtherCAT servo drive from a standalone C program using EtherLab.org's "EtherCAT Master" library. This is the same library that the LinuxCNC EtherCAT driver uses, and I was able to apply what I learned to modify that "linuxcnc-ethercat" driver to have separate read/write domains, and therefore work with Yaskawa EtherCAT.I just opened an issue on Sascha Ittner's linuxcnc-ethercat GitHub repository:
supporting separate LRD/LWR commands instead of an LRW command · Issue #121 · sittner/linuxcnc-ethercat
To get it to work in the short term I disabled compiling the non-generic drivers, as well as disabled some FSoE (Functional Safety over EtherCAT) related code because it was unclear which process data domain it needed to interact with. Once I update the per-device drivers to use the new dual-domain API and fix the FSoE support, I can submit a pull request to get my changes mainlined.
I'll keep you guys posted...
Please Log in or Create an account to join the conversation.
Probably the best repo to work with is mine. That way it will get to a hosted .deb in a repository
I just opened an issue on Sascha Ittner's linuxcnc-ethercat GitHub repository:
supporting separate LRD/LWR commands instead of an LRW command · Issue #121 · sittner/linuxcnc-ethercat
After a lot of research and experimentation with mostly broken example code, I managed to interface with a Yaskawa EtherCAT servo drive from a standalone C program using EtherLab.org's "EtherCAT Master" library. This is the same library that the LinuxCNC EtherCAT driver uses, and I was able to apply what I learned to modify that "linuxcnc-ethercat" driver to have separate read/write domains, and therefore work with Yaskawa EtherCAT.
To get it to work in the short term I disabled compiling the non-generic drivers, as well as disabled some FSoE (Functional Safety over EtherCAT) related code because it was unclear which process data domain it needed to interact with. Once I update the per-device drivers to use the new dual-domain API and fix the FSoE support, I can submit a pull request to get my changes mainlined.
I'll keep you guys posted...
github.com/rodw-au/linuxcnc-ethercat
As long as it does not break any existing stuff it will be fine.
Please Log in or Create an account to join the conversation.
Probably the best repo to work with is mine. That way it will get to a hosted .deb in a repository
github.com/rodw-au/linuxcnc-ethercat
As long as it does not break any existing stuff it will be fine.
What kind of EtherCAT hardware do you have to test with?
I only have a couple servo drives, and a Beckhoff EK1818 . Unfortunately it seems the Beckhoff EK1818 isn't supported directly by linuxcnc-ethercat, so I will have to use it as a generic device (though I would be willing to add support!)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- sharp_reaper
- Offline
- Senior Member
- Posts: 64
- Thank you received: 7
How did you manage to a working configuration with Yaskawa Ethercat?
I have the same problem, can you guide me?
Please Log in or Create an account to join the conversation.
I did manage to get it working, but I had to disable some FSoE (Function Safety over EtherCAT) related code that I didn't fully understand, and I also had to disable compiling most of the drivers (the non "generic" one) because I needed to make some API changes that would require making small changes to all of the code. So in other words, I did a "hack" that works perfectly for my use case, but in general is a step backwards for the codebase. I need to take the time to finish the changes, and I don't have time at the moment... Perhaps I should post my progress as a fork on GitHub though...Hi @fdarling,
How did you manage to a working configuration with Yaskawa Ethercat?
I have the same problem, can you guide me?
Please Log in or Create an account to join the conversation.
- sharp_reaper
- Offline
- Senior Member
- Posts: 64
- Thank you received: 7
Thank you!
Please Log in or Create an account to join the conversation.
- curious_tux
- Offline
- New Member
- Posts: 2
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- curious_tux
- Offline
- New Member
- Posts: 2
- Thank you received: 1
And yet I am getting the damn A12. I am almost in stage of giving up..
Please Log in or Create an account to join the conversation.