Breadcrumbs

Report

The data is exported/reported into a desired file (in PDF format) using filter parameters.

Syntax

  Func_FbReport_MnDataCollector.bmp

C++
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.
All entries created later as sStartDateTime are reported. 

sEndDateTime 

Filters the repeat by an end date.
All entries created earlier than sEndDateTime are reported. 

var_name 

Filters the report by name.

All entries that match var_name will be reported.
Note: advanced filtering %.
With 'Test%' e.g. entries with 'Tester', 'Test 13' are also reported. 

var_valueMin 

Filters by a minimum value.
All entries with an equal or higher value than var_valueMin are reported. 

var_valueMax 

Filters by a maximum value.
All entries with an equal or lower value than var_valueMax are reported.. 

var_type 

Filters using a Var type.
All entries with the same var_type are reported. 

var_comment 

Filters based on a comment.
All entries that match var_comment will be reported.
As with var_name, % can also be used for advanced filtering. 

Return value

TRUE: sucess

FALSE: failed



Example

C++
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