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 #128 background imageLoading...
Page #128 background image
Component Properties Appendix A OPC Communications Control
127
Appendix A
OPC Communications Control
This appendix contains a list of the available component properties and gives
details of the Visual Basic script interface. These properties can be set in run
time by using a Visual Basic script command - for example: -
OMRONCXOPCCommunicationsControl1.ServerNodeName = "\\NAME"
The Script Interface defines the Visual Basic script interface for the OPC
communications control. See ExecuteVBScript script functions for more
information on running Visual Basic Script.
A.1 Component Properties
A.2 Script Interface
The Script Interface defines the methods for the OPC communications control.
A.3 Functions
A.3.1 Value
Reads or writes the value of an OPC item.
Example 1 - Reading a value:
intVal =
OMRONCXOPCCommunicationsControl1.Value
("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'.
Example 2 - Writing a value:
OMRONCXOPCCommunicationsControl1.Value("MyGroup",
"BoilerTemp") = 50
In this example, the value 50 will be written to the OPC item 'BoilerTemp'.
Property Title Example Description
DisplayErrors True
False
When set True, the object will display a
message box for any errors. If set to
False, error messages are not displayed.
ProjectName Name of .OPC file containing the client
setup.
ServerComputerName "MyPC "This is the name of the PC with the
OPC Server.
ServerName Name of the OPC Server to connect to.
e.g. OMRON.OpenDataServer.1
ServerProjectName Optional filename, which if specified
causes the OPC Server to use the
specified file, if supported by the server.
Value Function for getting and setting an OPC item value.
Read Function to read the value of an OPC item.
Write Function to write the value of an OPC item.

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