TcEventEntry_TO_HRESULTAdsErr

TcEventEntry_TO_HRESULTAdsErr 1:

This function converts a TcEventEntry into a standard ADS error (HRESULT).

Syntax

Definition:

FUNCTION TcEventEntry_TO_HRESULTAdsErr : BOOL
VAR_INPUT
    stEventEntry : TcEventEntry;
    hr           : REFERENCE TO E_HRESULTAdsErr;
END_VAR

TcEventEntry_TO_HRESULTAdsErr 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event definition to be converted.

hr

REFERENCE TO E_HRESULTAdsErr

Outputs the resulting error code.

TcEventEntry_TO_HRESULTAdsErr 3: Return value

Name

Type

Description

TcEventEntry_TO_HRESULTAdsErr

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