The data is exported/reported into a desired file (in PDF format) using filter parameters.
Syntax
METHOD PUBLIC Report : 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 file is to be reported to |
|
sStartDateTime |
Filters the report based on a start date.
|
|
sEndDateTime |
Filters the repeat by an end date.
|
|
var_name |
Filters the report by name. All entries that match var_name will be reported.
|
|
var_valueMin |
Filters by a minimum value.
|
|
var_valueMax |
Filters by a maximum value.
|
|
var_type |
Filters using a Var type.
|
|
var_comment |
Filters based on a comment.
|
|
Return value |
TRUE: sucess FALSE: failed |
Example
data : MnDataCollector := (m_sDatabase := '\mnplc\boot\testdata.db', m_DatabaseLimit := DATACOLLECTOR_DATALIMIT_ENTRIES, m_dwDatabaseSize := 5);
...
data.Report(sFile:='\mnplc\boot\report.pdf', sStartDateTime:= '', sEndDateTime:= '', var_name:= '', var_valueMin:= '', var_valueMax:= '', var_type:= 0, var_comment:= '');
Requirements
Remarks