- Posts: 6
- Thank you received: 0
Ethercat HAL driver
- tetw
- Offline
- New Member
-
Less
More
5 years 11 months ago #188990
by tetw
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.
Replied by tetw on topic Ethercat HAL driver
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.
Code:
dmesg | egrep EtherCAT
[ 10.316518] EtherCAT: Master driver 1.5.2 unknown
[ 10.316767] EtherCAT: 1 master waiting for devices.
[ 10.325681] ec_generic: EtherCAT master generic Ethernet device module 1.5.2 unknown
[ 10.325708] EtherCAT: Accepting 00:A0:D2:A5:C0:73 as main device for master 0.
[ 10.336070] EtherCAT 0: Starting EtherCAT-IDLE thread.
[ 10.336161] EtherCAT 0: Link state of ecm0 changed to UP.
[ 10.345732] EtherCAT WARNING 0: 1 datagram TIMED OUT!
[ 11.350801] EtherCAT WARNING 0: 125 datagrams TIMED OUT!
[ 12.354137] EtherCAT WARNING 0: 125 datagrams TIMED OUT!
[ 13.358682] EtherCAT WARNING 0: 121 datagrams TIMED OUT!
[ 14.151273] EtherCAT 0: Link state of ecm0 changed to DOWN.
[ 80.361852] EtherCAT: Requesting master 0...
[ 80.361861] EtherCAT: Successfully requested master 0.
[ 80.361899] EtherCAT 0: Domain0: Logical address 0x00000000, 0 byte, expected working counter 0.
[ 80.363775] EtherCAT 0: Master thread exited.
[ 80.363780] EtherCAT 0: Starting EtherCAT-OP thread.
[ 80.369196] EtherCAT WARNING 0: 97 datagrams TIMED OUT!
[ 80.397692] EtherCAT 0: Master thread exited.
[ 80.397706] EtherCAT 0: Starting EtherCAT-IDLE thread.
[ 80.397810] EtherCAT 0: Releasing master...
[ 80.397815] EtherCAT 0: Released.
[ 80.625045] EtherCAT WARNING: Datagram f6a2e250 (master-fsm) was SKIPPED 1 time.
[ 94.471306] EtherCAT: Requesting master 0...
[ 94.471315] EtherCAT: Successfully requested master 0.
[ 94.471382] EtherCAT ERROR 0 0:1: PDO entry 0x6000:01 is not mapped.
[ 94.471965] EtherCAT 0: Releasing master...
[ 94.471977] EtherCAT 0: Released.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 11 months ago - 5 years 11 months ago #188994
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi Tetw,
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
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
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 #188996
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi Nico,
Thanks for your reply !
You could also use the EtherCAT commands to identify all pdos directly.
It think for me that's the way to go.
I can set up a program that does the terminal command's to retrieve all the info.
Then setup the xml file. This program can be distributed as a Appimage.
Can you provide me a example of a servo example?
If you provide me the terminal command's with the required outputs and the correspondenting xml file. I can check that and write
the translation code for it quite quickly.
To other users, please do the same, so we can write the program.
If it all goes well, we can supply the program within the next "debian buster ethercat iso" release.
Thanks for your reply !
You could also use the EtherCAT commands to identify all pdos directly.
It think for me that's the way to go.
I can set up a program that does the terminal command's to retrieve all the info.
Then setup the xml file. This program can be distributed as a Appimage.
Can you provide me a example of a servo example?
If you provide me the terminal command's with the required outputs and the correspondenting xml file. I can check that and write
the translation code for it quite quickly.
To other users, please do the same, so we can write the program.
If it all goes well, we can supply the program within the next "debian buster ethercat iso" release.
Last edit: 5 years 11 months ago by Grotius.
The following user(s) said Thank You: Nico2017
- tetw
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
5 years 11 months ago #189101
by tetw
thanks for the quick answer, since the mac is correct the solution could be to re-install EtherCAT or change the source code installing this.
Replied by tetw on topic Ethercat HAL driver
Hi Grotius,Grotius wrote: Hi Tetw,
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
thanks for the quick answer, since the mac is correct the solution could be to re-install EtherCAT or change the source code installing this.
Code:
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:a0:d2:a5:c0:73 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:11:25:36:ab:91 brd ff:ff:ff:ff:ff:f
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 11 months ago #189123
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi,
One thing you can check is the following. You have used capital letters in your mac. They are different then your terminal output.
Maybe it can cause an issue.
This one is oke : 00:a0:d2:a5:c0:73
Installing your link is an option. But there is a iso you can use. Wich makes the full process about 10 minutes.
What does this command tell you : $ ethercat cstruct ?? or ./ethercat cstruct
I still don't know what is working at your place.
One thing you can check is the following. You have used capital letters in your mac. They are different then your terminal output.
Maybe it can cause an issue.
This one is oke : 00:a0:d2:a5:c0:73
Installing your link is an option. But there is a iso you can use. Wich makes the full process about 10 minutes.
What does this command tell you : $ ethercat cstruct ?? or ./ethercat cstruct
I still don't know what is working at your place.
- jc2ktr
- Offline
- Premium Member
-
Less
More
- Posts: 87
- Thank you received: 17
5 years 11 months ago #189213
by jc2ktr
Replied by jc2ktr on topic Ethercat HAL driver
Hi Jan,
may i ask you if you could upload your ethercat_conf.xml which you used in your Youtube video?
Have started to make my own for my Ethercat Stepper Driver and Stuck at the Section of the Control Word.
Thanks
Sven
may i ask you if you could upload your ethercat_conf.xml which you used in your Youtube video?
Have started to make my own for my Ethercat Stepper Driver and Stuck at the Section of the Control Word.
Thanks
Sven
Time to create page: 1.031 seconds