bnjmnp / pysoem

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

Pysoes? Simple EtherCAT Slave Stack wrapper #115

Open MikelAyani opened 11 months ago

MikelAyani commented 11 months ago

Hi, Sorry if this is not the proper place to ask, but do you think it would be feasible to create a similar wrapper for the SOES (Simple Open EtherCAT Slave Stack) library? I am looking for a way to create soft EtherCAT Slaves for testing purposes. I also wonder if you did the wrapper for the SOEM totally by hand or used a tool to make part of it. Thanks in advance!

bnjmnp commented 11 months ago

Hi, sorry for the late response, it is holyday time. I remember there was a similar question in issue #31, maybe my answer there is already satisfying enough? Apart from that, creating a basic SOES C-based firmware for the Infineon XMC4300 Relax EtherCAT® Kit is not that difficult. I did this myself based on an example I found inside the SOES project.

MikelAyani commented 10 months ago

No problem, and thanks for the answer! Very interesting links. Our idea is to create a basic emulated Ethercat slave. That said, there should not be special hardware involved, just a normal PC, doing soft-emulation. We just want the slave to interact with the telegrams. I understand that it may be a problem if real-time is required, but maybe could work for no-real-time applications? Another concern is if it would be possible to emulate several slaves in the same PC? Regarding the wrapper, I have some experience working with Cython. I have checked your code here and I can understand it quite well. Did you develop it completely manually or you used a tool to generate it? Thanks again!