- Posts: 118
- Thank you received: 18
Ethercat HAL driver
- sqmathlete
- Offline
- Premium Member
-
Before I get started I just wanted to say how impressed I am with the development of the LinuxCNC Ethercat HAL Driver. Well done!
This has inspired me to retrofit a Thermwood C50 Gantry Router with an Ethercat system that includes Beckhoff I/O modules and Delta ASDA AC Servo amps.
I did a fresh install of LinuxCNC 2.7.3 and then followed Sascha's instructions on pg 16 of this thread.
The output of which looks like :I also have set up a simple Debian repos (currently without keys) which is intended to be used with the current LinuxCNC Debian Wheezy based dist. This way installation should be very easy:
create a file "/etc/apt/sources.list.d/linuxcnc-mds.list":
deb repo.modusoft.de/linuxcnc/wheezy ./
# sudo apt-get update
# sudo apt-get install linuxcnc-ethercat
The etherlabmaster should be installed automaticaly.
Currently you will get a warning about missing key.
edit /etc/default/ethercat to match your setup
# sudo update-ethercat-config
reboot
# ethercat slaves
So far so good.
and
I think this was solved (pg22) by boyzo
and cgcI saw Sascha post "fixed debien dependencies for linuxcnc 2.7 userspace version" in its git repository.
How can I install this fix on installed ethercat driver on 2.7 linuxcnc?
Install linuxcnc-dev beforeInstall linuxcnc-dev before
Download the source with : git clone ....
change to the directory: linuxcnc-ethercat
delete old installation: make clean
compile the source with: sudo make install
Download the source with : git clone ....
change to the directory: linuxcnc-ethercat
delete old installation: make clean
compile the source with: sudo make install
Not sure how to proceed since I am using the main distribution instead of the -dev files. Any guidance would greatly be appreciated.
Also, I have attached my test configuration files.
Kind Regards
Daniel
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 18
Thanks again
Daniel
- billiehuijbregts
- Offline
- New Member
-
- Posts: 8
- Thank you received: 1
Got the same problem as Daniel descibes above. Trying to build a large 3D printer using Rexroth MKD servos and Danfoss fc302 drives, and use the ethercat protocol to control the printer.
When trying to load my config in Linuxcnc I get the "could not insert module ..../lcec.ko: invalid parameters "
My output of dmesg | grep lcec:
Thanks in advance!
Billie
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 18
I got this working by putting the Sittner ethercat driver update files in a folder that has root (i.e. read/write) privileges
such as
/opt/your-folder
then in a terminal
1) cd /opt/yourfolder (with update files)
2) sudo make
3) sudo make install
Note: if step 3 fails, the next time you try to run the update use sudo make clean to get rid of any unwanted stuff from the previous installation attempt.
Good Luck
Daniel
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 18
Then you should be able to run sudo ethercat master, sudo ethercat slaves -v and see everything working.
- billiehuijbregts
- Offline
- New Member
-
- Posts: 8
- Thank you received: 1
Thanks for you reply! Sorry to bother you again but I'm not a big expert in Linux.
Can't seem to get it to make the ethercat driver in /opt.
I made a folder ethercat in /opt and used git clone to get the driver files in my ethercat folder.
When I then use the sudo make command I get the following error: