Ethercat HAL driver

More
11 years 1 month ago #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
More
11 years 1 month ago #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
More
11 years 1 month ago #63122 by boyzo
Replied by boyzo on topic Ethercat HAL driver

cgc wrote: 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?
More
11 years 1 month ago #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.
More
11 years 1 month ago #63134 by andypugh
Replied by andypugh on topic Ethercat HAL driver

boyzo wrote: 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.
More
11 years 1 month ago #63138 by cgc
Replied by cgc on topic Ethercat HAL driver

boyzo wrote: 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
Time to create page: 0.386 seconds
Powered by Kunena Forum