<< Click to Display Table of Contents >>
ServerId |
Determines the OPC 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. The next script contains an example of using this property.
Sub CommandButton1_Click()
Set Opc = Application.GetObject("OPCDriver1")
Opc.Deactivate
Opc.ServerId = "ElipseSCADA.OPCSvr.1"
Opc.ServerMachine = "\\server2"
Opc.Activate
End Sub