CHAPTER 6 – Functions and Methods
OMRON
Page 82
Revision 2.0
Remarks
Argument Type
Description
Returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise
sourcename
string
Pathname of file to be copied. May include a “*” wildcard
character.
destname
string
Pathname of destination of copy. If path name does not exist it
is created.
Typical Example
CopyFile(“c:\autoexec.bat”, “c:\autoexec.old”)
The file “c:\autoexec.bat” is copied to the file “c:\autoexec.old”.
CopyFile(“c:\logging\*.dlv”, “a:\backup”)
The data log files (ending in dlv) in “C:\logging” are copied to the “\backup” directory on drive A:
DeleteFile
Syntax
returnstate = DeleteFile(“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 deleted.
Typical Example
DeleteFile(“c:\pagename.pag”)
The file “c:\pagename.pag” is deleted.
EditFile
Syntax
returnstate = EditFile(“filename”)
Содержание 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...