Ethercat-conf.xml with beckhoff el1008

More
1 year 10 months ago #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.

More
1 year 10 months ago - 1 year 10 months ago #316283 by daveyr
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:
[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: 1 year 10 months ago by daveyr. Reason: Removed color codes from code block
The following user(s) said Thank You: vibram

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

More
1 year 10 months ago #316284 by daveyr
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.

More
1 year 10 months ago #316287 by daveyr
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
1 year 10 months ago - 1 year 10 months ago #316315 by vibram
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
 
Last edit: 1 year 10 months ago by vibram.

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

More
1 year 10 months ago - 1 year 10 months ago #316320 by daveyr
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: 1 year 10 months ago by daveyr.

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

Time to create page: 0.663 seconds
Powered by Kunena Forum