Connect method

Description
Must be called to establish connection to an OPC Data Access Server.
Syntax
Connect
(ProgID As String, Optional Node As Variant)
ProgID
— A string that uniquely identifies the registered OPC Data Access Server
Node
— Optional string that specifies the machine name of a remote OPC Data Access Server to connect to using DCOM.
Remarks
Each instance of an OPC Server is "connected" to an OPC Data Access Server.
Node is optional and should only be specified when connecting to a remote Data Access Server. Specifying a node name makes use of DCOM to access another computer. Acceptable node names are UNC names ("Server"), or DNS names ("server.com", "www.vendor.com", or "180.151.19.75").
Example
Dim MyOPCServer as OPCServer
'/* Create reference to OPC Server
Set MyOPCServer = New OPCServer
'/* Connect to RSLinx Classic OPC Server
MyOPCServer.Connect "RSLinx Classic OPC Server"
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal