Ethercat HAL driver

More
02 Feb 2020 22:09 #156408 by jirkam
Replied by jirkam on topic Ethercat HAL driver

Hi guys,
added the module EL1819 to the standard configuration, greetings Chimeno


Hello.
Please, give me an advice.
He copied the files for EL1819 to "/ git / linuxcnc-ethercat / src" and still writes to me:
lcec_conf: ERROR: Invalid slave type EL1819
lcec_conf: ERROR: Parse Error at Line 5: Parsing Aborted
./CNC_Router_YYXZ.hal:11: waitpid failed lcec_conf lcec_conf
./CNC_Router_YYXZ.hal:11: lcec_conf exited without getting ready

EL2809 works correctly.
What am I doing wrong?

Second query: EL1819 is no longer in the later "lcec_conf.c". Why?

Thank you very much.
Attachments:

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

More
03 Feb 2020 01:19 - 03 Feb 2020 01:20 #156411 by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi all,
I am trying to add an additional EtherCAT card EL4004.
I have generated the lcec_el4004.c files and lcec_el40x4.c and put them into the linuxcnc-ethercat/src directory.
After modifying the Kbuild, lcec_conf.h, lcec_conf.c, lcec_main.c accordingly
I have managed to recompile:
cd linuxcnc-ethercat
sudo make clean
sudo make -j4
cp src/lcec.so ~/linuxnc -dev/rtlib/
Then I am missing the last steps for the update, cannot remember what are the last files that need to be pushed in a specific location. I am not using the run in place linuxcnc but the linuxcnc install and working on the whole system. The EL4004 is still indicated as missing when launching the lcec from linuxcnc .

Thank you for your help,
Nicolas
Last edit: 03 Feb 2020 01:20 by Nico2017.

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

More
03 Feb 2020 12:57 #156436 by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello sir,

I have EA180E Ethercat driver, servo motor and Igh Ethercat master.(etherlab.org)
& sample( test run )source code.

I am using Twincat 3 for Pdo mapping and test run.

can you share with me the TWINCAT3 forum link where I can share above query?.

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

More
03 Feb 2020 20:55 #156469 by chimeno
Replied by chimeno on topic Ethercat HAL driver

Hello.
Please, give me an advice.
He copied the files for EL1819 to "/ git / linuxcnc-ethercat / src" and still writes to me:
lcec_conf: ERROR: Invalid slave type EL1819
lcec_conf: ERROR: Parse Error at Line 5: Parsing Aborted
./CNC_Router_YYXZ.hal:11: waitpid failed lcec_conf lcec_conf
./CNC_Router_YYXZ.hal:11: lcec_conf exited without getting ready

Hi jirkam
surely you need to add the device in some file, can you pass me the linuxcnc-ethercat folder and I check it?

Second query: EL1819 is no longer in the later "lcec_conf.c". Why?

should be in the archive

greeting
Chimeno

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

More
03 Feb 2020 20:59 #156470 by chimeno
Replied by chimeno on topic Ethercat HAL driver

Then I am missing the last steps for the update, cannot remember what are the last files that need to be pushed in a specific location. I am not using the run in place linuxcnc but the linuxcnc install and working on the whole system. The EL4004 is still indicated as missing when launching the lcec from linuxcnc .


Hi Nico2017
I do not understand very well how you are doing, I simply do it this way and it works well.
cd linuxcnc-ethercat
sudo make clean
sudo make -j4
sudo make install

greeting
Chimeno
The following user(s) said Thank You: Nico2017

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

More
03 Feb 2020 21:02 - 03 Feb 2020 21:08 #156472 by chimeno
Replied by chimeno on topic Ethercat HAL driver

can you share with me the TWINCAT3 forum link where I can share above query?.

Hi manojpatil
Sorry for my English translator, I'm not in any TWINCAT3 forum, you can pass me the project and have a look.

Attached configuration file of the linuxcnc-ethercat generic driver for your example, if it can help you.

greeting
Chimeno
Attachments:
Last edit: 03 Feb 2020 21:08 by chimeno.

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

More
03 Feb 2020 21:46 #156477 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hello.
Thank you very much for your interest.
Here are the files. EL1819
I will be grateful.
And I still have to put the EL3064 into operation. :-(
Thanks
Jirkam

jirka@CNCRouter:~$ uname -a
Linux CNCRouter 4.9.0-11-rt-686-pae #1 SMP PREEMPT RT Debian 4.9.189-3+deb9u2 (2019-11-11) i686 GNU/Linux
Attachments:

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

More
03 Feb 2020 23:10 - 09 Feb 2020 19:24 #156481 by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi Chimeno,
thanks for the reminder.

Anyone experiencing with a generic slave some issues while stopping linuxcnc? The test I am doing stays stopped at
EtherCAT 0: Stopping EoE thread
, when I do sudo dmesg for a couple of minutes. Then it shows me a
BUG: unable to handle kernel paging request at
and I have to reboot to be able to run linuxcnc again.

Thank you,
Nicolas

PS: edit, I solved it.
I was actually using a relatively dated EtherCAT master version. At that time I used the ec-debianize install and ended up with a version dated from 17 03 2018. Redoing it lately I ended up with a version from 04 09 2019. As shown on hg.code.sf.net/p/etherlabmaster/code there has been few updates possibly correcting issues was the EoE deactivation step between those two dates. On the hardware point of view, I also made sure that all my Ethernet cables were with shielded ends and verified the grounding for all components (computer + slaves).
Last edit: 09 Feb 2020 19:24 by Nico2017.

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

More
04 Feb 2020 21:01 - 04 Feb 2020 21:06 #156540 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi Jirkam
you need to edit the Kbuild file for device compilation I attached it modified and compiled, it works fine.

regards
Chimeno
Attachments:
Last edit: 04 Feb 2020 21:06 by chimeno.

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

More
04 Feb 2020 22:16 - 04 Feb 2020 22:22 #156545 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hi Chimero
Thank you very much.
I did compile (compile.txt) and I probably did something wrong. (linuxcnc.txt)
But before "sudo make install" linuxcnc started (EL1819.png) but did not respond to input. I don't even know if I tested it correctly.
I connected 24V and input. Is it right? I don't trust myself anymore.
Can you advise me?
Must be a PC restart?
Thanks a lot . Jirka
Attachments:
Last edit: 04 Feb 2020 22:22 by jirkam.

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

Time to create page: 0.171 seconds
Powered by Kunena Forum