OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 83
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
filename
string
Pathname of the file to be edited.
Typical Example
EditFile(“C:\report3.txt”)
FileExists
Syntax
returnpoint = FileExists (filename)
Remarks
Argument Type
Description
filename
string
This text string contains the file name.
returnpoint
point
Boolean point that contains the return value.
Typical Example
FileName = “TEST.TXT”
Exists = FileExists(FileName)
The Boolean point ‘Exists’ is set to ‘TRUE’ if a file called ‘C:\TEST.TXT’ exists.
Note:
“FileName” is a text point which can be set to any string value.
MoveFile
Syntax
returnstate = MoveFile(“sourcename”, “destname”)
Remarks
Argument Type
Description
Returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
sourcename
string
Pathname of file to be moved.
destname
string
Pathname of destination of move.
Typical Example
MoveFile(“c:\autoexec.bat”, “c:\autoexec.old”)
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...