ExportLoggedEvents
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
Inputs
Name | Type | Description |
---|---|---|
ipExportSettings | I_TcEventExportSettings | Specify which events are to be exported, otherwise all events will be exported. |
Inputs/outputs
Name | Type | Description |
---|---|---|
sFileName | STRING | Name of the destination file |
Return values
Name | Type | Description |
---|---|---|
ExportLoggedEvents | BOOL | TRUE, if the processing is completed. |
Outputs
Name | Type | Description |
---|---|---|
bError | BOOL | TRUE when an error occurs. |
hrErrorCode | HRESULT | Outputs the error information if |
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