Create

Create 1:

This method creates a message instance in the EventLogger.

Syntax

METHOD Create : HRESULT
VAR_INPUT
    eventClass   : GUID;
    nEventId     : UDINT;
    eSeverity    : TcEventSeverity;
    ipSourceInfo : I_TcSourceInfo := 0;
END_VAR

Create 2: Inputs

Name

Type

Description

eventClass

GUID

GUID of the event class.

nEventId

UDINT

ID of the event.

eSeverity

TcEventSeverity

Defines the severity.

ipSourceInfo

I_TcSourceInfo

Pointer to an ITcSourceInfo interface.

Create 3: Return value

Name

Type

Description

Create

HRESULT

Returns S_OK if the method call was successful, otherwise an HRESULT as the error code.