dOPC Client Toolkit
Close
dOPCComn.TdOPCClient.Connect

Connect establishes a connection to an OPC DA server.

procedure Connect(aServerName: string; aComputerName: string = '');
__fastcall Connect(AnsiString aServerName, AnsiString aComputerName = '');

For OPC Classic COM based server: 

The aServerName parameter contains the string that uniquely identifies the registered OPC Data Access server (that implements the custom interface). The aComputerName parameter contains the name that specifies another computer to connect to using DCOM. Acceptable computer names are UNC names ("Server") or DNS names ("server.com", "www.vendor.com" or "180.151.19.75"). An empty string establishes a connection on the local computer. Calling this function will result in the automation wrapper calling CoCreateInstanceEx to create a Data Access custom server (aServerName) on the specified machine (aComputerName). If this function is called a second time without explicitly calling Disconnect, the component will automatically disconnect the existing connection.

Kassl GmbH Copyright © 2024. All rights reserved.