OMRON
APPENDIX B – CX-Server Communications Control
Revision 2.0
Page 151
Currently supported parameter values are as described for the SetDeviceConfig method.
UploadProgram
The UploadProgram function can be used to read a program from a PLC. The program is read in
binary form, and stored in a user-specified file. This function should not be used at the same time as
any other PLC communications. The project and PLC will automatically be opened if required.
This
function is for advanced users only
.
Example:
Dim SourceFile
Dim DestinationFile
Sourcefile = “”
DestinationFile = “c:\test1.bin”
CXServer.UploadProgram "PLC1", SourceFile, DestinationFile, 1, 0
The first parameter is the PLC name.
The second parameter is the source file name. To upload the current program this should be an empty
string
,
but may also be set to the name of a file in the root directory of a memory card, e.g.
“Example.obj”.
The third parameter is the name of the local file to store the program. A ‘.bin’ file extention is typical
for a binary file.
Note:
The 4
th
and 5
th
parameters are reserved, and should always be 1 and 0 respectively
DownloadProgram
The DownloadProgram function can be used to write a program to a PLC. This function should not
be used at the same time as any other PLC communications. The project and PLC will automatically
be opened if required.
This function is for advanced users only
.
Note:
Care should be taken with this function to ensure that the program written is valid for the PLC
to which it is downloaded
.
Example:
bValid =CXServer.DownloadProgram "PLC1", "c:\test2.bin", "", 1, 0
The first parameter is the PLC name.
The second parameter is the local source file name. A ‘.bin’ file extention is typical for a binary file.
To download the current program the third parameter should be an empty string
,
but may also be set
to the name of a file to download to the root directory of a memory card, e.g. “Example.obj”.
Note:
The 4
th
and 5
th
parameters are reserved, and should always be 1 and 0 respectively
Содержание 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...