Read; Write; A.3.2 Read; A.3.3 Write - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Functions
Note:

A.3.2 Read

A.3.3 Write

128
'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")
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.
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.
Appendix A OPC Communications Control

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents