- Posts: 5
- Thank you received: 0
Ethercat HAL driver
One Question:
www.etherlab.org/download/ethercat/ethercat-1.5.2.pdf say on page 23:
It is not possible to use [the generic driver] in-kernel realtime extensions like RTAI with the generic driver, because the network stack code uses dynamic memory allocations and other things, that could cause the system to freeze in realtime context.
Do I need a 'real' driver to be able to run a axis in real time? How much slower is the generic driver?
Please Log in to join the conversation.
I remember a document where the timing details where provided.
You see, it's almost equal between userspace and kernelspace.
Attachment not found
It's true you can not mix rtai (.ko) with the generic (.so) driver.
How much slower is the generic driver?
I think it's 2-5 nanosec slower if you take the 4 ecrt steps together.
Please Log in to join the conversation.
I have'n found a solution for upload "PDO 0x6000"
Another inaccuracy when I execute the command
Please Log in to join the conversation.
Did you succeed to load and run a simple config like the EK1100 only?
Bustime in xml file : 1000000 is ok.
Please Log in to join the conversation.
i managed to get LinuxCNC with ethercat driver up and Running thanks to Grotius.
Is there anywhere a Tutorial how to add Ethercat devices. I have an RTelligent Ethercat (COE) Capable ECT60 Stepper Driver with the Corresponding .XML file. And a Beckhoff EP2316-0008 8 INPUTS / 8 Outputs. How should the ethercat_conf.XML look to get the drive/io module usable.
I have tried to make the XML with the tutorial for the IndraDrives from the LinuxCNC wiki:
indraDrive tutorial
Attachment not found
If I do a ethercat slaves in Terminal it writes following output:
0 0:0 PREOP + ECT60(COE)
1 0:1 PREOP + EP2316-0008 8 K. Dig. Ein, 10�s, 8 K. Dig. Aus 24V, 0,5A, Diagn
Please Log in to join the conversation.
Is there anywhere a Tutorial how to add Ethercat devices.
No not really.
To all users. :laugh:
It is time to write an application that writes the xml file automaticly for the lcec driver.
This will save everyone over here lot's of time. For a few, it can saves weeks.
I mention in general, that the application's at linuxcnc are becoming more complex and advanched over time.
I have experience with reading and writing xml files in c++. It's really easy to do that.
But i need help from you guy's to make the software details.
Who is for making the software and can help provide the ethercat info for the different servo drives?
I have non experience with twincat. Otherwise maybe i had the logic to write some code, but now it's that we can let the software
do a terminal command, then retrieve a slave list. At that moment we have to generate the xml file.
Please Log in to join the conversation.
I have seen your video on Youtube. Nice work. Quite complex to understand the ethercat bus.
Please Log in to join the conversation.
I agree with you that the parametrization of the EtherCAT xml file for linuxcnc EtherCAT driver can be a hard task.
I believe you can get a lot (all) of information from the ESI file (xml format) usually provided by manufacturers at request and also by the use of TwinCAT to read those EtherCAT parameters. But I believe that TwinCAT is actually looking into those ESI file to get a default configuration, more precisely if you are using TwinCAT offline not connected to any physical slave and simulate an EtherCAT master - slaves topology.
Some motor drives or slaves will need to be configured via the manufacturer software/application to configure the EtherCAT communication (inputs outputs and so on). Once parametrized you could use TwinCAT to connect yourself to the slave and identify the different informations. Then you have to convert it into usable information for the linuxcnc EtherCAT .xml file.
You could also use the EtherCAT commands to identify all pdos directly.
Nicolas
Please Log in to join the conversation.
Hi Grotius,Grotius wrote: Hi Tetw,
Did you succeed to load and run a simple config like the EK1100 only?
Bustime in xml file : 1000000 is ok.
I know things have changed I don't know why, but it only works with “EK1100” even by changing the parameter “appTimePeriod” together with the thread of the hal file, I tried to unplug the result does not change.
Please Log in to join the conversation.
The bus is trying to connect to mac adres : 00:A0:D2:A5:C0:73
Look if you have the correct mac adres in your ethercat config file. $ ip addr show
I am not sure it's working correct.
Your output : ERROR 0 0:1: PDO entry 0x6000:01 is not mapped. Someone has a similar problem here :
etherlab-dev.etherlab.narkive.com/bqcnVQ...030-01-is-not-mapped
What does this command tell you : $ ethercat cstruct
Please Log in to join the conversation.
