Ethercat HAL driver

More
11 years 1 month ago #62855 by cgc
Replied by cgc on topic Ethercat HAL driver
And how do you read the position?

regards Frank

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

More
11 years 1 month ago #62867 by boyzo
Replied by boyzo on topic Ethercat HAL driver

cgc wrote: And how do you read the position?


Closed loop is between drive and the motor. Then I can send the same encoder signals to EL5151 encoder interface. I did similar configuration using Granit devices VSD/E drive and MESA 5i20 and PWM output..

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

More
11 years 1 month ago #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
11 years 1 month ago - 11 years 1 month ago #62945 by CNCDestroyer
Replied by CNCDestroyer on topic Ethercat HAL driver
Hey guys,

the slaves are shown in terminal.
Code:
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: 11 years 1 month ago by CNCDestroyer.

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

More
11 years 1 month ago #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
11 years 1 month ago #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.

Time to create page: 0.129 seconds
Powered by Kunena Forum