linuxcnc ethercat lcec issue

More
11 Mar 2017 05:42 #89404 by superbird688
Hi experts!

I am just touching this clever cnc software but in the stage of initialization with ethercat
Here is my simple hal test run:

loadusr -W lcec_conf ethercat_config_n.xml
loadrt lcec
loadrt trivkins
loadrt motmod base_period_nsec=0 servo_period_nsec=1000000 num_joints=1

addf lcec.read-all servo-thread
addf lcec.write-all servo-thread

start

And as I run linuxcnc selecting one I generated, it shows the following message

could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/lcec.ko: Invalid parameters

I use intel pro1000 , under linuxcnc 2.7.8 , I as well tried 8139too but still having this trouble

By the way my servo ASDA-A2 Delta Electronics

Please help.....Thanks in advance!
Attachments:

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

More
13 Mar 2017 12:58 #89511 by andypugh
Is there any more information in dmesg?

Looking at the source most of the faults print an explanatory message prior to giving up.

You could try an even simpler test file (don't load trivkins, and use "loadrt threads" instead of motomod, and then addf ... thread1 ) However that probably won't help.

What Linux kernel are you using (uname -a)

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

More
13 Mar 2017 14:59 #89526 by db1981
Replied by db1981 on topic linuxcnc ethercat lcec issue
first check if your ethercat master ist working.

simply type in terminal : ethercat slaves

if your slaves are shown there, the problem is in LCNC or your config xml.

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

More
14 Mar 2017 14:15 #89587 by Wirewrap
Is base_period=0 an accepted value? If you want no base period, just leave it out.

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

More
15 Mar 2017 15:04 - 15 Mar 2017 15:10 #89670 by superbird688
Thanks for all your help.

I went back to my problem and it was something wrong with my ethercat-config xml file.

I modified 5 servo slaves with type="DeAsda" since mine are Delta electronics motors, and luckily it has
deasda.h and c in the src already.

But if the motors are something else than asda, I might have trouble since i can't be sure if my generic type of xml
is good to go....
Last edit: 15 Mar 2017 15:10 by superbird688.

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

More
01 Aug 2017 10:12 #96819 by dan.k
Replied by dan.k on topic linuxcnc ethercat lcec issue
Hi all,

I saw that you are using ASDA-A2-E with Linux CNC. Please, can you describe me the procedure of loading configuration for this servo drive? Do I need XML file or can I load deasda.c somehow?

I will appreciate your help

Thank you in advance

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

More
05 Aug 2017 20:34 #97046 by superbird688
Hi Dan.K
Please search swm-f45a which is a good example to use asdaa2 profile.

Cheers

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

More
10 Aug 2017 05:54 #97275 by dan.k
Replied by dan.k on topic linuxcnc ethercat lcec issue
Hi superbird,

thank you for information, I looked in the files and it helped me. But I have a question about xml file. Did you use it with DeASDA name only or with generic and defined PDOs by yourself? I have a problem because in dmesg I got a message that "Slave does not provide information about sync managers", even if I use generic xml with sync managers defined. Did you meet with this? Please, can you share with us your successful configuration for ASDA-A2-E?

Thank you very much

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

More
18 Aug 2017 07:39 #97691 by dan.k
Replied by dan.k on topic linuxcnc ethercat lcec issue
Hi all,

I'm testing on Delta ASDA-A2-E 200W and if I try to setup with swm-fm45a example from Sascha Ittner, it shows me only information in dmesg that slave does not provide information about sync managers. I think it's problem of defining FMMU because in original XML they are defined and they are not in E2PROM. Is it possible to add somehow FMMU definition of FMMU to generic XML file? It does not work also with DeASDA.

Thanks

Daniel

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

More
26 Sep 2017 14:51 #99468 by fupeama
Hi All.
I have same results as dan.k
dmesg shows "slave does not provide information about sync managers" sm2 and sm3.
I try generate my own xml file for generic driver with same result as with native asda driver.
I try setup fmmu in ethercat config but I dont know how.
Is there somebody who successfully run delta asda a2 E driver?
thanks
Martin

my configuration
rtail 3.4.9 debian wheezy
linuxcnc 2.7.11 (2.7.8)
igh ethercat compiled from source with debianize patch
linuxcnc-ethercat compiled from sittner git source

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

Time to create page: 0.302 seconds
Powered by Kunena Forum