Beckhoff ethercat 64 with bit linuxcnc, How to install.

More
3 years 11 months ago #257353 by Sviper
Hello
think we can do it.
Please make a new Twincat Projekt.
Scan the Ethercat and Save the Projekt.
The please send us the Projekt File as ZIP.
So I can open it and search for a couple of Information.

THX

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

More
3 years 11 months ago - 3 years 11 months ago #257356 by Sviper
The EL1809 is the same like EP1819 you can use my xml.
You have to chance the pid=".. for the EL1809.

Make a new config with pnconf for LPT Port or so. Then start with basic ethercat impementation.
Last edit: 3 years 11 months ago by Sviper.

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

More
3 years 11 months ago - 3 years 11 months ago #257369 by rodw

The EL1809 is the same like EP1819 you can use my xml.
You have to chance the pid=".. for the EL1809.

Make a new config with pnconf for LPT Port or so. Then start with basic ethercat impementation.
 
What he means is to type ethercat slaves --verbose which reports the vendor id (vid) and the product Id (pid). The XML vid should not change as they are both Beckhoff devices but you need to change the pid to what is reported.

Building digital io xml files is very straight forward. Here is one (slave 2) we built recently that has 8 bit values for a block of inputs or outputs when you have a series if single bits github.com/rodw-au/linuxcnc-cia402/blob/...ercat-conf-diewu.xml

Where your pdos say:
Code:
SM0: PhysAddr 0x1000, DefaultSize 2, ControlRegister 0x00, Enable 1 TxPDO 0x1a00 "Channel 1" PDO entry 0x6000:01, 1 bit, "Input"
you end up with something like:
Code:
<pdo idx="1a00">                <!-- Digtial Outputs (DIEWU_EtherCAT_DIO_16)-->    <pdoEntry idx="6000" subIdx="01" bitLen="1" halPin="Input-01" halType="bit">

where the hal pin name is arbitrary
Last edit: 3 years 11 months ago by rodw.

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

More
3 years 11 months ago #257395 by boyzo
Thank you all. It seems it is doable.

Easy question:
When I create all .xml files, do I merge them all to an single ethercat.xml? Or I can include them from 'global' one? Or I can use several loadusr command to read them one by one?

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

More
3 years 11 months ago #257402 by rodw
All the examples Ive seen just show one xml file'. Sometimes its useful to reduce the number of devices on the bus to get something going with a shorter xml file, then merge together later
 

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

More
3 years 11 months ago - 3 years 11 months ago #257426 by Sviper
Hello boyzo,

I will send you my Example Ethercat Maschine tonight.
Then you can start with your ethercat xml.
1. Only EK1100 --> start LCNC and watch in Hal monitor . When lcec is in OP then you can go head.
2. EK1100 + EL1809 (Copy the XML part from EP1819, change the <slave idx="2" to "1" and change the pid to x071b3052 and change Name EP..to EL. When lcec is in OP then you can go head.
Last edit: 3 years 11 months ago by Sviper.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.144 seconds
Powered by Kunena Forum