Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 97

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
The file "c:\autoexec.bat" is moved to the file "c:\autoexec.old".
OpenFile
Syntax
returnstate = OpenFile("filename")
Remarks
Argument
Returnstate
Filename
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
Returnstate
Filename
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.
Page 84
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Pathname of file to be opened.
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Pathname of file to be printed.
Description
Description
Revision 2.0
OMRON

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents