L_ETC_ReadErrCnt2: EtherCAT fault is not displayed (corrected from V3.26)

Corrected from:
Library L_IODrvEtherCAT from V3.26
Version of the device description in the PLC Designer project:
Cabinet Controller c300 from V3.21.3
Cabinet Controller 3200C from V3.21.3
Panel Controller p300 from V3.21.3
Panel Controller p500 from V3.21.3
 
Cabinet Controller c520 from V1.9.0
Cabinet Controller c550 from V1.9.0

Response of the new version:
The function block 'L_ETC_ReadErrCnt2' directly indicates a currently pending fault in EtherCAT bus operation after an edge at the 'xExecute' input.
 
What happens?
The function block 'L_ETC_ReadErrCnt2' from the library 'L_IODrvEtherCAT' is used to read the error counters (RX Error Counter Register) of an EtherCAT slave to determine the connection quality. If the function block is called with a positive edge at the 'xExecute' input after a connection interruption, it does not return an error.

When does the behaviour occur?
If a fault occurs in bus operation, for example due to a connection interruption, the function module 'L_ETC_ReadErrCnt2' only indicates an error after a repeated edge at the 'xExecute' input. 

Which products are affected?
Library L_IODrvEtherCAT from V3.22
Cabinet Controller c300 from V3.20
Cabinet Controller 3200C from V3.20
Panel Controller p300 from V3.20
Panel Controller p500 from V3.20
 
Cabinet Controller c520 from V1.6
Cabinet Controller c550 from V1.6
Cabinet Controller c750 from V1.6

Short-term measures:
Call the function block 'L_ETC_GetMasterDiagnostic' in the PLC program to evaluate the EtherCAT status, link-up and a bus mismatch via its output 'oDiagnostic'. In the event of an error, call the function module 'L_ETC_ReadErrCnt2' several times with a positive edge at the 'xExecute' input, if necessary.

Evaluation / recommendations:
The function module 'L_ETC_ReadErrCnt2' can be used for EtherCAT diagnostics. The outputs of the function module are not always set correctly. An applicative solution is described under Short-term measures.


Automatic Translation

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/202100240/1/
Contact form