Source code to compile linuxcnc2.9 to communicate with ethercat

More
21 Dec 2023 10:50 #288746 by szl
hello,
I would like to know how to communicate between source compiled linuxcnc2.9 and ethercat, what is the build process, is there a tutorial? Thanks for your help!

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

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
21 Dec 2023 11:18 - 21 Dec 2023 11:19 #288747 by rodw
Its pretty well docuented in this sticky
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
There is another sticky in the ethercat section dealing with building  the ethercat master from iGh

There are 3 seperate  core components. 
Linuxcnc
The Ethercat master
The linuxcnc ethercat driver
If you have CIA402 compatible drives (that is all I would buy) the CIA402 component is recommended as it makes it all easier.

Linuxcnc is our favourite CNC controller
Ethercat master is an open source ethercat master that finds and connects to the slaves
The hal driver connects linuxcnc to the ethercat master
It requires a custom xml file that describes the ethercat environment to linuxcnc
the cia402 component is designed to simplify connecting a drive that is compliant with the CIA402 standard whichh specifies specific regster level compatability.

I might add that it is no longer necessary to compile anything to use ethercat. Everything (except the cia402 component) is contained in repositories which are already connected in the 2.91 ISO on the downloads page.

You just need to type 
sudo apt update
sudo apt install ethercat-master libethercat-dev  linuxcnc-ethercat
And follow the instructions on the sticky.
Last edit: 21 Dec 2023 11:19 by rodw.

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

More
21 Dec 2023 12:07 #288749 by szl
Thank you very much for your answer, I modified the source code of linuxcnc version 2.9 and am trying to build linuxcnc from source.
If I install the 2.91 ISO, will it conflict with my linuxcnc compiled from source? Do I need to uninstall the former?

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

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
22 Dec 2023 05:46 #288802 by rodw
You can do a run in place install by following this
linuxcnc.org/docs/stable/html/code/building-linuxcnc.html
Running the rip-environment script allows you to use multiple versions.
Running linucnc without the script should still give the installed version

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

Time to create page: 0.053 seconds
Powered by Kunena Forum