The data is exported to a desired file (in CSV format) using filter parameters.
Syntax
METHOD PUBLIC Export : BOOL
VAR_INPUT
sFile : STRING;
sStartDateTime : STRING;
sEndDateTime : STRING;
var_name : STRING;
var_valueMin : STRING;
var_valueMax : STRING;
var_type : DATACOLLECTOR_TYPE;
var_comment : STRING;
END_VAR
Parameters
|
Parameter |
Description |
|---|---|
|
sFile |
Filename, where the whole export should be sent to |
|
sStartDateTime |
Filters the export by a start date.
|
|
sEndDateTime |
Filters the export by an end date.
|
|
var_name |
Filters the export by name. All entries that match var_name will be exported.
|
|
var_valueMin |
Filters the export by a minimum value.
|
|
var_valueMax |
Filters the export by a maximum value.
|
|
var_type |
Filters the export by Var type.
|
|
var_comment |
Filters the export based on a comment.
|
|
Rückgabewert |
TRUE: successful export |
Example
data : MnDataCollector := (m_sDatabase := '\mnplc\boot\testdata.db', m_DatabaseLimit := DATACOLLECTOR_DATALIMIT_ENTRIES, m_dwDatabaseSize := 5);
...
data.Export(sFile:= '\mnplc\boot\export.csv', sStartDateTime:='', sEndDateTime:='', var_name:='', var_valueMin:='', var_valueMax:='', var_type:= 0, var_comment:= '');
Requirements
Remarks