[etherlab-users] CX CPU as Master Linux Slave
Graeme Foot
Graeme.Foot at touchcut.com
Mon May 16 00:19:19 CEST 2016
Hi,
What type of computer are you using as the Linux master? If it is a Beckhoff CXxxxx computer via the EBus module it will need the CCAT (or similar) network card driver. However, it sounds like your Linux master is not a CXxxxx computer and you already have the EtherCAT networking running.
I have not used the CX8010 so can’t offer too much advice but from what I understand it ring fences all of the IO on its EBus with its own logic to control it. You then have to choose what IO (or interface) you want to expose via its slave interface that the Linux EtherCAT master will access.
What does the ethercat cstruct command return?
Regards,
Graeme.
From: David Jiménez Mejías [mailto:david.jimenez at gtc.iac.es]
Sent: Friday, 13 May 2016 11:12 p.m.
To: Graeme Foot; etherlab-users at etherlab.org
Subject: RE: [etherlab-users] CX CPU as Master Linux Slave
Hi Graeme,
thanks for your answer.
I'm trying to use a CX8010 as TwinCAT Master of its own net. Over it is a Linux PC running the Master Linux 1.5.2. We would like to have the CX8010 as slave from the Master Linux sharing In/Outs PDOs.
By the moment I keep running the CX8010 as normal, with the slave pdo configuration just done.
From the Master Linux I see the slave at PREOP (with Error), with this dmesg outputs:
[2061710.482018] EtherCAT 0: 0 slave(s) responding on main device.
[2061710.482020] EtherCAT 0: Stopping EoE thread.
[2061710.482038] EtherCAT 0: EoE thread exited.
[2061710.499211] EtherCAT 0: 1 slave(s) responding on main device.
[2061710.499214] EtherCAT 0: Slave states on main device: PREOP.
[2061710.499718] EtherCAT 0: Scanning bus.
[2061710.640237] EtherCAT 0: Bus scanning completed in 141 ms.
[2061710.640240] EtherCAT 0: Using slave 0 as DC reference clock.
[2061710.640242] EtherCAT 0: Starting EoE thread.
[2061710.655820] IPv6: ADDRCONF(NETDEV_UP): eoe0s0: link is not ready
[2061710.666862] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[2061710.667536] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
[2061710.670956] EtherCAT 0-0: Acknowledged state PREOP.
[2061713.541497] EtherCAT WARNING 0: 1 datagram TIMED OUT!
[2061713.664881] EtherCAT WARNING 0-0: CoE Emergency Request received:
Error code 0xA000, Error register 0x02, data:
[2061713.664885] EtherCAT DEBUG: 0E 04 00 04 00
[2061713.848637] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:01!
[2061713.848641] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.852689] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:02!
[2061713.852693] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.856649] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:03!
[2061713.856653] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.860720] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:04!
[2061713.860724] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.864652] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:05!
[2061713.864655] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.868724] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:06!
[2061713.868728] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.872634] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:07!
[2061713.872645] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.876712] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:08!
[2061713.876716] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.880657] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:09!
[2061713.880660] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.884698] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0A!
[2061713.884701] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.888636] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0B!
[2061713.888640] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.892574] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0C!
[2061713.892577] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.896793] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0D!
[2061713.896797] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061713.900671] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0E!
[2061713.900674] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".
[2061716.623870] EtherCAT WARNING 0: 1 datagram TIMED OUT!
Some months a go I get to configure correctly typical cards with the EK1100 bus coupler. But the way to proceed looks diferent.
About the CCAT driver ... i just compile all without this enable, it isn't on the pdf manual. Then could be help us recompiling with that flag on?
Thank you very much
King regards
David Jiménez Mejías
-----Original Message-----
From: Graeme Foot <Graeme.Foot at touchcut.com<mailto:Graeme.Foot at touchcut.com>>
To: David Jiménez Mejías <david.jimenez at gtc.iac.es<mailto:david.jimenez at gtc.iac.es>>, "etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>" <etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>>
Date: Tue, 10 May 2016 22:28:49 +0000
Subject: RE: [etherlab-users] CX CPU as Master Linux Slave
Hi,
We use a Beckhoff CX2020 with a CX2100-0004 power module with EBus. What do you mean by slave CPU? Are you referring to the CX2100 module?
What version of the master are you using? There is a CCAT driver written by Patrick Bruenn in the “stable-1.5” branch, but it is not in the “default” branch. Are you using this? If not, to use it you will need to build it with the master with the ENABLE_CCAT config flag (I think).
I don’t use this driver as I wrote my own before it was available but I assume you use it in the same fashion as any of the other network card drivers, where you load the network driver modules you want to load (eg with modprobe). If you load the CCAT module first then the master should use it by preference (when you use the generic MAC address of FF:FF:FF:FF:FF:FF) rather than needing to specify a fixed MAC address.
If you are not using the CCAT driver above, are you writing your own?
I have attached a patch for the driver I use. It is written for EtherCat master revision 2526 (stable-1.5) and Linux Kernel 2.6.32. It may be useful as a reference.
Regards,
Graeme.
From: etherlab-users [mailto:etherlab-users-bounces at etherlab.org] On Behalf Of David Jiménez Mejías
Sent: Wednesday, 11 May 2016 1:24 a.m.
To: etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
Subject: [etherlab-users] CX CPU as Master Linux Slave
Hi everyone!
I would like to share some data from a Beckhoff CPU, CX line, by the slave EtherCAT Port. Using a EtherLab Master Linux.
Is there someone with some experience on that issue?
I configure the TxPDO and RxPDO in the Slave CPU, and the only way that I get the Linux Master reads its PDOs is with the slave CPU on config mode. I'm studing this procedure from zero, then, if there is someone with some informatuion about it I will so grateful.
Thanks in advance
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Jiménez Mejías
----------
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a http://www.gtc.iac.es/gtc/legal_es.php
WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult http://www.gtc.iac.es/gtc/legal_es.php
----------
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a http://www.gtc.iac.es/gtc/legal_es.php
WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult http://www.gtc.iac.es/gtc/legal_es.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20160515/869b6c44/attachment-0003.htm>
More information about the Etherlab-users
mailing list