FB_EcMasterFrameStatisticClearTxRxErr

FB_EcMasterFrameStatisticClearTxRxErr 1:

The function block FB_EcMasterFrameStatisticClearTxRxErr can be used to delete the error counters of the miniport driver of the network card.

FB_EcMasterFrameStatisticClearTxRxErr 2: Inputs

VAR_INPUT
    sNetId         : T_AmsNetId; 
    nEcMasterDevID : INT; 
    bExecute       : BOOL; 
    tTimeout       : TIME := DEFAULT_ADS_TIMEOUT; 
END_VAR

Name

Type

Description

sNetId

T_AmsNetId

String containing the AMS network ID of the CPU (PC). (Type: T_AMSNetId)

nEcMasterDevID

INT

Device ID of the EtherCAT master.

bExecute

BOOL

The function block is activated by a positive edge at this input.

tTimeout

TIME

Maximum time allowed for the execution of the function block.

FB_EcMasterFrameStatisticClearTxRxErr 3: Outputs

VAR_OUTPUT
    bBusy  : BOOL;
    bError : BOOL;
    nErrId : UDINT;
END_VAR

Name

Type

Description

bBusy

BOOL

This output is set when the function block is activated, and remains set until a feedback is received.

bError

BOOL

This output is set after the bBusy output has been reset when an error occurs in the transmission of the command.

nErrId

UDINT

Supplies the ADS error code associated with the most recently executed command if the bError output is set.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_EtherCAT