CreateEx

CreateEx 1:

This method creates a message instance in the EventLogger from an event definition.

Syntax

METHOD PUBLIC CreateEx : HRESULT
VAR_INPUT
    stEventEntry : TcEventEntry; 
    ipSourceInfo : I_TcSourceInfo := 0;
END_VAR

CreateEx 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event definition.

ipSourceInfo

I_TcSourceInfo

Interface pointer to the source information.

This information is optional. An instance of the type FB_TcSourceInfo can be specified here. If nothing (NULL) is transferred, standard source information is generated.

CreateEx 3: Return value

Name

Type

Description

CreateEx

HRESULT

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