ExportLoggedEvents

ExportLoggedEvents 1:

This method exports logged events asynchronously. Returns TRUE when asynchronous processing is complete.

Syntax

METHOD ExportLoggedEvents : BOOL
VAR_IN_OUT CONSTANT
    sFileName             : STRING;
END_VAR
VAR_INPUT
ipExportSettings          : I_TcEventExportSettings;
END_VAR
VAR_OUTPUT
    bError                : BOOL;
    hrErrorCode           : HRESULT;
END_VAR

ExportLoggedEvents 2: Inputs

Name

Type

Description

ipExportSettings

I_TcEventExportSettings

Specify which events are to be exported, otherwise all events will be exported.
An instance of FB_TcEventCsvExportSettings can be assigned for this purpose.

ExportLoggedEvents 3: Inputs/outputs

Name

Type

Description

sFileName

STRING

Name of the destination file

ExportLoggedEvents 4: Return values

Name

Type

Description

ExportLoggedEvents

BOOL

TRUE, if the processing is completed.

ExportLoggedEvents 5: Outputs

Name

Type

Description

bError

BOOL

TRUE when an error occurs.

hrErrorCode

HRESULT

Outputs the error information if bError is TRUE.

Application sample for the method

This method is asynchronous, i.e. it requires several cycles to deliver the return value. The following use is intended:

IF bExportLoggedEvents THEN
  bExportLoggedEvents:= NOT fbLogger.ExportLoggedEvents(…);
END_IF