- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Ethercat installation from repositories - how to step by step
19 Oct 2023 10:35 #283289
by eduard
Replied by eduard on topic Ethercat installation from repositories - how to step by step
Success! I wrote again with etcher the same iso to the same stick and it is working now. How strange is that?
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
19 Oct 2023 20:59 - 19 Oct 2023 21:00 #283318
by eduard
Replied by eduard on topic Ethercat installation from repositories - how to step by step
I have the system up and running, the ethercat slaves listed. Not tested with LCNC nor created the xml, but huge success for today. Thanks Rod!
After the reboot of the PC I have to issue these commands again.
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
sudo chmod 666 /dev/EtherCAT0
how can I set permanent the chmod and initialize the system to run after reboot the ethercat service?
After the reboot of the PC I have to issue these commands again.
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
sudo chmod 666 /dev/EtherCAT0
how can I set permanent the chmod and initialize the system to run after reboot the ethercat service?
Last edit: 19 Oct 2023 21:00 by eduard.
Please Log in or Create an account to join the conversation.
19 Oct 2023 21:28 #283322
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
You missed the last step to create a udev rule
Please Log in or Create an account to join the conversation.
19 Oct 2023 21:54 #283324
by eduard
Replied by eduard on topic Ethercat installation from repositories - how to step by step
Thanks!
And how can I automate the ethercat service?
And how can I automate the ethercat service?
Please Log in or Create an account to join the conversation.
19 Oct 2023 22:24 #283328
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Ethercat should start automatically on reboot once you have the udev rule and all other steps complete.
Please Log in or Create an account to join the conversation.
20 Oct 2023 19:23 #283381
by eduard
Replied by eduard on topic Ethercat installation from repositories - how to step by step
Everyting works now. Succes.
I began to blink some leds on digital outputs, but no success yet. I have EK1100, EL1008, EL2008 and have not yet found a description of its use that is easy to follow for me.
Now I have this exact output as you mention in first page:
Component Pins:
Owner Type Dir Value Name
4 u32 OUT 0x00000001 lcec.conf.master-count
4 u32 OUT 0x00000004 lcec.conf.slave-count
but no pins show up.
I began to blink some leds on digital outputs, but no success yet. I have EK1100, EL1008, EL2008 and have not yet found a description of its use that is easy to follow for me.
Now I have this exact output as you mention in first page:
Component Pins:
Owner Type Dir Value Name
4 u32 OUT 0x00000001 lcec.conf.master-count
4 u32 OUT 0x00000004 lcec.conf.slave-count
but no pins show up.
Please Log in or Create an account to join the conversation.
20 Oct 2023 19:38 #283383
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Please Log in or Create an account to join the conversation.
- Sockheaven
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 10
14 Nov 2023 17:50 - 14 Nov 2023 17:54 #285399
by Sockheaven
Replied by Sockheaven on topic Ethercat installation from repositories - how to step by step
I am upgrading from LinuxCNC 2.8.0 with EtherCAT using one of the previous ISOs and was directed to this guide. I successfully installed using the standard ISO and the guide at the beginning of this thread.
I copied the previous config files (.HAL/.INI/ethercat-conf.xml) but am finding that only 1 of my axes is initializing to behaving correctly based on the control word i issue from Linux CNC.
I took outputs from both the working old PC and the output of the new PC that can only enable one axis
I was hoping someone might help me decipher the differences. I have attached outputs of:
$ sudo dmesg -T | grep EtherCAT
$ sudo ethercat slaves
Devices/Axis order in config is: Y - X - Z
Note: Working: All 3 axes can be enabled/disabled
Failing: Y and Z are not responding over ethercat, but X enables/disables and is reading/sending position commands correctly
One thing that stands out about the new config is it appears to be trying to start EoE (EtherNet over EtherCAT), and I am just trying to use CoE (Can over EtherCAT)
I'm not sure that's root cause though, but thought it worth mentioning. Let me know if any additional info would help determining what is going on.
I copied the previous config files (.HAL/.INI/ethercat-conf.xml) but am finding that only 1 of my axes is initializing to behaving correctly based on the control word i issue from Linux CNC.
I took outputs from both the working old PC and the output of the new PC that can only enable one axis
I was hoping someone might help me decipher the differences. I have attached outputs of:
$ sudo dmesg -T | grep EtherCAT
$ sudo ethercat slaves
Devices/Axis order in config is: Y - X - Z
Note: Working: All 3 axes can be enabled/disabled
Failing: Y and Z are not responding over ethercat, but X enables/disables and is reading/sending position commands correctly
One thing that stands out about the new config is it appears to be trying to start EoE (EtherNet over EtherCAT), and I am just trying to use CoE (Can over EtherCAT)
I'm not sure that's root cause though, but thought it worth mentioning. Let me know if any additional info would help determining what is going on.
Attachments:
Last edit: 14 Nov 2023 17:54 by Sockheaven.
Please Log in or Create an account to join the conversation.
14 Nov 2023 18:47 #285405
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Not sure if this will help but,
in my bookworm sticky under installing linucnc, grab the ISO from my google drive which I updated last night.
I had some help from the ethercat guys with this ISO. The big change is that they have met with Sasha Itnner who wrote the hal driver and it was agreed that they would host the hal driver on their repository for him and my new installer which should get to the linuxcnc downloads page. That means my new ISO is probably the gold standard for ethercat and linuxcnc. (They refer to this sticky in one of their examples for how to install it all)
CoE drives implies they are CIA402 devices. A quick look at your xml seemed to confirm this. Refer to the first post again and install dominic's component for these devices. Perhaps try using it.
Its pretty well documented on his repo and my example on my rep referred to there. This could require some changes to your XML
in my bookworm sticky under installing linucnc, grab the ISO from my google drive which I updated last night.
I had some help from the ethercat guys with this ISO. The big change is that they have met with Sasha Itnner who wrote the hal driver and it was agreed that they would host the hal driver on their repository for him and my new installer which should get to the linuxcnc downloads page. That means my new ISO is probably the gold standard for ethercat and linuxcnc. (They refer to this sticky in one of their examples for how to install it all)
CoE drives implies they are CIA402 devices. A quick look at your xml seemed to confirm this. Refer to the first post again and install dominic's component for these devices. Perhaps try using it.
Its pretty well documented on his repo and my example on my rep referred to there. This could require some changes to your XML
Please Log in or Create an account to join the conversation.
- Sockheaven
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 10
14 Nov 2023 20:59 #285423
by Sockheaven
Replied by Sockheaven on topic Ethercat installation from repositories - how to step by step
All the links I found with your iso tell me its in your trash:
drive.google.com/file/d/1s2Te9JtXxb8yB9r.../view?usp=drive_link
Let me know where the most up to date link is and I"ll give it a shot!
Thanks!
Best Regards,
Paul
drive.google.com/file/d/1s2Te9JtXxb8yB9r.../view?usp=drive_link
Let me know where the most up to date link is and I"ll give it a shot!
Thanks!
Best Regards,
Paul
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Time to create page: 0.187 seconds