- Posts: 790
- Thank you received: 0
Ethercat HAL driver
edit the file rules in ec-debianize/etherlabmaster/debian , remove "--disable-eoe" in line 5.
then build and install the ec master packackes again. maybe you need to set the mac adress and drivers in etc/ethercat again, after this.
then test if the master works "ethercat slaves", test if linuxcnc with ethercat behaves normal, and check if "ethercat eoe" exist then we can go further.
i think saschi dropped eoe support, for simplifying it, because with a lot of eoe slaves you would be confused by an flood of eth interfaces....
Please Log in to join the conversation.
db1981 wrote: upppps, don't know why ....
edit the file rules in ec-debianize/etherlabmaster/debian , remove "--disable-eoe" in line 5.
then build and install the ec master packackes again. maybe you need to set the mac adress and drivers in etc/ethercat again, after this.
then test if the master works "ethercat slaves", test if linuxcnc with ethercat behaves normal, and check if "ethercat eoe" exist then we can go further.
i think saschi dropped eoe support, for simplifying it, because with a lot of eoe slaves you would be confused by an flood of eth interfaces....
Well i try it at the moment,
and let you know if it is succesfull.
Thanks
so now i was succesfull to get eoe working
lcnc@LinuxCNC-M75q:~$ ethercat slaves
0 8:0 PREOP + 0x00000024:0x00242c04
1 8:1 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
2 8:2 PREOP + EL1018 8K. Dig. Eingang 24V, 10�s
3 8:3 PREOP + EL1018 8K. Dig. Eingang 24V, 10�s
4 8:4 PREOP + EL1018 8K. Dig. Eingang 24V, 10�s
5 8:5 PREOP + EL2004 4Ch. Dig. Output 24V, 0.5A
6 8:6 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
7 8:7 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
8 8:8 PREOP + ECT60V202(COE)
lcnc@LinuxCNC-M75q:~$ ethercat eoe
Master0
Interface Slave State RxBytes RxRate TxBytes TxRate TxQueue
eoe0a8 0 up 0 0 2624 1656 0/100
lcnc@LinuxCNC-M75q:~$
but how do i get the IndraworksDS to connect to my drive, when i plug in a patch cable to my Network the ethercat bus seems to be terminated
Please Log in to join the conversation.
did you pluged the patch cable in the ethercat network? this will not work...
You would need an second network port on your pc. The ec master now has created an virtual network interface for your eoe device : eoe0a8. (if you type ip addr it shoud be listed...)
What you now need is (virtual)bridge between your second hardware ethernet interface and the eoe network interfaces. Then you can connect from your indradrive pc to the virtual eoe interface over your wifi or second lan port...
I'm not an network administrator, but i reads simple. google "debian bridge interfaces"
Please Log in to join the conversation.
db1981 wrote: strike......
did you pluged the patch cable in the ethercat network? this will not work...
You would need an second network port on your pc. The ec master now has created an virtual network interface for your eoe device : eoe0a8. (if you type ip addr it shoud be listed...)
What you now need is (virtual)bridge between your second hardware ethernet interface and the eoe network interfaces. Then you can connect from your indradrive pc to the virtual eoe interface over your wifi or second lan port...
I'm not an network administrator, but i reads simple. google "debian bridge interfaces"
Well then this was step one, now i need to buy another network card to use it, because my built in wireless adapter don't work under linux :pinch: but this helped me a lot now.
Thank you very much
Please Log in to join the conversation.
EtherCAT WARNING: Datagram 0000000026ab63a1 (master-fsm) was SKIPPED 1 time
and error ....
[ 7773.445798] EtherCAT 0: Bus scanning completed in 268 ms.
[ 7773.445803] EtherCAT 0: Using slave main-0 as DC reference clock.
[ 7773.466036] EtherCAT 0: Slave states on main device: INIT.
[ 7773.490397] EtherCAT 0: Slave states on main device: PREOP.
[ 7774.374797] igb 0000:05:00.0 enp5s0: igb: enp5s0 NIC Link is Down
[ 7774.376414] EtherCAT 0: Link state of ecm0 changed to DOWN.
[ 7774.376418] EtherCAT WARNING 0: 2 datagrams TIMED OUT!
[ 7774.380472] EtherCAT ERROR 0-main-0: Failed to receive AL state datagram: Datagram error.
[ 7774.384540] EtherCAT 0: 0 slave(s) responding on main device.
Precisely this happened: I turned off linuxcnc and error60 came out in the drives which means: data receiving abnormal in Op status.
Without thinking I turned off the power and started again without turning off the pc .... so I had the inconvenience of not being able to have the drives in OP anymore but only in PREOP.
I am attaching the dmesg.txt to see if you can help me understand the origin of the problem
thanks
Please Log in to join the conversation.
so with command ethercat slaves -p0:
but is not really on OP state (if try to moove joint 0 I obtain following error) so seems etherlab glue poit to different device .....
regards
bkt
Please Log in to join the conversation.
this concerns the problem discussed last week? Or you not able to get your system running anymore?
What dmesg tells us:
-you have 8 ??? network interfaces ????
-interface enp5s0 is used for ethercat and is tryed to get configured by the network manager. Try to remove this interface from the network configuration, it should be exclusive for ethercat.
-you have restarted linuxcnc many times ??
-physical link on interface enp5s0 (ethercat) is many times lost. check for grounding /shielding , qualitiy of patchcables (stp)
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
db1981 wrote: @bkt
this concerns the problem discussed last week? Or you not able to get your system running anymore?
My machine work well but sometime some slave not go to OP state.
db1981 wrote: What dmesg tells us:
-you have 8 ??? network interfaces ???? yes
-interface enp5s0 is used for ethercat and is tryed to get configured by the network manager. Try to remove this interface from the network configuration, it should be exclusive for ethercat. If try to leave it from network configuration ethercet not start at all .... plus in /etc/default/ethercat enp5s0 is just in manual mode (iface enp5s0 inet manual)
-you have restarted linuxcnc many times ?? yes 5/6 time in all days
-physical link on interface enp5s0 (ethercat) is many times lost. check for grounding /shielding , qualitiy of patchcables (stp)
Please Log in to join the conversation.
