Ethercat HAL driver

More
6 years 8 months ago #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
6 years 8 months ago - 6 years 8 months ago #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
Code:
EtherCAT 0: Stopping EoE thread
, when I do sudo dmesg for a couple of minutes. Then it shows me a
Code:
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: 6 years 8 months ago by Nico2017.

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

More
6 years 8 months ago - 6 years 8 months ago #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: 6 years 8 months ago by chimeno.

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

More
6 years 8 months ago - 6 years 8 months ago #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: 6 years 8 months ago by jirkam.

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

More
6 years 8 months ago #156604 by chimeno
Replied by chimeno on topic Ethercat HAL driver
hello jirkam,
I did not look at the EL1819.c file, just the compilation, now that I am looking at it, everything is wrong with the PDO entries, where did you get it? I attached the folder with the solution much better, since it is a simple device .
regards
Chimeno
Attachments:

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

More
6 years 8 months ago #156608 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hi Chimero.
I modified EL1904 to EL1819. I added channels.

Thank you very much for the edited files.
Compilation Ok. Start LinuxCNC Ok.
When I connect 24V (or 0V) to input # 1 I don't see a change in HAL Configuration.
It's good?
Thank you very much for your advice.
Jirka
Attachments:

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

Time to create page: 1.147 seconds
Powered by Kunena Forum