CHAPTER 6 – Functions and Methods
OMRON
Page 90
Revision 2.0
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.
Report Commands
GenerateReport
Syntax
returnstate =
GenerateReport(ReportTemplateFile,ReportOutputFile)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
ReportTemplateFile
string
Pathname of the report template file.
ReportOutputFile
string
Pathname of the report output file.
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.
PrintReport
Syntax
returnstate = Printreport(ReportTemplateFile)
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...