<< Click to Display Table of Contents >>
ServerId |
Determines the server to which the OPC Driver must connect. Although the default value of this property is empty, if this value is empty the OPC Driver is not going to connect. This property can only be modified when an OPC Driver is not connected. Example:
Sub CommandButton1_Click()
Set Opc = Application.GetObject("OPCDriver1")
Opc.Deactivate
Opc.ServerId = "ElipseSCADA.OPCSvr.1"
Opc.ServerMachine = "\\server2"
Opc.Activate
End Sub