7 l_ecat_reseterrcnt (fb), L_ecat_reseterrcnt (fb), L_ecat_reseterrcnt (fb) ( 117) – Lenze EtherCAT control technology User Manual

Page 117: Control technology | ethercat communication manual

Advertising
background image

DMS 3.1 EN 01/2011 TD17

L

117

Control technology | EtherCAT communication manual

EtherCAT function libraries

Function blocks and functions for diagnosing the network

The L_ECAT_ErrCnt structure
The L_ECAT_ErrCnt structure contains the error counters of the single ports of a connected

device.

9.7.7

L_ECAT_ResetErrCnt (FB)

Inputs (VAR_INPUT)

Outputs (VAR_OUTPUT)

TYPE L_ECAT_ErrCnt :
STRUCT
Port0 : BYTE;
Port1 : BYTE;
Port2 : BYTE;
Port3 : BYTE;
END_STRUCT
END_TYPE

Identifier/data type

Description

Port[n]

BYTE

Error counter value of the errors recorded at the port[n]

n: 0 ... 3

Function:

This function block resets the telegram error counters of all connected

slaves (see

Error counters of the EtherCAT slaves

( 143)

). This block

should be executed before one of the telegram error counters of the

slaves has reached the maximum value of 255.

Library:

SM_Ethercat.lib

Visualisation:

VISU_L_ECAT_ResetErrCnt

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).

Advertising