AdsErr_TO_TcEventEntry

AdsErr_TO_TcEventEntry 1:

This function converts a standard ADS error into a TcEventEntry.

Syntax

Definition:

FUNCTION AdsErr_TO_TcEventEntry : BOOL
VAR_INPUT
    eErrorId     : E_AdsErr;
    stEventEntry : REFERENCE TO TcEventEntry;
END_VAR

AdsErr_TO_TcEventEntry 2: Inputs

Name

Type

Description

eErrorId

E_AdsErr

Error code to be converted.

stEventEntry 

REFERENCE TO TcEventEntry

Outputs the resulting event definition.

AdsErr_TO_TcEventEntry 3: Return value

Name

Type

Description

AdsErr_TO_TcEventEntry

BOOL

Returns TRUE if the conversion was carried out successfully.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.20

PC or CX (x64, x86, ARM)

Tc3_EventLogger