Ethercat-conf.xml with beckhoff el1008

More
08 Dec 2024 21:06 #316281 by vibram
Hello, 

First I'm sorry if this kind of question has already been asked but couldn't find the answer. 

I have some common beckhoff modules such as 1008 
They are supported by Linuxcnc Ethercat but I would like to understand how to build the config xml file. I understood the first slave part then the sync but I'm struggling with the PDO part. How to gather and understand the requested data? 

Thank you in advance 

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

  • daveyr
  • Away
  • Junior Member
  • Junior Member
More
08 Dec 2024 21:20 - 08 Dec 2024 21:24 #316283 by daveyr
Replied by daveyr on topic Ethercat-conf.xml with beckhoff el1008
You should not have to worry about dealing with PDO's as the driver is just built in. Assuming that you have a EK1100 this xml file should allow you to access the EL1008
[code]<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="5">
<slave idx="0" type="EK1100" name="EK1100"></slave>
<slave idx="1" type="EL1008" name="EL1008-In"></slave>
</master>
</masters>

[code]Then you should end up with a EL1008-In listed in your Pins and can just use in normal HAL
[/code][/code]
Last edit: 08 Dec 2024 21:24 by daveyr. Reason: Removed color codes from code block

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

  • daveyr
  • Away
  • Junior Member
  • Junior Member
More
08 Dec 2024 21:25 #316284 by daveyr
Replied by daveyr on topic Ethercat-conf.xml with beckhoff el1008
Ok trying without the code block as i didnt get that correct. This is the content of the XML file.

<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="5">
<slave idx="0" type="EK1100" name="EK1100"></slave>
<slave idx="1" type="EL1008" name="EL1008-In"></slave>
</master>
</masters>

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

  • daveyr
  • Away
  • Junior Member
  • Junior Member
More
08 Dec 2024 21:50 #316287 by daveyr
Replied by daveyr on topic Ethercat-conf.xml with beckhoff el1008
If you want to get the values for the PDO's this is the reference for the driver.

github.com/linuxcnc-ethercat/linuxcnc-et...mentation/DEVICES.md

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

More
09 Dec 2024 09:36 - 09 Dec 2024 09:36 #316315 by vibram
Replied by vibram on topic Ethercat-conf.xml with beckhoff el1008
Thank you for your reply. Then I should have an issue with my config I guess

here is my result of ethercat slaves:

0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL2008 8K. Dig. Ausgang 24V, 0.5A
2 0:2 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
3 0:3 PREOP + EL1018 8K. Dig. Eingang 24V, 10�s


my xml file is attached

and a print screen of what I have in Hal show. My pins are not visible
 
Attachments:
Last edit: 09 Dec 2024 09:36 by vibram.

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

  • daveyr
  • Away
  • Junior Member
  • Junior Member
More
09 Dec 2024 12:07 - 09 Dec 2024 12:59 #316320 by daveyr
Replied by daveyr on topic Ethercat-conf.xml with beckhoff el1008
Now i am quickly getting out of my depth, :) It looks like you maybe missing the link to the XML file in your hal? as you are not showing the EK1100 in the list of Pins.

do you have something similar to
loadusr -W lcec_conf ethercat-conf.xml

You also seem to be missing the Readall / writeall for lcec can you post your hal?

In your xml? and when you start from the cmdline are you getting any errors?

 
Last edit: 09 Dec 2024 12:59 by daveyr.

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

  • daveyr
  • Away
  • Junior Member
  • Junior Member
More
09 Dec 2024 13:05 #316329 by daveyr
Replied by daveyr on topic Ethercat-conf.xml with beckhoff el1008
Here is my very basic (1 axis with error starting Axis) config.
If you dont have a ECT drive then remove that from the xml and just configure a single drive in your Hal and it should start up.
 
Attachments:

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

More
09 Dec 2024 13:16 - 09 Dec 2024 14:48 #316332 by vibram
Replied by vibram on topic Ethercat-conf.xml with beckhoff el1008
THank you, it seems to work for me now with my config.
And I added the read all /write all and tested inputs and ooutputs, great :)

I think I put these 2 rows

loadusr -W lcec_conf ethercat-conf.xml
loadrt lcec


maybe too early in the file compared to my Mesa card? is it possible ?
Last edit: 09 Dec 2024 14:48 by vibram.

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

  • daveyr
  • Away
  • Junior Member
  • Junior Member
More
09 Dec 2024 15:25 #316342 by daveyr
Replied by daveyr on topic Ethercat-conf.xml with beckhoff el1008
Sorry not sure on loading to soon for the Mesa. My Ethercat is still on my bench system which i then have a esp32 for doing the other step and it didnt seem to matter the order or i have not played enough to cause errors.

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

Time to create page: 0.278 seconds
Powered by Kunena Forum