[etherlab-users] Problem setting up Etherlab Master with Wago 750-354

BOESEL Diego Fernandes Diego.BOESEL at csem.ch
Mon Jan 28 14:26:12 CET 2013


Hello all,

So, it seems it started to work. 

I saw an old entry in the list where another user, with the same RT-PREEMPT and slave, was having the same problem:
http://lists.etherlab.org/pipermail/etherlab-users/2011/001177.html

I tried his solution (update the kernel):
http://lists.etherlab.org/pipermail/etherlab-users/2011/001182.html
and in addition to that, I started to use the e1000e driver (which corresponds to my hardware) instead of the generic driver.

Now, it seems to work (not fully tested though). At least, I can read SII and the XML from the slave. 

Thanks for your collaboration.

Diego
 
-----Original Message-----
From: etherlab-users-bounces at etherlab.org [mailto:etherlab-users-bounces at etherlab.org] On Behalf Of BOESEL Diego Fernandes
Sent: Friday, January 25, 2013 4:41 PM
To: etherlab-users at etherlab.org
Subject: Re: [etherlab-users] Problem setting up Etherlab Master with Wago 750-354

Thank you for your inputs.

I believe (not sure about that) it is something related with what Mike said, i.e., that the EEPROM was not burned with the SII. 
I used dmesg as Derrill suggested, and here is the output:

[30102.942757] EtherCAT: Master driver 1.5.1 0f7a243b03e4 [30102.942838] EtherCAT: 1 master waiting for devices.
[30102.947491] ec_generic: EtherCAT master generic Ethernet device module 1.5.1 0f7a243b03e4 [30102.947500] EtherCAT: Accepting device 00:15:58:31:5E:7C for master 0.
[30102.947508] ec_generic: Binding socket to interface 2 (eth0).
[30102.954274] EtherCAT 0: Starting EtherCAT-IDLE thread.
[30102.954323] EtherCAT 0: Link state changed to UP.
[30102.956267] EtherCAT WARNING 0: 1 datagram TIMED OUT!
[30102.957270] EtherCAT 0: 1 slave(s) responding.
[30102.957272] EtherCAT 0: Slave states: INIT.
[30102.960309] EtherCAT 0: Scanning bus.
[30102.967301] EtherCAT ERROR 0-0: Reception of SII read datagram failed: No response.
[30102.967307] EtherCAT ERROR 0-0: Failed to determine SII content size: Reading word offset 0x0040 failed. Assuming 64 words.
[30102.968298] EtherCAT ERROR 0-0: Reception of SII read datagram failed: No response.
[30102.968303] EtherCAT ERROR 0-0: Failed to fetch SII contents.
[30102.968305] EtherCAT 0: Bus scanning completed in 11 ms.
[30105.001035] EtherCAT WARNING 0: 93 datagrams TIMED OUT!
[30105.001042] EtherCAT WARNING 0: 93 datagrams UNMATCHED!
[30105.212030] EtherCAT ERROR 0-0: Failed to receive AL state datagram: Datagram timed out.
[30106.228284] EtherCAT WARNING 0: 65 datagrams TIMED OUT!
[30106.228291] EtherCAT WARNING 0: 65 datagrams UNMATCHED!

So, the problem started in the reception of the SII read datagram, when there was no response. Could this be a problem of my configuration or definitelly the manufacturer of the slave that did not burn the EEPROm with the SII?

Thanks
Diego
________________________________________
Von: Richard Hacker [ha at igh-essen.com]
Gesendet: Freitag, 25. Januar 2013 14:34
An: BOESEL Diego Fernandes
Cc: etherlab-users at etherlab.org
Betreff: Re: [etherlab-users] Problem setting up Etherlab Master with Wago 750-354

Hello

are you sure you want to try this slave? This is a K-bus to EtherCAT coupler and it will take you quite some effort to configure this thing before you get to see any PDO's. Read the manual for the slave!

Regards
Richard

Am 01/25/2013 09:47 AM, schrieb BOESEL Diego Fernandes:
> Hello,
>
>
>
> 1 - PROBLEM:
> I am trying to set-up a Ethercat fieldbus using Etherlab as master and a Wago 750-354 as a slave. However, all info I get from the Wago slave is null. I am almost sure there is something wrong here.
>
> Here are some screenshoots:
>
> #sudo /etc/init.d/ethercat start
> Starting EtherCAT master 1.5.1  done
>
> #sudo /etc/init.d/ethercat status
> Checking for EtherCAT master 1.5.1
> Master0  running
>
> #/opt/etherlab/bin/ethercat slave
> 0  0:0  INIT  E  0x00000000:0x00000000
>
> #/opt/etherlab/bin/ethercat xml
> <?xml version="1.0" ?>
> <EtherCATInfo>
>    <!-- Slave 0 -->
>    <Vendor>
>      <Id>0</Id>
>    </Vendor>
>    <Descriptions>
>      <Devices>
>        <Device>
>          <Type ProductCode="#x00000000" RevisionNo="#x00000000"></Type>
>        </Device>
>      </Devices>
>    </Descriptions>
> </EtherCATInfo>
>
>
>
> 2 - SYSTEM
> #uname -a
> Linux dfb-laptop 2.6.31-11-rt #154-Ubuntu SMP PREEMPT RT Wed Jun 9 
> 12:28:53 UTC 2010 i686 GNU/Linux
>
>
>
> 3 - INSTALLATION
> #./configure --enable-cycles --enable-generic #make #make modules
>
> # sudo make install
> # sudo make modules install
> # sudo depmod
>
> #cd /opt/etherlab
> #cp etc/sysconfig/ethercat /etc/sysconfig/ #ln -s 
> /opt/etherlab/etc/init.d/ethercat /etc/init.d/ #insserv ethercat
>
> Then, I configure /etc/sysconfig/ethercat with 
> MASTER0_DEVICE="00:15:58:31:5e:7c DEVICE_MODULES="generic"
>
>
>
> Does anyone know what I am doing wrong that I can not read correctly my slave device?
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>

Mit freundlichem Gruß

Richard Hacker

--
------------------------------------------------------------------------

Richard Hacker M.Sc.
richard.hacker at igh-essen.com
Tel.: +49 201 / 36014-16

Ingenieurgemeinschaft IgH
Gesellschaft für Ingenieurleistungen mbH Heinz-Bäcker-Str. 34
D-45356 Essen

Amtsgericht Essen HRB 11500
USt-Id.-Nr.: DE 174 626 722
Geschäftsführung:
- Dr.-Ing. T. Finke,
- Dr.-Ing. W. Hagemeister
Tel.: +49 201 / 360-14-0
http://www.igh-essen.com

------------------------------------------------------------------------
_______________________________________________
etherlab-users mailing list
etherlab-users at etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users



More information about the Etherlab-users mailing list