[etherlab-users] Trouble with SDB-40-100

Frank, Matthias Matthias.Frank at tq-group.com
Wed Dec 13 08:25:50 CET 2017


Hi Gavin,

thanks for your answer.
I'am using ecrt_slave_config_sdoXX to write to 0x1c1x. I did not write it directly. But when a trace the ethercat communication with wireshark during program start, writing to  0x1c12, 0x1c13, 0x1a01,.. occurs like in a loop, see ethercat.7z (there is a wireshark  dump file inside)

matthias

Von: Gavin Lambert [mailto:gavinl at compacsort.com]
Gesendet: Mittwoch, 13. Dezember 2017 08:09
An: Frank, Matthias <Matthias.Frank at tq-group.com>; etherlab-users at etherlab.org
Betreff: RE: Trouble with SDB-40-100

Don't try to write to 0x16xx, 0x1Axx, or 0x1C1x.  This is what ecrt_slave_config_pdos and ecrt_domain_reg_pdos do for you internally (among other things).  See the examples.

From: etherlab-users [mailto:etherlab-users-bounces at etherlab.org] On Behalf Of Frank, Matthias
Sent: Wednesday, 13 December 2017 19:32
To: etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
Subject: [etherlab-users] Trouble with SDB-40-100


Hi all,



I'm trying to use a SDB-40-100 servo drive with CoE.

I can read and write Cia402 and EtherCAT registers manually using the ethercat cli program. But when I start the program position.c the master don't switch the slave device to SAFEOP/OP. The slave is still in PREOP.



By tracing the EtherCAT communication, writing to CiA registers (e.g. 0x1c12, 0x1c13, 0x1a01, 0x6060 ) is repeated.

After changing the slave's state manually to SAFEOP a lot of errors occur in the kernel log.



What is going wrong? The device will work with other masters like Twincat.



System configuration

Linux 3.4.69-rt85

EtherCAT 1.5.2 with generic Ethernet (tg3)



Thanks for your advice,

Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20171213/f886e70f/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethercat.7z
Type: application/octet-stream
Size: 625805 bytes
Desc: ethercat.7z
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20171213/f886e70f/attachment-0004.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: position.c
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20171213/f886e70f/attachment-0004.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20171213/f886e70f/attachment-0004.sig>


More information about the Etherlab-users mailing list