CreateEx

CreateEx 1:

This method creates an alarm instance in the EventLogger.

Syntax

METHOD CreateEx : HRESULT
VAR_INPUT
    stEventEntry      : TcEventEntry;
    bWithConfirmation : BOOL;
    ipSourceInfo      : I_TcSourceInfo;
END_VAR

CreateEx 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event definition.

bWithConfirmation

BOOL

Defines whether the alarm requires mandatory confirmation.

ipSourceInfo

I_TcSourceInfo

Interface pointer to the source information.

Default source information is created if no interface pointer is transferred.

CreateEx 3: Return value

Name

Type

Description

CreateEx

HRESULT

Returns S_OK if a new alarm was successfully created.

Returns ERROR_ALREADY_EXISTS if the alarm has already existed.

Otherwise returns HRESULT as the error code.