DeltaV OPC Data Access Server functional overview > Barcode tutorial

Create a class for OPC

There is some information that the client application needs to keep in order to work with the DeltaV OPC Data Access Server connection. In Barcode, you will create a class to hold this information. You will also add procedures to this class to complete various tasks associated with OPC.

  1. To add a class, select Class Module from the Project menu.
  2. Open the properties window of the new class module.
    Figure: Properties window of new class module
  3. Change the name of the class to "COPCServer".
  4. Add the following declarations:
    Option Explicit
    Public WithEvents AnOpcServer As OPCServer
    Public AnOpcServerBrowser As OPCBrowser