Report Commands; Generatereport; Printreport - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Report Commands

6-11
Report Commands

6-11-1 GenerateReport

6-11-2 PrintReport

86
Argument
Type
recipename
string
processed
bool
Typical Example
UploadRecipe("recipe1",done)
The recipe 'recipe1' is uploaded, and point 'done' is set True when the upload
is complete.
References
Refer to the CX-Supervisor User Manual for details of recipes.
Syntax
returnstate =
GenerateReport(ReportTemplateFile,ReportOutputFile)
Remarks
Argument
Type
returnstate
bool
ReportTemplateFil
string
e
ReportOutputFile
string
Typical Example
GenerateReport("report3.txt","output.txt")
The ReportTemplateFile report3.txt contains a predefined set of point names
and text laid out exactly as the report reader likes to view them. The point
names contained within enclosing characters are the CX-Supervisor names
for the data that is required in the report.
The enclosing characters can be changed in the Project/Runtime Setting/
Report setting dialog box, but once set must be fixed for all reports generated
by the project.
The template file can be written using any ASCII text editor, for instance a Text
file (.TXT), a Rich Text file (.RTF) or a Hypertext file (.HTML).
The report template is processed, dynamically replacing the point names with
current values, and saved as output.txt.
Syntax
returnstate = Printreport(ReportTemplateFile)
Remarks
Argument
Type
returnstate
bool
SECTION 6 Functions and Methods
Description
The name of the recipe to be uploaded.
Flag set to true when operation has been
completed.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Pathname of the report template file.
Pathname of the report output file.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents