TcEventEntry_TO_AdsErr

TcEventEntry_TO_AdsErr 1:

This function converts a TcEventEntry into a standard ADS error.

Syntax

Definition:

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

TcEventEntry_TO_AdsErr 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event definition to be converted.

eErrorId

REFERENCE TO E_AdsErr

Outputs the resulting error code.

TcEventEntry_TO_AdsErr 3: Return value

Name

Type

Description

TcEventEntry_TO_AdsErr

BOOL

Returns TRUE if the conversion was carried out successfully and FALSE if the event class is unknown.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.20

PC or CX (x64, x86, ARM)

Tc3_EventLogger