ServerMachine

<< Click to Display Table of Contents >>

 

ServerMachine

Text This property determines the address of the station where the OPC server is executing. For applications executing locally, this property may remain blank (default). Otherwise, users must specify a path, such as "\\ServerName". This property can only be modified when the OPC Driver is disconnected. Example:

Sub CommandButton1_Click()
  Set Opc = Application.GetObject("OPCDriver1")
  Opc.Deactivate
  Opc.ServerId = "ElipseSCADA.OPCSvr.1"
  Opc.ServerMachine = "\\server2"
  Opc.Activate
End Sub

Was this page useful?