- Posts: 43
- Thank you received: 0
Ethercat HAL driver
narogon wrote: I've just make a pull request to sasha to add the posibility of using additional attributes in xml files.
Editing the el7041 component file, it wouldn't be so difficult define some sdo commands using the parameters defined on the xml file.
I've just included the parameters to the component, check my fork github.com/narogon/linuxcnc-ethercat
Just have to use
I've just had a quick look to beckhoff documentation and I think you want to configure 0x8010 0x01 and 0x8010 0x03 parameters. Tell me if the parameters you want are others
Please Log in to join the conversation.
narogon wrote: Editing the el7041 component file, it wouldn't be so difficult define some sdo commands using the parameters defined on the xml file.
I've just included the parameters to the component, check my fork github.com/narogon/linuxcnc-ethercat
Just have to useCode:<slave idx="0" type="EL7041-1000" nomVoltage="numberyouwant" maxCurrent="numberyouwant">.....
Thank you narogon.
Since these two are crucial parameters that can cause also immediate hardware damage without even moving the motor, it might not be a bad idea to have them in the .xml file. It would be nice however to have the liberty of accessing the entire CoE register later on; how do you see this been done? as described in the link provided by cgc in Thinkpad example, sending commands or maybe a file with all of the addresses inside?
Macheinekit_Thinkpad
Thanks again to both, you have been really helpful. Also thanks sirop, I'll give the files a go in the next days.
Have you tried your fork practically?
If you wish I can try it, got all of the hardware needed..I can set the parameters and check them later with TwinCAT before moving/powering the motor to be on the safe side...
Please Log in to join the conversation.
You can check if it works using a terminal and executing:
The same way could be used to read the entire CoE by SDO. Those parameters can't be modified in many slaves while they are in OP state, so i don't see the need to write them in a different way.
Please Log in to join the conversation.
"configure.mk:1: ***missing separator. Stop." and an empty config.mk file.
Please Log in to join the conversation.
Markux wrote: I dled your fork and I tried doing make and install, both resulted in:.
"configure.mk:1: ***missing separator. Stop." and an empty config.mk file.
have you tried?
make clean
make install
I've not made any changes on configure.mk config ...
Only lcec_config.c, lcec_config.h, lcec.h and lcec_main.c
And lcec_el7041_1000.c
Please Log in to join the conversation.
Attachment not found
the directory where the master from sittner and your fork are, is not the same.
Am I going to have problems to keep on using whatever I had before? seeing he removed a bunch of stuff

sry my linux machine is offline, this is why i posted the screenshot, i know it is more convenient posting the code, but...it wouldve taken a while
Please Log in to join the conversation.
Please Log in to join the conversation.
narogon wrote: it only removes the compiled files from the directory you are. Let me check again the fork
Try to download it again. It has lot of mistakes
I've just checked it.
Sorry for that.
Please Log in to join the conversation.
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 0
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
Please Log in to join the conversation.
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 0
Thanks again
Daniel
Please Log in to join the conversation.
