6 l_ecat_readerrcnt (fb), L_ecat_readerrcnt (fb), L_ecat_readerrcnt (fb) ( 116) – Lenze EtherCAT control technology User Manual

Page 116: Control technology | ethercat communication manual

Advertising
background image

Control technology | EtherCAT communication manual

EtherCAT function libraries

Function blocks and functions for diagnosing the network

116

L

DMS 3.1 EN 01/2011 TD17

9.7.6

L_ECAT_ReadErrCnt (FB)

Inputs (VAR_INPUT)

Outputs (VAR_OUTPUT)

Function:

This function block reads the telegram error counters of all connected

slaves (see

Error counters of the EtherCAT slaves

( 143)

). This block

should be executed cyclically at longer intervals (e.g. every 10

minutes) to evaluate the state of the bus. The values in the

abRedErrCnt array serve to evaluate the cabling quality/EMC

sensitivity of the EtherCAT bus.

Library:

SM_Ethercat.lib

Visualisation:

VISU_L_ECAT_ReadErrCnt

Identifier/data type

Meaning/possible settings

bExecute

BOOL

The function block is activated in an edge-controlled manner:

• Positive edge (TRUE) = function block is executed.

Identifier/data type

Meaning/possible settings

bDone

BOOL

FALSE: Function block is active or has not been called

TRUE: Function block has been executed.

bError

BOOL

FALSE: No error

TRUE: An error has occurred.

dwErrorID

DWORD

Display of a hexadecimal error code (see also

System error messages ( 157)

) if an

error has occurred (bError = TRUE).

abRedErrCnt

Array [n] of

L_ECAT_ErrCnt

This array contains the values of the error counters of the telegram errors occurred

for the first time of all connected slaves.

• Each slave has 4 telegram error counters.

• ’n’ corresponds to the number of connected slaves.

abGreenErrCnt

Array [n] of

L_ECAT_ErrCnt

This array contains the values of the error counters of the forwarded telegram errors

of all connected slaves.

• Each slave has 4 telegram error counters.

• ’n’ corresponds to the number of connected slaves.

Advertising