OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
578 stars 249 forks source link

slave stack code #72

Closed KhloodAmin closed 4 years ago

KhloodAmin commented 4 years ago

I am currently trying to implement a code to allow ethercat communication between a SOEM running on linux and XMC4800 , i don't have the slave stack code tool , Is SOES do the same functionality or i must have the tool to generate the needed files ? as i understand there are 3 layers of stack (Hal / PDI - Generic EtherCAT stack and the application ) , which pare of them is the SOES ? Thanks

AAGandomi commented 4 years ago

Hi, I'm not a project's contributor but I have previously worked with SOES and I believe I might help to answer your questions.

  1. "Is SOES do the same functionality or i must have the tool to generate the needed files ?"

For the sake of clarity: the tool you mentioned is a tool given free of charge to ETG members. This product allows to customize the ET9300 code and generate the scaffolding for some of the most common slave applications. As far as I know, SOES does have a similar tool in the form of an Eclipse plugin/feature, developed and licensed by rt-labs. There might be other alternatives out there, of which I'm not aware.

  1. "as i understand there are 3 layers of stack (Hal / PDI - Generic EtherCAT stack and the application ) , which pare of them is the SOES ?"

EtherCAT slave applications are typically structured into 3 layers and the code in this repository covers all of them to some extent. The project offers a few HAL implementations, the basic features of a "Generic EtherCAT stack" and some slave application's examples to use as a reference. The codebase is quite simple and I warmly suggest you to give a good look at the code/docs, especially if you want to get a better understanding of its capabilities and ensure that it meets your requirements/expectations.

KhloodAmin commented 4 years ago

Hi , thank you for your help , i couldn't get the ETG membership as they don't offer it for individuals so i have to find another way to write slave stack . So if i have SOES i need to write the other 2 layers , hal and application ?

AAGandomi commented 4 years ago

It really depends on what are your system requirements. I think the XMC4 HAL in the project should suffice for a basic slave application (I'm quite sure XMC4800 is part of this family). The application layer has to be implemented regardless of the stack: that's where you are supposed to define your slave's control functions/tasks. Best of luck.

nakarlsson commented 4 years ago

What platform are you using?

Here is a sample for DAVE : http://download.rt-labs.com/ethercat/sdk/Infineon/dave_xmc48_soes_sample.zip

KhloodAmin commented 4 years ago

It really depends on what are your system requirements. I think the XMC4 HAL in the project should suffice for a basic slave application (I'm quite sure XMC4800 is part of this family). The application layer has to be implemented regardless of the stack: that's where you are supposed to define your slave's control functions/tasks. Best of luck.

Thank you

KhloodAmin commented 4 years ago

I use Dave and i have XMC4800 , the thing i want to get the ADC values not the LED/Button , as i understand i just have to do the mapping to the ADC register values , any recommendations where i can start ?

nakarlsson commented 4 years ago

We have a tool you can evaluate for 30days; it can help you develop a ADC based slave instead of the sample LED ones.

Check this tutorial: https://rt-labs.se/content/uploads/EtherCAT_SDK_DAVE.pdf

nakarlsson commented 4 years ago

@KhloodAmin , Can I close this issue?

Do0Nnie commented 4 years ago

We have a tool you can evaluate for 30days; it can help you develop a ADC based slave instead of the sample LED ones.

Check this tutorial: https://rt-labs.se/content/uploads/EtherCAT_SDK_DAVE.pdf

Link is dead, any update is appreciated

hefloryd commented 4 years ago

We have a tool you can evaluate for 30days; it can help you develop a ADC based slave instead of the sample LED ones. Check this tutorial: https://rt-labs.se/content/uploads/EtherCAT_SDK_DAVE.pdf

Link is dead, any update is appreciated

The link should now work again.