4
OPC Data Access Automation Objects & Interfaces
4.1
OPCServer Object
Description
A client creates the OPCServer Automation object. The client then 'connects' it to an OPC Data
Access Custom Interface (see the 'Connect' method). The OPCServer object can now be used to
obtain general information about an OPC server and to create and manipulate the collection of
OPCGroup objects.'
Syntax OPCServer
Remarks
The WithEvents syntax enables the object to support the declared events for the particular object.
For the OPCServer, the only event defined is the ServerShutDown. The OPCGroup (described
later) has all the events associated with DataChange and the events as required to support the
Asynchronous methods of the OPCGroup object.
Example
Dim WithEvents AnOPCServer As OPCServer
Set AnOPCServer = New OPCServer
Do'stlaringiz bilan baham: |