- Posts: 85
- Thank you received: 0
Ethercat-conf.xml with beckhoff el1008
1 year 10 months ago #316281
by vibram
Ethercat-conf.xml with beckhoff el1008 was created 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
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 to join the conversation.
1 year 10 months ago #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][/code]
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
Please Log in to join the conversation.
1 year 10 months ago #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>
<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 to join the conversation.
1 year 10 months ago #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
github.com/linuxcnc-ethercat/linuxcnc-et...mentation/DEVICES.md
Please Log in to join the conversation.
1 year 10 months ago #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:
my xml file is attached
and a print screen of what I have in Hal show. My pins are not visible
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
Attachment not found
Please Log in to join the conversation.
1 year 10 months ago #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?
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?
Please Log in to join the conversation.
1 year 10 months ago #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.
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.
Please Log in to join the conversation.
1 year 10 months ago #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
maybe too early in the file compared to my Mesa card? is it possible ?
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 ?
Please Log in to join the conversation.
1 year 10 months ago #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 to join the conversation.
- Soccer Kid
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 0
1 year 7 months ago #324944
by Soccer Kid
Replied by Soccer Kid on topic Ethercat-conf.xml with beckhoff el1008
Hello, I have been testing EL2809 module recently, and successfully lit. This is some reference, of course VID, PID part needs to be updated, my module is Beckford OEM。。。。。
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<!-- IO -->
<slave idx="1" type="generic" vid="000002" pid="af93052" configPdos="true">
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="0x7000" subIdx="01" bitLen="1" halPin="out-1" halType="bit"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<!-- IO -->
<slave idx="1" type="generic" vid="000002" pid="af93052" configPdos="true">
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="0x7000" subIdx="01" bitLen="1" halPin="out-1" halType="bit"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>
Please Log in to join the conversation.
Time to create page: 0.110 seconds
