EasyManuals Logo

Omron CX-Supervisor Reference Manual

Omron CX-Supervisor
164 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #139 background imageLoading...
Page #139 background image
UploadProgram Appendix B CX-Server Communications Control
138
B.27 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 4th and 5th parameters are reserved, and should always be 1 and 0
respectively
B.28 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.
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".
B.29 Protect
The Protect function can be used to protect (or remove protection from) PLC
program memory. 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 1 (sets protection for CS series PLC)
Dim SetProtection
Dim PasswordString
Dim PasswordNumber
EnableProtection = true
Note: Care should be taken with this function to ensure that the program written is
valid for the PLC to which it is downloaded.
Note: The 4th and 5th parameters are reserved, and should always be 1 and 0
respectively

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals