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 #129 background imageLoading...
Page #129 background image
Functions Appendix A OPC Communications Control
128
A.3.2 Read
Reads the value of an OPC item.
Example of synchronous read:
intVal =
OMRONCXOPCCommunicationsControl1.Read
("MyGroup", "BoilerTemp")
In this example, the OPC item 'BoilerTemp' in the OPC group called
"MyGroup" will be read from the OPC Server and will be stored in 'intVal'. The
script will wait for the read operation to complete before continuing to execute
the next line. This is identical to the operation of the 'Value' method.
A.3.3 Write
Writes the value of an OPC item.
Example of synchronous write:
OMRONCXOPCCommunicationsControl1.Write
"MyGroup", "BoilerTemp", NewValue
In this example, 'NewValue' will be written to the OPC item 'BoilerTemp' in the
OPC group called "MyGroup". The script will wait for the write operation to
complete before continuing to execute the next line. This is identical to the
operation of the 'Value' method.
Note: 'Value' is the default property so is assumed if omitted. Therefore, the
following examples are the same:
intVal =
OMRONCXOPCCommunicationsControl1.Value("MyGroup",
"BoilerTemp")
and
intVal = OMRONCXOPCCommunicationsControl1 ("MyGroup",
"BoilerTemp")

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