[etherlab-users] EL5101 with DC

Florian Pose fp at igh-essen.com
Wed Oct 28 11:43:27 CET 2009


On Wed, Oct 28, 2009 at 09:26:13AM +0100, Peter van Knippenbergh wrote:
> ecrt_slave_config_dc(sc, 0x0320, 250000, 0, 250000 , 0); 
> 
> When I add this line to my application I got the following dmesg

Do you also synchronize the slaves cyclically, like in the dc_user
example?

> I saw in the IGH driver (revision 1824) that 2 bytes are written to a 1 byte
> register
> 
>     ec_datagram_fpwr(datagram, slave->station_address, 0x0980, 2); ........

This is ok, because the AssignActivate word (0x0320) will be written
correctly to the registers 0x0980 and 0x0981, where the '0x03' will be the
content of 0x0981, what means that SYNC0 and SYNC1 impulses will be
generated.

> But my main issue, how can I enable DC on the EL5101 with the IGH master.

It is strange, that the synch mode SDO entry 0x1c32:1 contains 1 (synchronous to
SM2 event). It must be 2 (DC SYNC0). Please try to add an SDO
configuration that sets this SDO entry (ecrt_slave_config_sdo8(sc,
0x1c32, 1, 2)).

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the Etherlab-users mailing list