OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 81
References
Refer to the
CX-Supervisor User Manual
for details of alarms.
File Commands
CloseFile
Syntax
returnstate = CloseFile(pointname)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
pointname
bool
A Boolean point that holds the required status of whether blank
spaces should be stripped from the file when it is closed.
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”)
Содержание 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...