How: Add more (Beckhoff) devices to EtherCAT HAL driver?

More
21 Nov 2016 23:02 - 22 Nov 2016 18:57 #83101 by jerryCNC
jerryCNC created the topic: How: Add more (Beckhoff) devices to EtherCAT HAL driver?
I am thinking to add support for more (Beckhoff) devices to EtherCAT HAL driver. For example:
* AX5000

I have studied template files based on: github.com/sittner/linuxcnc-ethercat/tree/master/src
* lcec_el7342.h/.c
* lcec_el7041_1000.h/.c
* lcec_em7004.h/.c

I found that:
* Most of HAL pins come from PDO objects as stated in (Beckhoff) device manual.
* But there are some mysterious HAL pins, such as:
--- hd->reset; hd->raw-count; hd->set_raw_count, etc.

Anybody got hints on these pins?
Thanks!
Last Edit: 22 Nov 2016 18:57 by jerryCNC.
More
27 Nov 2016 18:19 #83374 by tommylight
tommylight replied the topic: How: Add more (Beckhoff) devices to EtherCAT HAL driver?
www.google.com/#q=ethercat+site:linuxcnc.org
Have a read through this, hope it helps.
I have no experience with Beckhoff devices, but i am thinking of ordering some to play with.
More
30 Nov 2016 21:32 #83507 by jerryCNC
jerryCNC replied the topic: How: Add more (Beckhoff) devices to EtherCAT HAL driver?
Thanks, but still got no clue:
* I am basically confused how the HAL pins are defined for servo drive? based on ESI files?
More
20 Feb 2017 00:22 #88313 by wrightsh
wrightsh replied the topic: How: Add more (Beckhoff) devices to EtherCAT HAL driver?
Have you made any progress with this? I need to figure out how to add a EL3064 and a EL2624, but I'm not sure where I can find some of the needed info. For instance in lcec_30x4.h there's a line:

#define LCEC_EL3162_PID 0x0C5A3052


where is the "0x0C5A3052" from?

Thanks!
More
20 Feb 2017 15:38 #88353 by jerryCNC
jerryCNC replied the topic: How: Add more (Beckhoff) devices to EtherCAT HAL driver?
"0x0C5A3052" comes from the EtherCAT Slave Information file (ESI, *.xml), which you can download from Beckhoff website.
The following user(s) said Thank You: superbird688
More
26 Feb 2017 01:43 #88625 by wrightsh
wrightsh replied the topic: How: Add more (Beckhoff) devices to EtherCAT HAL driver?
Thanks! Somehow I managed to miss that xml file when going through Beckhoffs site, I figured the definitions for a slice would be under the slices page, not the EK1100. Anyways I got a EL3062, EL3064 and EL2624 added without too much trouble. github.com/wrightsh/linuxcnc-ethercat
Time to create page: 0.250 seconds
Powered by Kunena Forum