Ethercat installation from repositories - how to step by step

More
10 Aug 2023 11:04 #277528 by gueee78
hey Rod!

Thanks for updating the instructions!

one thing I stumbled across in the first post, but forgot to mention. there's a typo at
halcmd halcmd loadusr -W lcec_conf ethercat-conf.xml
you doubled halcmd, no big deal but would be easier if you'd fix it.

thanks for all your work!
 

Please Log in or Create an account to join the conversation.

More
10 Aug 2023 11:11 #277529 by rodw
That was quick! Itwas only there for 3 minutes before you found it
I changed the halcmd  typo too.

Please Log in or Create an account to join the conversation.

More
11 Aug 2023 00:10 #277581 by buzzFab

I think you need to also install libethercat-dev and maybe also libethercat
I took them out but at a guess the header files will be in the -dev package


This worked. I install both of the packages and was able to compile and finish the rest of your guide without error.

I used your ethercat-conf.xml and halcmd show pin lcec displayed
Component Pins:
Owner   Type  Dir         Value  Name
     4  u32   OUT    0x00000001  lcec.conf.master-count
     4  u32   OUT    0x00000004  lcec.conf.slave-count

This is the first time i have made it this far i don't really even know the where to go next

Please Log in or Create an account to join the conversation.

More
11 Aug 2023 00:22 #277583 by rodw
Awesome!
I got confirmation from iGh that libethercat-dev  was required and the first post has been updated accordingly. I was also able to introduce them to one of the Debian guys  who works in with Linuxcnc last night and he's agreed to sponsor them into Debian so hopefully one day their packages will end up in Debian!

From here, it would be best for you to open another thread and let us know your hardware and share your config files (ethercat xml, hal and ini).
The following user(s) said Thank You: gueee78

Please Log in or Create an account to join the conversation.

More
24 Aug 2023 09:20 #278845 by rodw
Etherlabmaster changed their repository to its final home. The first post has been updated.
Also, I have created a version of the Linuxcnc live installer that also includes the repositories.
forum.linuxcnc.org/9-installing-linuxcnc...ler-iso-for-linuxcnc
I made a note in the first post in this thread  where you should resume if you go this way. It saves quite a bit of complicated stuff..
Let me know if you have issues with this.

Please Log in or Create an account to join the conversation.

More
26 Aug 2023 06:14 #278995 by rodw
With generous support from Bjarne Van Horn, one of the Etherlabmaster team, I've modified the linuxcnc-ethercat driver so it can build a Deb file.
You can find the revised code here: github.com/rodw-au/linuxcnc-ethercat/tree/adapt_debian
I have also built a Version of the linuxcnc live installer for Debian 2.9 that includes the third part repositories
If you use my installer per the link in the first post, everything required for ethercat is able to be installed with one line in the terminal.
You just then have to complete the normal ethercat configuration steps.
The first post has been updated and a lot of the old messy configuration is now hidden in spoilers to streamline the instructions.. Good luck!
The following user(s) said Thank You: jjdege

Please Log in or Create an account to join the conversation.

More
28 Aug 2023 09:42 #279145 by jjdege
Hi Rodw
I installed the ISO you built, within 30 minutes I already had the swm-fm45 example configuration operational
Fantastic!
thank's for your job!!!

I use this fork  here for Linuxcnc-ethercat drivers, because I have an Epocat FR4000,
i couldn't find the possibility to clean lcec_conf lcec.so and recompile them for my requirement,
it has to be done manually in the traditional way which is not a problem.
I was wondering if it is not possible to add its ethercat drivers in the lcec_conf and lcec.so of your ISO

Thanks again

Please Log in or Create an account to join the conversation.

More
28 Aug 2023 12:42 #279161 by rodw
Great feedback! My ISO is not perfect.
the linuxcnc driver is also availablesudo apt install linuxcnc-ethercat 

Please Log in or Create an account to join the conversation.

More
28 Aug 2023 14:55 #279174 by Transint
Good day!
I installed Linuxcnc according to the instructions from the first post, configured the driver, connected the Diewu I/O module, configured the configuration file as in ethercat-conf-diewu, now I get an error:

Failed to create slave config: No such file or directory
LCEC: fail to read slave 0.0 configuration
lcec: rtapi_app_main: Invalid argument (-22)
./cia402.hal:15: waitpid failed /usr/bin/rtapi_app lcec
./cia402.hal:15: /usr/bin/rtapi_app exited without becoming ready
./cia402.hal:15: insmod for lcec failed, returned -1 

In what direction to look?

Please Log in or Create an account to join the conversation.

More
28 Aug 2023 15:41 #279180 by mwc
Rod, which kernel is your ISO using?

I'm tempted to have another test of this on my H3+, but it needs a 6.x Kernel (Bookworm).

Please Log in or Create an account to join the conversation.

Time to create page: 0.293 seconds
Powered by Kunena Forum