Temperature Controller Commands - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
UploadPLCProgram
Syntax
returnstate = UploadPLCProgram(plcname, filename, processed)
Remarks
Argument
returnstate
plcname
filename
processed
Typical Example
UploadPLCProgram("controlPLC", "Prog01.bin", done)
The program in the PLC 'controlPLC' is uploaded to the file 'Prog01.bin' in the current directory.
Before continuing, the script waits up to five seconds for the action to succeed.
Note:
The operation may not be complete immediately after the statement has been executed.
The processed flag 'done' is set at a later time when the operation has been completed.
Therefore, if using statements that require the upload to be completed create an On
Condition script containing the code to be executed after the upload, with the processed
flag as the expression (e.g. 'done').
Note:
This command can only be used when the PLC is in 'STOP' mode. Refer to chapter 6,
GetPLCMode or chapter 6, SetPLCMode for further information.

Temperature Controller Commands

TCAutoTune
Syntax
returnstate = TCAutoTune(TController,mode)
Page 70
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Name of PLC to upload the program from.
string
Name of the file on disk to upload the program to. If a drive
and path are not specified, the file is created in the current
directory, which may not be the same as the application
directory. If a filename is specified as "" the user is prompted
at runtime for a filename.
bool
processed is set to 'TRUE' when the operation is actually
completed.
Description
Revision 2.0
OMRON

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents