Ethercat HAL driver

More
24 Sep 2015 12:29 #62936 by cgc
Replied by cgc on topic Ethercat HAL driver
This servo controller has a Ethercat interface. Why do you not use this?

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

More
24 Sep 2015 21:44 - 24 Sep 2015 21:57 #62945 by CNCDestroyer
Replied by CNCDestroyer on topic Ethercat HAL driver
Hey guys,

the slaves are shown in terminal.
ethercat@Ethercat:~$ ethercat slaves
0  0:0  PREOP  +  EK1100 EtherCAT-Koppler (2A E-Bus)
1  0:1  PREOP  +  EL1018 8K. Dig. Eingang 24V, 10�s
2  0:2  PREOP  +  EL2008 8K. Dig. Ausgang 24V, 0.5A
ethercat@Ethercat:~$ 

i cant start the example.

I searched for a solution but i found nothing in the web.

i want to test the i/o for a new solution for my milling machine. don't now how without example.

Warning: Spoiler!


Thanks for helping =)
Last edit: 24 Sep 2015 21:57 by CNCDestroyer.

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

More
26 Sep 2015 19:21 #63021 by boyzo
Replied by boyzo on topic Ethercat HAL driver
Problem: lcec: disagrees about version of symbol hal_param_float_newf

Hello,

I installed LinuxCNC fresh from LiveCD 2.7. Then I installed ethercat as from wiki.linuxcnc.org/cgi-bin/wiki.pl?EtherCatDriver

I connect Beckhoff devices and issue comand:
ethercat slaves
0 7:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 7:1 PREOP + EL2008 8K. Dig. Ausgang 24V, 0.5A
2 7:2 PREOP + EL1008 8Ch. Dig. Input 24V, 3ms

I created test-conf.xml:
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
<slave idx="0" type="EK1100" />
<slave idx="1" type="EL2008" />
<slave idx="2" type="EL1008" />
</master>
</masters>

and created test.hal:
loadrt trivkins
loadrt motmod servo_period_nsec=1000000 num_joints=3
loadusr -W lcec_conf test-conf.xml
loadrt lcec

then I issue: halrun test.hal:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/lcec.ko: Invalid parameters
test.hal:20: exit value: 1
test.hal:20: insmod for lcec failed, returned -1
See the output of 'dmesg' for more information.

relevant dmseg output (before all is OK):
[15258.829139] RTAI[math]: loaded.
[15258.987667] lcec: disagrees about version of symbol hal_param_float_newf
[15258.987678] lcec: Unknown symbol hal_param_float_newf (err -22)
[15258.987689] lcec: disagrees about version of symbol hal_pin_u32_newf
[15258.987694] lcec: Unknown symbol hal_pin_u32_newf (err -22)
[15258.987769] lcec: disagrees about version of symbol hal_param_bit_newf
[15258.987775] lcec: Unknown symbol hal_param_bit_newf (err -22)
[15258.987809] lcec: disagrees about version of symbol hal_param_s32_newf
[15258.987815] lcec: Unknown symbol hal_param_s32_newf (err -22)
[15258.987854] lcec: disagrees about version of symbol hal_pin_s32_newf
[15258.987860] lcec: Unknown symbol hal_pin_s32_newf (err -22)
[15258.987917] lcec: disagrees about version of symbol hal_pin_bit_newf
[15258.987923] lcec: Unknown symbol hal_pin_bit_newf (err -22)
[15258.988121] lcec: disagrees about version of symbol hal_param_u32_newf
[15258.988127] lcec: Unknown symbol hal_param_u32_newf (err -22)
[15259.125902] RTAI[math]: unloaded.

Anybody any suggestion?

Thanks for help

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

More
28 Sep 2015 00:07 #63073 by cgc
Replied by cgc on topic Ethercat HAL driver
Please post your ini, hal and xml complete

regards Frank

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

More
28 Sep 2015 01:33 #63080 by boyzo
Replied by boyzo on topic Ethercat HAL driver
I do not have .ini, xml and hal is complete in my original post. I minimize this for the first test, before I go complex.

What I think is that I should work with linuxcnc 2.6, not 2.7. I did fresh install 2.6, but now I can not install ethercat as it seems package repository is down. I get 502 Bad Gateway error.

Regards Bojan

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

More
28 Sep 2015 16:26 #63117 by cgc
Replied by cgc on topic Ethercat HAL driver
Hi,
it is running with 2.7,
you need this in your hal-file: (with complete path to the xml !!)

loadusr -W lcec_conf /home/fb/linuxcnc/configs/ethercat/ethercat-conf.xml
loadrt lcec
loadrt trivkins
loadrt motmode base_period_nsec=0 servo_period_nsec=1000000 num_joints=3
#
addf lcec.read-all servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf lcec.write-all servo-thread
#

I think, the xml is ok
The following user(s) said Thank You: Nico2017

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

More
28 Sep 2015 17:13 #63122 by boyzo
Replied by boyzo on topic Ethercat HAL driver

you need this in your hal-file: (with complete path to the xml !!)

loadusr -W lcec_conf /home/fb/linuxcnc/configs/ethercat/ethercat-conf.xml


I have my test-conf.xml in my current directory so I do not need path to xml.

I can not test as I do not have 2.7 anymore, and I can not install in 2.6 as I get 502 Bad Gateway error on package repository. Do you think addf would make the difference?

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

More
28 Sep 2015 18:38 #63132 by boyzo
Replied by boyzo on topic Ethercat HAL driver
Solved.

Package repository is back. I install ethercat on 2.6 and I do not get any errors. It seems the driver is not compatible with 2.7.

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

More
28 Sep 2015 18:40 #63134 by andypugh
Replied by andypugh on topic Ethercat HAL driver

Package repository is back. I install ethercat on 2.6 and I do not get any errors. It seems the driver is not compatible with 2.7.


That seems strange. I can't off-hand think of anything which would have changed to affect that.

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

More
28 Sep 2015 19:55 #63138 by cgc
Replied by cgc on topic Ethercat HAL driver

It seems the driver is not compatible with 2.7.


You're right, I have the same errors with 2.7 :-(

[15258.987667] lcec: disagrees about version of symbol hal_param_float_newf
[15258.987678] lcec: Unknown symbol hal_param_float_newf (err -22)
[15258.987689] lcec: disagrees about version of symbol hal_pin_u32_newf
[15258.987694] lcec: Unknown symbol hal_pin_u32_newf (err -22)
[15258.987769] lcec: disagrees about version of symbol hal_param_bit_newf
[15258.987775] lcec: Unknown symbol hal_param_bit_newf (err -22)
[15258.987809] lcec: disagrees about version of symbol hal_param_s32_newf
[15258.987815] lcec: Unknown symbol hal_param_s32_newf (err -22)
[15258.987854] lcec: disagrees about version of symbol hal_pin_s32_newf
[15258.987860] lcec: Unknown symbol hal_pin_s32_newf (err -22)
[15258.987917] lcec: disagrees about version of symbol hal_pin_bit_newf
[15258.987923] lcec: Unknown symbol hal_pin_bit_newf (err -22)
[15258.988121] lcec: disagrees about version of symbol hal_param_u32_newf
[15258.988127] lcec: Unknown symbol hal_param_u32_newf (err -22)

regards Frank

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

Time to create page: 0.844 seconds
Powered by Kunena Forum