Ethercat HAL driver

More
04 Mar 2016 09:14 #71015 by billiehuijbregts
Hello everyone,

Got the same problem as Daniel descibes above. Trying to build a large 3D printer using Rexroth MKD servos and Danfoss fc302 drives, and use the ethercat protocol to control the printer.
When trying to load my config in Linuxcnc I get the "could not insert module ..../lcec.ko: invalid parameters "
My output of dmesg | grep lcec:
[32892.810025] lcec: disagrees about version of symbol hal_param_float_newf
[32892.810028] lcec: Unknown symbol hal_param_float_newf (err -22)
[32892.810031] lcec: disagrees about version of symbol hal_pin_u32_newf
[32892.810033] lcec: Unknown symbol hal_pin_u32_newf (err -22)
[32892.810056] lcec: disagrees about version of symbol hal_param_bit_newf
[32892.810057] lcec: Unknown symbol hal_param_bit_newf (err -22)
[32892.810068] lcec: disagrees about version of symbol hal_param_s32_newf
[32892.810070] lcec: Unknown symbol hal_param_s32_newf (err -22)
[32892.810082] lcec: disagrees about version of symbol hal_pin_s32_newf
[32892.810083] lcec: Unknown symbol hal_pin_s32_newf (err -22)
[32892.810101] lcec: disagrees about version of symbol hal_pin_bit_newf
[32892.810102] lcec: Unknown symbol hal_pin_bit_newf (err -22)
[32892.810163] lcec: disagrees about version of symbol hal_param_u32_newf
[32892.810164] lcec: Unknown symbol hal_param_u32_newf (err -22)
[33453.100981] lcec: disagrees about version of symbol hal_param_float_newf
[33453.100985] lcec: Unknown symbol hal_param_float_newf (err -22)
[33453.100988] lcec: disagrees about version of symbol hal_pin_u32_newf
[33453.100989] lcec: Unknown symbol hal_pin_u32_newf (err -22)
[33453.101013] lcec: disagrees about version of symbol hal_param_bit_newf
[33453.101015] lcec: Unknown symbol hal_param_bit_newf (err -22)
[33453.101026] lcec: disagrees about version of symbol hal_param_s32_newf
[33453.101027] lcec: Unknown symbol hal_param_s32_newf (err -22)
[33453.101040] lcec: disagrees about version of symbol hal_pin_s32_newf
[33453.101041] lcec: Unknown symbol hal_pin_s32_newf (err -22)
[33453.101058] lcec: disagrees about version of symbol hal_pin_bit_newf
[33453.101060] lcec: Unknown symbol hal_pin_bit_newf (err -22)
[33453.101121] lcec: disagrees about version of symbol hal_param_u32_newf
[33453.101122] lcec: Unknown symbol hal_param_u32_newf (err -22)

Thanks in advance!

Billie

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

More
04 Mar 2016 20:41 #71059 by sqmathlete
Replied by sqmathlete on topic Ethercat HAL driver
Hi Billie

I got this working by putting the Sittner ethercat driver update files in a folder that has root (i.e. read/write) privileges
such as
/opt/your-folder
then in a terminal
1) cd /opt/yourfolder (with update files)
2) sudo make
3) sudo make install

Note: if step 3 fails, the next time you try to run the update use sudo make clean to get rid of any unwanted stuff from the previous installation attempt.

Good Luck
Daniel
The following user(s) said Thank You: Nico2017

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

More
04 Mar 2016 20:44 - 04 Mar 2016 20:47 #71060 by sqmathlete
Replied by sqmathlete on topic Ethercat HAL driver
Sorry forgot step 4) Reboot

Then you should be able to run sudo ethercat master, sudo ethercat slaves -v and see everything working.
Last edit: 04 Mar 2016 20:47 by sqmathlete. Reason: missed a step

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

More
09 Mar 2016 08:51 - 09 Mar 2016 08:51 #71259 by billiehuijbregts
Hi Daniel,

Thanks for you reply! Sorry to bother you again but I'm not a big expert in Linux.
Can't seem to get it to make the ethercat driver in /opt.
I made a folder ethercat in /opt and used git clone to get the driver files in my ethercat folder.
When I then use the sudo make command I get the following error:
In file included from lcec_conf.c:30:0:
lcec_conf.h:22:18: fatal error: ecrt.h: No such file or directory
compilation terminated.
Last edit: 09 Mar 2016 08:51 by billiehuijbregts.

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

More
09 Mar 2016 10:37 #71262 by Allan
Replied by Allan on topic Ethercat HAL driver
Hello Billie

Have you downloaded the etherlabmaster-dev from

repo.modusoft.de/linuxcnc/wheezy/

as described in the EtherCatDriver documentation

wiki.linuxcnc.org/cgi-bin/wiki.pl?EtherCatDriver

in the Building section?

Allan

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

More
09 Mar 2016 12:46 #71267 by billiehuijbregts
Hi Allen,

Thanks for the tip, that seemed to be the problem.
I got that working now, only I can't seem to find any ethercat slaves.

When I load a template config in my Linuxcnc program I get this error:
Invalid pdoEntry halType special32

I'll add my config templates.
Attachments:

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

More
09 Mar 2016 13:09 #71268 by Allan
Replied by Allan on topic Ethercat HAL driver
Hello Billie

In the EtherCatDriver documentation

wiki.linuxcnc.org/cgi-bin/wiki.pl?EtherCatDriver

in the Building section have you cloned and made
the driver?:

If you like to build the driver by you own, you could just clone the git

# git clone github.com/sittner/linuxcnc-ethercat.git linuxcnc-ethercat
# cd linuxcnc-ethercat
and do a

# make
and
# sudo make install

Allan

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

More
14 Mar 2016 10:27 - 17 Mar 2016 13:08 #71619 by billiehuijbregts
Dear Allan,

Seems like the Ethercat driver is working now, I can find my Ethercat slaves.
Still can't connect to my drive tho. When issuing the 'show pins ethercat' it gives back 0 pins.
Guess it's a problem in my xml or hal file but I followed the tutorial exactly as described.
Attachments:
Last edit: 17 Mar 2016 13:08 by billiehuijbregts.

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

More
18 Mar 2016 15:37 #71871 by Allan
Replied by Allan on topic Ethercat HAL driver
Hello Billie

I noticed that the XML file you attached to your post on 14 March does not contain a <masters> </masters> entry whereas the XML file attached to your post on 9 March does. The current version Ethercat HAL driver produces errors if the <masters> </masters> is omitted.

Are any errors generated?

Allan

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

More
20 Mar 2016 04:26 #71928 by chuchengbing
Replied by chuchengbing on topic Ethercat HAL driver
really?thank you for all . i will do something like with you and control one servo driver with ethercat.
i encounter some questions :
while i try to start linuxcnc ,there are two errors:
1.failed to set SAFEOP state,slave refused the state change;
2.AL state message 0x001E,invalid input configuration;
so,i try to execute hal file in hal cmd line, i found when i run "addf lcec.write-all servo-thread ",the error are alredy coming.
please tell me the answers of this question .
thank you again.

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

Time to create page: 0.338 seconds
Powered by Kunena Forum