File Commands - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
References
Refer to the CX-Supervisor User Manual for details of alarms.

File Commands

CloseFile
Syntax
returnstate = CloseFile(pointname)
Remarks
Argument
returnstate
pointname
Typical Examples
CloseFile(status)
The currently open file is closed. Blank spaces at the end of each line are stripped from the file if the
Boolean point 'status' is set to 'TRUE'.
CloseFile(FALSE)
In this example, the currently open file is closed and any blank spaces are not stripped from the file.
Note:
If blank spaces are stripped from the file, then it greatly reduces in size but it takes
slightly longer to close. Blank spaces should not be stripped from the file if it is being
used on a network drive by more than one system at a time.
CopyFile
Syntax
returnstate = CopyFile("sourcename", "destname")
Revision 2.0
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
bool
A Boolean point that holds the required status of whether blank
spaces should be stripped from the file when it is closed.
CHAPTER 6 – Functions and Methods
Description
Page 81

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents