5 l_etc_reseterrcnt (fb), L_etc_reseterrcnt (fb), L_etc_reseterrcnt (fb) ( 146) – Lenze EtherCAT Controller-based Automation User Manual
Page 146: 9function library l_iodrvethercat.lib

9
Function library L_IODrvEtherCAT.lib
9.4
Diagnostic Interface
146
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
9.4.5
L_ETC_ResetErrCnt (FB)
This function block resets the frame error counters of all connected slaves.
Visualisation: VISU_L_ETC_ResetErrCnt
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Note!
We recommend executing the L_ETC_ResetErrCnt function block before one of the
frame error counters of the slaves has reached the maximum value of '255'.
L_ETC_ResetErrCnt
BOOL xExecute
xDone BOOL
xBusy BOOL
xError BOOL
eErrorCode L_ETC_ERRORCODE
Identifier/data type
Meaning/possible settings
xExecute
BOOL
A positive edge (TRUE) resets the frame error counters of all connected slaves.
Identifier/data type
Meaning/possible settings
xDone
BOOL
• TRUE: An action has been executed successfully.
• FALSE: No action active / action is still being executed.
xBusy
BOOL
• TRUE: An action is currently being executed.
• FALSE: No action active
xError
BOOL
• TRUE: An error has occurred.
• FALSE: No error
eErrorCode
L_ETC_ERRORCODE
Error code of the incorrectly executed action (xError = TRUE).