Beckhoff ethercat 64 with bit linuxcnc, How to install.

More
29 Jun 2020 14:37 - 29 Jun 2020 15:52 #173099 by TheRoslyak
Сan you explain what I'm doing wrong. I create xml and hal files And linuxcnc work without error and gives correct values. But drivers do not load them. Can you help me please
Last edit: 29 Jun 2020 15:52 by TheRoslyak. Reason: Everything is working

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

More
29 Jun 2020 21:07 #173136 by Grotius
Hi,

Maybe try one single motor driver config first. Then your problem is easyer to find.
Your xml is quite big at the moment.

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

More
16 Jul 2020 08:09 - 16 Jul 2020 08:10 #174811 by bkt
sorry guys .... I read the how to ... and all seems to install good .... but is not possible for me install linuxcnc-ethercat-master .... I have these messages:
demo@demo:~/linuxcnc-ethercat-master/src$ sudo make /***** sudo or not is the same messages*****/
make[1]: Entering directory '/home/demo/linuxcnc-ethercat-master/src'
user.mk:1: ../config.mk: No such file or directory
make[1]: *** No rule to make target '../config.mk'.  Stop.
make[1]: Leaving directory '/home/demo/linuxcnc-ethercat-master/src'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2

Some ideas about? (i use ubuntu 18.04 and Lcnc 2.9 rt-preemt).

Other things .... sittner have add patch for 2.8 Lcnc .... it works on 2.9 too?

regards
bkt
Last edit: 16 Jul 2020 08:10 by bkt.

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

More
16 Jul 2020 19:18 - 16 Jul 2020 19:19 #174882 by Grotius
@blt.

At page nr.1 you can see the same question:
forum.linuxcnc.org/27-driver-boards/3559...stall?start=0#122736

I can not install the linuxcnc-ethercat,
when I 'make', print "halcompile/comp ececutable not found or set"
Could you tell me why?

It looks like linuxcnc is not installed as run in place, did you installed the linuxcnc-dev version with all dependencies?


For me it's a long time ago i did the install, so that makes it harder to give the solution right away..
Good luck !
Last edit: 16 Jul 2020 19:19 by Grotius.

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

More
17 Jul 2020 03:17 #174896 by Nico2017
Hi @btk,

are you sure you got the right header installed with your real time linux?

Otherwise try this:

This first step is required to make the ethercat+linuxcnc work, as indicated by @Hawkeye in forum.linuxcnc.org/24-hal-components/223...ver?start=670#123888 . On my case this is required to avoid the error while launching linuxcnc with ethercat:

<stdin>:3: waitpid failed /usr/bin/rtapi_app lcec
<stdin>:3: /usr/bin/rtapi_app exited without becoming ready
<stdin>:3: insmod for lcec failed, returned -1

Go to the directory where you have been cloning the git linuxcnc-ethercat. Mine is in ~/linuxcnc-ethercat.

cd ~/linuxcnc-ethercat
gedit ~/linuxcnc-ethercat/src/lcec_main.c

edit this file adding #include "rtapi_mutex.h" below #include "rtapi_app.h" then save and close gedit.


as written on page 4 steps of this thread.

For this make, try also without sudo.

Nicolas

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

More
17 Jul 2020 11:37 #174933 by bkt
@Grotius .... thanks but seems my problem was ../config.mk related no other, because linuxcnc-dev is installed and work well .... with real machine ...

@Nico2017 ...thanks but these trick not solve my problem because i can launch "make" proces only inside forlder: ***/linuxcnc-ethercat-master/src .... file user.mk -include ../config.mk .... but config.mk not exist. Exist on ***/linuxcnc-ethercat-master folder, but not sure is the same .... ... I try to copy and rename it ......

regards
bkt

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

More
17 Jul 2020 11:46 #174935 by bkt
@all .... I have an enormus doubt ... did i make a big mistake if i installed ethercat-linuxcnc and ec-debianize / etherlabmaster outside the linuxcnc-dev folder?

because now i try to run "make" on folder ~/linuxcnc-ethercat-master and I can see the error mentioned by Nico2017 .... so if never find halcompile/comp ..... probabily is because is not in the right folder. Is these right?

regards
bkt

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

More
19 Jul 2020 17:37 #175167 by chimeno
Hello @bkt
demo @ demo: ~ / linuxcnc-ethercat-master / src $ sudo make / ***** sudo o no son los mismos mensajes ***** /
make [1]: Entrando en el directorio '/ home / demo / linuxcnc-ethercat-master / src'
user.mk:1: ../config.mk: no existe tal archivo o directorio
make [1]: *** No hay regla para hacer objetivo '../config.mk'. Detener.
make [1]: Saliendo del directorio '/ home / demo / linuxcnc-ethercat-master / src'
Makefile: 6: la receta para el objetivo 'todos' falló
make: *** [all] Error 2

I do not know if you have solved the problem, but this simply means that you are not in the correct location, you are doing
/ linuxcnc-ethercat-master / src $ sudo make
should be
/ linuxcnc-ethercat-master / sudo make

after the first compilation you can also do
make
from the
/ src
location

Other things .... sittner have add patch for 2.8 Lcnc .... it works on 2.9 too?

if they also work in 2.9

Greeting
Chimeno

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

More
19 Jul 2020 18:42 - 19 Jul 2020 20:01 #175180 by bkt
I explain again my problem, because not well explained yet I think:
  1. linuxcnc-dev 2.9 is installed and work on real machinery.
  2. Install ec-debianize is done, I can set my mac adress etc etc
  3. Install linuxcnc-ethercat ... these is a problem, if try to launch these command: $ cd linuxcnc-ethercat/ => make .... make process not find halcomp file ...... but i use Grotius guide on page 1, reply 2 of these thread

Any one have these problem? Only depends from Linuxcnc-dev versions 2.9 instead 2.8?

regards
bkt
Last edit: 19 Jul 2020 20:01 by bkt.

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

More
19 Jul 2020 19:13 #175185 by TheRoslyak
Install linuxcnc-dev

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

Time to create page: 0.113 seconds
Powered by Kunena Forum