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 to join the conversation.

More
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]

Please Log in 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 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 to join the conversation.

More
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
 

Attachment not found

Please Log in to join the conversation.

More
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?

 

Please Log in to join the conversation.

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

Please Log in to join the conversation.

More
1 year 10 months ago #316332 by vibram
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 ?

Please Log in to join the conversation.

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

More
1 year 7 months ago #324944 by Soccer Kid
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>

Please Log in to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum