- Posts: 6
- Thank you received: 0
Ethercat HAL driver
- tetw
- Offline
- New Member
-
Less
More
5 years 11 months ago #188763
by tetw
Replied by tetw on topic Ethercat HAL driver
Hi guys, I don't have much experience on EtherCAT I followed the
installation
the my configuration:
I've some problems when I load "loadrt lcec" in hal
reading the posts preceding the error "PDO entry 0x6000"
I only encountered when I insert the line with "EL2004" in the configuration XML.
I have'n found a solution for upload "PDO 0x6000"
Another inaccuracy when I execute the command
I don't see the 2 "ES9100" present between positions 4-5 and 15-16 even disconnecting the servo insert them first WHY?
Code:
uname -a
Linux PcLcnc 4.9.0-8-rt-686-pae #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u6 (2018-10-08) i686 GNU/Linux
Code:
Failed to register PDO entry: No such file or directory
LCEC: master 0 PDO entry registration failed
lcec: rtapi_app_main: Invalid argument (-22)
/home/operatore/Scrivania/prova.hal:4: waitpid failed /usr/bin/rtapi_app lcec
/home/operatore/Scrivania/prova.hal:4: /usr/bin/rtapi_app exited without becoming ready
/home/operatore/Scrivania/prova.hal:4: insmod for lcec failed, returned -1
Code:
dmesg | egrep EtherCAT
[ 10.362827] EtherCAT: Master driver 1.5.2 unknown
[ 10.363074] EtherCAT: 1 master waiting for devices.
[ 10.369886] ec_generic: EtherCAT master generic Ethernet device module 1.5.2 unknown
[ 10.369912] EtherCAT: Accepting 00:A0:D2:A5:C0:73 as main device for master 0.
[ 10.380067] EtherCAT 0: Starting EtherCAT-IDLE thread.
[ 10.380162] EtherCAT 0: Link state of ecm0 changed to UP.
[ 10.389778] EtherCAT WARNING 0: 1 datagram TIMED OUT!
[ 11.391141] EtherCAT WARNING 0: 124 datagrams TIMED OUT!
[ 12.393481] EtherCAT WARNING 0: 125 datagrams TIMED OUT!
[ 13.392298] EtherCAT WARNING 0: 123 datagrams TIMED OUT!
[ 14.393714] EtherCAT WARNING 0: 125 datagrams TIMED OUT!
[ 15.328642] EtherCAT 0: Link state of ecm0 changed to DOWN.
[ 1240.392727] EtherCAT: Requesting master 0...
[ 1240.392737] EtherCAT: Successfully requested master 0.
[ 1240.393919] EtherCAT ERROR 0 0:1: PDO entry 0x6000:01 is not mapped.
[ 1240.394471] EtherCAT 0: Releasing master...
[ 1240.394500] EtherCAT 0: Released.
[ 1810.942216] EtherCAT: Requesting master 0...
[ 1810.942224] EtherCAT: Successfully requested master 0.
[ 1810.948244] EtherCAT ERROR 0 0:1: PDO entry 0x6000:01 is not mapped.
[ 1810.949304] EtherCAT 0: Releasing master...
[ 1810.949378] EtherCAT 0: Released.
I have'n found a solution for upload "PDO 0x6000"
Another inaccuracy when I execute the command
Code:
ethrecat slave
0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
2 0:2 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
3 0:3 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
4 0:4 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
5 0:5 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
6 0:6 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
7 0:7 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
8 0:8 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
9 0:9 PREOP + EL3142 2K. Ana. Eingang 0-20mA
10 0:10 PREOP + EL4132 2Ch. Ana. Ausgang +/-10V, 16bit
11 0:11 PREOP + EL9410 E-Bus Netzteilklemme (Diagnose)
12 0:12 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
13 0:13 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
14 0:14 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
15 0:15 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
16 0:16 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
17 0:17 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
18 0:18 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
19 0:19 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
20 0:20 PREOP + Infranor Xtrapuls v2.2 (CoE)
21 0:21 PREOP + Infranor Xtrapuls v2.2 (CoE)
22 0:22 PREOP + Infranor Xtrapuls v2.2 (CoE)
23 0:23 PREOP + Infranor Xtrapuls v2.2 (CoE)
24 0:24 PREOP + Infranor Xtrapuls v2.2 (CoE)
25 0:25 PREOP + Infranor Xtrapuls v2.2 (CoE)
26 0:26 PREOP + Infranor Xtrapuls v2.2 (CoE)
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 11 months ago #188852
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi Tetw,
Did you succeed to load and run a simple config like the EK1100 only?
Bustime in xml file : 1000000 is ok.
Did you succeed to load and run a simple config like the EK1100 only?
Bustime in xml file : 1000000 is ok.
- jc2ktr
- Offline
- Premium Member
-
Less
More
- Posts: 87
- Thank you received: 17
5 years 11 months ago #188873
by jc2ktr
Replied by jc2ktr on topic Ethercat HAL driver
Hi folks,
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
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
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
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
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 11 months ago - 5 years 11 months ago #188890
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi Jc2ktr,
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.
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.
Last edit: 5 years 11 months ago by Grotius.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 11 months ago - 5 years 11 months ago #188891
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi JanMrlth,
I have seen your video on Youtube. Nice work. Quite complex to understand the ethercat bus.
I have seen your video on Youtube. Nice work. Quite complex to understand the ethercat bus.
Last edit: 5 years 11 months ago by Grotius.
- Nico2017
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 26
5 years 11 months ago #188952
by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi @Grotius,
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
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
Time to create page: 0.210 seconds