Ethercat HAL driver

More
5 years 8 months ago - 5 years 8 months ago #199833 by bkt
Replied by bkt on topic Ethercat HAL driver
@db1981 ... sorry for these questions ... but I can compile only my lcec_el5151_f25.c, lcec_el5151_f25.h, lcec_conf.c and lcec_conf.h ... or is necessary to compile all ?

ok, i read your messages just now. Thank you. But I would like to learn how to compile my ethercat component .... so my request is valid but do not prepare anything I would like to do by myself.

And if the problem is in my bad xml better .... I am attaching everything .... et voilĂ :

Warning: Spoiler!


these my .hal

Warning: Spoiler!


tanks a lot.

bkt
Last edit: 5 years 8 months ago by bkt.

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

More
5 years 8 months ago - 5 years 8 months ago #199836 by db1981
Replied by db1981 on topic Ethercat HAL driver
@bkt

about compiling: you have to compile the complete project, the modules have to be linked. After compiling you only got an lcec_conf and an lcec module.

about you config, nothing seems to be wrong.

please do an "ethercat debug 1" , start linuxcnc, then dmesg and look for all ethercat messages for slave 6.
Last edit: 5 years 8 months ago by db1981. Reason: post overlab
The following user(s) said Thank You: bkt

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

More
5 years 8 months ago #199854 by db1981
Replied by db1981 on topic Ethercat HAL driver
@bkt in addition

you should also better change your addf lcec.write_all line to the last line of addfs in your hal file.

read the post #199443 on page 115 of this thread.
The following user(s) said Thank You: bkt

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

More
5 years 8 months ago - 5 years 8 months ago #199870 by bkt
Replied by bkt on topic Ethercat HAL driver
My ini have debug = 1 ... but noting appears about -p6 slaves on terminal ...

Changing position lcec.write_all command on .hal file give me stability on power on of sistem (previosly sometime one drive not go on OP mode .... now every time ... so thanks).

But no other .... Have you some other ideas? Because linuxcnc axis Gui not detect -p6 slaves at all. On terminal I can see everytime -p6 slaves on PREOP mode.
Last edit: 5 years 8 months ago by bkt.

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

More
5 years 8 months ago - 5 years 8 months ago #199874 by bkt
Replied by bkt on topic Ethercat HAL driver
ethercat slaves -v command show these situations:

Warning: Spoiler!


Enable PDO Configuration: no <- - - - - el5151
Enable Upload at startup: no

where all other slaves have:

CoE details:
Enable SDO: yes
Enable SDO Info: yes
Enable PDO Assign: yes
Enable PDO Configuration: yes <- - - - all other (not 1008-2008)
Enable Upload at startup: no
Enable SDO complete access: no
Last edit: 5 years 8 months ago by bkt.

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

More
5 years 8 months ago - 5 years 8 months ago #199875 by db1981
Replied by db1981 on topic Ethercat HAL driver
not your ini debug ....

In an terminal window write the command "ethercat debug 1".
This sets the debug level from the ethercat master to the syslog (dmesg).
(0 = debug off, 1=debug messages on, 2=all frames to log) .

After this there must be ethercat messages in your dmesg log.
Start linuxcnc, open a second terminal write the command dmesg, there should be ethercat messages.

you should get something like this:
Warning: Spoiler!
Last edit: 5 years 8 months ago by db1981. Reason: added dmesg example
The following user(s) said Thank You: bkt

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

Time to create page: 2.241 seconds
Powered by Kunena Forum