dOPC Client Toolkit Help file
TdOPCServerBrowser Class
dOPCComn.TdOPCServerBrowser
C++
public: class TdOPCServerBrowser : public TComponent;
C#
public class TdOPCServerBrowser : TComponent;
Visual Basic
Public Class TdOPCServerBrowser
Inherits TComponent

dOPCComn

Class to get OPC Server from a remote or local Computer 

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

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).

TdOPCServerBrowser Methods 
Description 
Clear deletes all elements in the items collection. 
Execute gets all OPC servers from the given ComputerName
FindByClassId searches the passed ClassId in the Items collection. Returns the index, if a match is found, otherwise 0. 
FindByServerName searches the passed ServerName in the Items collection. Returns the index if a match is found, otherwise 0. 
FindServer searches the passed ServerName in the Items collection. Returns the index if a match is found, otherwise 0. 
GetOPCServers calls the Execute method with the passed Computername. 
GetServerCaptions fills the passed NameList with all found ServerCaptions. 
GetServerNames fills the passed NameList with all found ServerNames. 
TdOPCServerBrowser Properties 
Description 
property UseLocal: boolean read FUseLocal write FUseLocal;
See TdOPCSvr.ComputerName. 
Count contains the number of OPC servers found on a computer after calling Execute
Items contains the TdOPCServerItem objects which can be accessed via the Index parameter. 
This is Protocol, a member of class TdOPCServerBrowser. 
ServerType defines the OPC server types you want to browse. 
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.