[etherlab-users] Working counter of EL9820

Florian Pose fp at igh-essen.com
Tue Dec 9 09:42:30 CET 2008


Hello,

On Tue, Dec 09, 2008 at 04:17:50PM +0900, Hobin Yoon wrote:
> I have a Beckhoff EL9820 slave board and its working counter seems to have a
> problem. Its actual/expected working counter is 3/5. Is it a master's bug or
> slave configuration's fault?

there is a bug in rc3 that calculated a wrong expected working counter,
that I fixed recently. But it only showed up, if the process data
spanned multiple datagrams. This is obviously not so in your case.

> I am using ec_master version 1.4.0-rc3. I burnt the sii with the default
> TwinCAT configuration file, which is, I believe, from
> C:\TwinCAT\Io\EtherCAT\Beckhoff FB1XXX.xml.
> 
> # ethercat pdo
> SM0: PhysAddr 0x0f02, DefaultSize    0, ControlRegister 0x44, Enable 9
>   RxPdo 0x1a00 "Byte 0"
>     Pdo entry 0x3101:01,  8 bit, "Output"
> SM1: PhysAddr 0x0f03, DefaultSize    0, ControlRegister 0x44, Enable 1
>   RxPdo 0x1a01 "Byte 1"
>     Pdo entry 0x3101:02,  8 bit, "Output"
> SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x00, Enable 1
>   TxPdo 0x1600 "Byte 0"
>     Pdo entry 0x3001:01,  8 bit, "Input"
>   TxPdo 0x1601 "Byte 1"
>     Pdo entry 0x3001:02,  8 bit, "Input"
> 
> # ethercat slaves
> 0  0:0  PREOP  +  FB1111 16 Ch. Dig. In-/Output 2xMII
> 
> EtherCAT: Requesting master 0...
> EtherCAT: Successfully requested master 0.
> EtherCAT: Domain0: Logical address 0x00000000, 4 byte, expected working
> counter 5.
> EtherCAT:   Datagram domain0-0: Logical offset 0x00000000, 4 byte, type LRW.
> EtherCAT: Master thread exited.
> EtherCAT: Starting EtherCAT-OP thread.
> EtherCAT: Domain 0: Working counter changed to 3/5.
> EtherCAT: Slave states: OP.

For this configuration, an expected working counter of 5 is correct, as
in the used LRW datagram, an output sync manager counts 2 and an input
sync manager counts 1.

Mhmm, seems there were no errors during the slave configuration. Could
you post the output of 'ethercat slave -v' and 'ethercat config -v'? Are
the PDOs fixed?

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the Etherlab-users mailing list