dOPC Client Toolkit
Close
dOPCComn.TdOPCClient.ComputerName

ComputerName contains the computer name of the remote OPC server

property ComputerName: string;
__property AnsiString ComputerName;

This property is only needed is you want to connect to an remote OPC Classic DCOM OPC server. It contains the computer name of the remote OPC server to which the client want to connect.

It may be an empty string (default) if the OPC server runs on the same computer the client is running on. This property is only used for COM based OPC servers (Protocol = coCOM) and it is ignored for other protocols like coXML or coUA. Before a connection to a remote OPC DA server can be established, DCOM needs to be configured on both client and server. 

Client: 

Call the dOPCInitSecurity method (unit dOPCCom) at the at the beginning of your client program. 

Server: 

To configure the remote OPC server and to understand the dOPCInitSecurity method background please read http://www.opcactivex.com/Support/DCOM_Config/dcom_config.html or http://itcofe.web.cern.ch/itcofe/Services/OPC/GettingStarted/DCOM/RelatedDocuments/ITCODCOMSettings.pdf.

Client

procedure TForm1.FormCreate(Sender: TObject); begin dOPCInitSecurity; end;

Server

var Server : TdOPCDAClient; begin Server := TdOPCDAClient.Create(nil); Server.ServerName := 'Matrikon.OPC.Simulation'; Server.ComputerName := '\\RemotePC'; Server.Active := true; end;
Kassl GmbH Copyright © 2024. All rights reserved.