- Posts: 42
- Thank you received: 3
Ethercat HAL driver
- boyzo
- Offline
- Senior Member
-
Less
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
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
- cgc
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 10
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
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
- boyzo
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 3
11 years 1 month ago #63122
by boyzo
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?
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?
- boyzo
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 3
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.
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.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
11 years 1 month ago #63134
by andypugh
That seems strange. I can't off-hand think of anything which would have changed to affect that.
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.
- cgc
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 10
11 years 1 month ago #63138
by cgc
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
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