dOPC Client Toolkit
Close
dOPCComn.TdOPCServerBrowser
dOPCComn_TdOPCServerBrowser

Class to get OPC Server from a remote or local Computer 

 

TdOPCServerBrowser = class(TComponent);
class TdOPCServerBrowser : public TComponent;

TdOPCServerBrowser provides the ability to browse for OPC servers from local and remote computers.

OPC UA Server 

To find OPC UA server correctly you have to install the UA Local Discovery Server from the OPC Foundation (https:\\opcfoundation.org) first. The direct link is: 

https://opcfoundation.org/developer-tools/developer-kits-unified-architecture/local-discovery-server-lds/ 

 

OPC Classic COM basec OPC server 

For remote browsing you have to install OPCENUM.EXE on server and client sided PC. Normally the OPC Server installs OPCENUM.EXE itself. If not, you can download the "OPC Core Components Redistributable" from the OPC Foundation Web Site (http://www.opcfoundation.org) which includes all required OPC base components (e.g. also OPCENUM.EXE).

procedure TForm24.ShowServer(UA: boolean); var ServerBrowser: TdOPCServerBrowser; Server : TdOPCServerItem; begin ServerBrowser := TdOPCServerBrowser.Create(nil); if UA then begin ServerBrowser.Protocol := coUA; ServerBrowser.ComputerName := 'opc.tcp://localhost:4840'; // default UA discovery server end; ServerBrowser.Execute; for Server in ServerBrowser do Memo1.Lines.Add(Server.ServerName); ServerBrowser.Free; end;
Kassl GmbH Copyright © 2024. All rights reserved.