Appendix A - Opc Communications Control; Component Properties; Script Interface; Functions - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
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.

Component Properties

Property Title
DisplayErrors
ProjectName
ServerComputerName
ServerName
ServerProjectName

Script Interface

The Script Interface defines the methods for the OPC communications control.

Functions

Value
Read
Write
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'.
Revision 2.0
APPENDIX A – OPC Communications Control
Example
True
When set True, the object will display a message box for any errors.
False
If set to False, error messages are not displayed.
Name of .OPC file containing the client setup.
"MyPC"
This is the name of the PC with the OPC Server.
Name of the OPC Server to connect to.
e.g. OMRON.OpenDataServer.1
Optional filename, which if specified causes the OPC Server to use
the specified file, if supported by the server.
Function for getting and setting an OPC item value.
Function to read the value of an OPC item.
Function to write the value of an OPC item.
Description
Page 139

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