- Posts: 153
- Thank you received: 26
Ethercat HAL driver
- Nico2017
- Offline
- Premium Member
-
Less
More
6 years 9 months ago #154118
by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hello manojpatil
for your information, my system was not going into OP as there was an error on the xml config file of my ethercat.
Nicolas
for your information, my system was not going into OP as there was an error on the xml config file of my ethercat.
Nicolas
Please Log in or Create an account to join the conversation.
- Nico2017
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 26
6 years 9 months ago - 6 years 9 months ago #154125
by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi all,
I was wondering if there was a slave number limitation on the EtherCAT configuration for linuxcnc. I am trying to run a new device, the config xml file works fine when I plug the device alone, but my system crashes when I put it after 15 other slave on my EtherCAT bus.
Is such a limitation exists, is it overall, or is it per master? My computer has two Ethernet port, so maybe I could use the other one as another master. I am just wondering how I would parametrize it in the /etc/default/ethercat file.
Thank you,
Nicolas
I was wondering if there was a slave number limitation on the EtherCAT configuration for linuxcnc. I am trying to run a new device, the config xml file works fine when I plug the device alone, but my system crashes when I put it after 15 other slave on my EtherCAT bus.
Is such a limitation exists, is it overall, or is it per master? My computer has two Ethernet port, so maybe I could use the other one as another master. I am just wondering how I would parametrize it in the /etc/default/ethercat file.
Thank you,
Nicolas
Last edit: 6 years 9 months ago by Nico2017.
Please Log in or Create an account to join the conversation.
- phoenix_83
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
6 years 9 months ago #154149
by phoenix_83
Replied by phoenix_83 on topic Ethercat HAL driver
Hello everyone,
my name is Heiko and i am new here. I have an old Deckel FP2 and some servo motors inclusive servo controllers from Beckhoff.
Now I would like to upgrade the Deckel with servo motors and control it via LinuxCNC.
To test and try LinuxCNC I have here an EK1100, EL1104, EL2024 and an IndraDrive Cs (HCS01.1E-W0006-A-02-B-ET-EC-PB-NN-NN-FW) with an MSK030C-0900 servo motor. With these components i want to set up an test scenario.
So I try to install the ethercat hal driver. Therefore i followed exactly the instructions from Hawkeye from page 68. Everything is going well until i came to step 5.
The steps cloning the ec-debianize and dpkg-checkbuilddeps are running well.
but when i run the command dpkg-buildpackage i geht following error message:
root@linuxcnc:/git/ec-debianize/etherlabmaster# dpkg-buildpackage
dpkg-buildpackage: Information: Quellpaket etherlabmaster
dpkg-buildpackage: Information: Quellversion 1.5.2+20190904hg33b922p8ea394-1
dpkg-buildpackage: Information: Quelldistribution lucid
dpkg-buildpackage: Information: Quelle geändert durch Sascha Ittner <sascha.ittner@modusoft.de>
dpkg-buildpackage: Information: Host-Architektur amd64
dpkg-source --before-build etherlabmaster
debian/rules clean
dh clean --with autoreconf,dkms
dh_testdir
dh_auto_clean
dh_autoreconf_clean
debian/rules override_dh_clean
make[1]: Verzeichnis „/git/ec-debianize/etherlabmaster“ wird betreten
rm -f ChangeLog
dh_clean
make[1]: Verzeichnis „/git/ec-debianize/etherlabmaster“ wird verlassen
dpkg-source -b etherlabmaster
dpkg-source: Fehler: unmöglich, mit Quellformat »3.0 (quilt)« zu bauen: unter ./etherlabmaster_1.5.2+20190904hg33b922p8ea394.orig.tar.{bz2,gz,lzma,xz} wurde kein Tarball der Originalautoren gefunden
dpkg-buildpackage: Fehler: Fehler-Exitstatus von dpkg-source -b etherlabmaster war 255
Now i am not able to do the next steps. when i try to execute sudo dpkg -i /git/ec-debianize/etherlabmaster_1.5.2+20180317hg9e65f7-2_amd64.deb the error is:
dpkg: Fehler: Auf das Archiv »/git/ec-debianize/etherlabmaster_1.5.2+20180317hg9e65f7-2_amd64.deb« kann nicht zugegriffen werden: Datei oder Verzeichnis nicht gefunden
Can anyone help me with the error messages? I have tried everything but nothing worked. Please give me a hint of what i am doing wrong.
05. Setup "ec-debianize"
06. Setup "LinuxCNC-Ethercat"
07. Further things to consider
- if you experience issues when starting linuxcnc (cpu high load), then try to change "BASE_PERIOD=0" within your ini-file (config of your machine)
08. .. this is know the part where I guess I can end this guide now.
.. further steps (setting up ethercat.xml, machine config, ... can be seen within the forum).
.. hope this helped you - thanks for reading.
.. please leave a comment whether you managed it to get your system running.
[hr]
Best Regards,
Ben[/quote]
my name is Heiko and i am new here. I have an old Deckel FP2 and some servo motors inclusive servo controllers from Beckhoff.
Now I would like to upgrade the Deckel with servo motors and control it via LinuxCNC.
To test and try LinuxCNC I have here an EK1100, EL1104, EL2024 and an IndraDrive Cs (HCS01.1E-W0006-A-02-B-ET-EC-PB-NN-NN-FW) with an MSK030C-0900 servo motor. With these components i want to set up an test scenario.
So I try to install the ethercat hal driver. Therefore i followed exactly the instructions from Hawkeye from page 68. Everything is going well until i came to step 5.
The steps cloning the ec-debianize and dpkg-checkbuilddeps are running well.
but when i run the command dpkg-buildpackage i geht following error message:
root@linuxcnc:/git/ec-debianize/etherlabmaster# dpkg-buildpackage
dpkg-buildpackage: Information: Quellpaket etherlabmaster
dpkg-buildpackage: Information: Quellversion 1.5.2+20190904hg33b922p8ea394-1
dpkg-buildpackage: Information: Quelldistribution lucid
dpkg-buildpackage: Information: Quelle geändert durch Sascha Ittner <sascha.ittner@modusoft.de>
dpkg-buildpackage: Information: Host-Architektur amd64
dpkg-source --before-build etherlabmaster
debian/rules clean
dh clean --with autoreconf,dkms
dh_testdir
dh_auto_clean
dh_autoreconf_clean
debian/rules override_dh_clean
make[1]: Verzeichnis „/git/ec-debianize/etherlabmaster“ wird betreten
rm -f ChangeLog
dh_clean
make[1]: Verzeichnis „/git/ec-debianize/etherlabmaster“ wird verlassen
dpkg-source -b etherlabmaster
dpkg-source: Fehler: unmöglich, mit Quellformat »3.0 (quilt)« zu bauen: unter ./etherlabmaster_1.5.2+20190904hg33b922p8ea394.orig.tar.{bz2,gz,lzma,xz} wurde kein Tarball der Originalautoren gefunden
dpkg-buildpackage: Fehler: Fehler-Exitstatus von dpkg-source -b etherlabmaster war 255
Now i am not able to do the next steps. when i try to execute sudo dpkg -i /git/ec-debianize/etherlabmaster_1.5.2+20180317hg9e65f7-2_amd64.deb the error is:
dpkg: Fehler: Auf das Archiv »/git/ec-debianize/etherlabmaster_1.5.2+20180317hg9e65f7-2_amd64.deb« kann nicht zugegriffen werden: Datei oder Verzeichnis nicht gefunden
Can anyone help me with the error messages? I have tried everything but nothing worked. Please give me a hint of what i am doing wrong.
05. Setup "ec-debianize"
Code:
cd /git
git clone https://github.com/sittner/ec-debianize ec-debianize
./get_source.sh
cd etherlabmaster
dpkg-checkbuilddeps
dpkg-buildpackage (the output error "failed to sign .dsc file" is no issue)
sudo dpkg -i /git/ec-debianize/etherlabmaster_1.5.2+20180317hg9e65f7-2_amd64.deb
sudo dpkg -i /git/ec-debianize/etherlabmaster-dev_1.5.2+20180317hg9e65f7-2_amd64.deb
nano /etc/default/ethercat (change mac-address [MASTER0_DEVICE=""] e.g. [MASTER0_DEVICE="11:22:33:44:55:66"])
nano /etc/default/ethercat (change [DEVICE_MODULES=""] to [DEVICE_MODULES="generic"])
sudo update-ethercat-config
usermod -a -G ethercat linuxcnc
reboot
06. Setup "LinuxCNC-Ethercat"
Code:
cd /git
git clone http://github.com/sittner/linuxcnc-ethercat.git linuxcnc-ethercat"
nano /git/linuxcnc-ethercat/src/lcec_main.c (add here [#include "rtapi_mutex.h"] below [#include "rtapi_app.h"])
cd /git/linuxcnc-ethercat
make -j4
make install
sudo make install
07. Further things to consider
- if you experience issues when starting linuxcnc (cpu high load), then try to change "BASE_PERIOD=0" within your ini-file (config of your machine)
08. .. this is know the part where I guess I can end this guide now.
.. further steps (setting up ethercat.xml, machine config, ... can be seen within the forum).
.. hope this helped you - thanks for reading.
.. please leave a comment whether you managed it to get your system running.
[hr]
Best Regards,
Ben[/quote]
Please Log in or Create an account to join the conversation.
- Nico2017
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 26
6 years 9 months ago #154165
by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi phoenix_83,
I remember facing similar issue at some point but cannot remember if it was exactly the same. What OS and distribution are you using (lucid on ubuntu apparently), but more importantly I think the RTAI and RTPREEPMT real time kernel version (do uname -a to check it quickly) could make the difference as RTAI is no longer supported for ec-debianize. You apparently also do everything as root so should not have any permission issues but might worth to have a look at it too.
I also remember that using previous version of the ec-debianize could help for some OS so reversing back to an older commit was somehow working.
Nicolas
I remember facing similar issue at some point but cannot remember if it was exactly the same. What OS and distribution are you using (lucid on ubuntu apparently), but more importantly I think the RTAI and RTPREEPMT real time kernel version (do uname -a to check it quickly) could make the difference as RTAI is no longer supported for ec-debianize. You apparently also do everything as root so should not have any permission issues but might worth to have a look at it too.
I also remember that using previous version of the ec-debianize could help for some OS so reversing back to an older commit was somehow working.
Nicolas
Please Log in or Create an account to join the conversation.
- manojpatil
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
6 years 9 months ago #154196
by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello Nico2017
Can you guide me regarding the xml file .. as in where are the xml files stored and where should I make changes for my specific driver.
Thanks.
Can you guide me regarding the xml file .. as in where are the xml files stored and where should I make changes for my specific driver.
Thanks.
Please Log in or Create an account to join the conversation.
- manojpatil
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
6 years 9 months ago #154197
by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Please Log in or Create an account to join the conversation.
Time to create page: 0.275 seconds