CHAPTER 6 – Functions and Methods
OMRON
Page 84
Revision 2.0
The file “c:\autoexec.bat” is moved to the file “c:\autoexec.old”.
OpenFile
Syntax
returnstate = OpenFile(“filename”)
Remarks
Argument Type
Description
Returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
Filename
string
Pathname of file to be opened.
Typical Example
OpenFile(“c:\filename”)
The file “c:\filename.csf” is opened and able to be accessed by the Read() and Write() script
commands. Only one file can be open at a time. Files can be shared (for instance located on a
network drive, and accessed by several running CX-Supervisor applications simultaneously - this can
be used for data exchange).
Note:
An extension “.csf” will always be added to the filename so it must not be specifed as
part of the argument.
PrintFile
Syntax
returnstate = PrintFile(“filename”)
Remarks
Argument Type
Description
Returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
Filename
string
Pathname of file to be printed.
Typical Example
PrintFile(“c:\autoexec.bat”)
The file “c:\autoexec.bat” is sent to the currently configured printer.
Script commands that have textual arguments can take either literal strings within quotes or text
points.
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...