dOPC Client Toolkit
|
Close
|
Class to connect to an OPC Server.
TdOPCDAClient is a component to connect, control, browse, read and write data from any installed OPC Data Access (DA) Unified Architecture (UA) or OPC Classic COM based 1.x, 2.x , 3.x or OPC XML DA servers.
To build OPC DA client programs you have to create a TdOPCDAClient object first in order to get references to other objects. It contains the TdOPCGroups collection and also provides a TdOPCBrowser object. At first the ServerName has to be defined then the client can connect to the OPC Data Access Interface (see the TdOPCClient.Connect method or TdOPCClient.Active property). Then the TdOPCDAClient object can be used to obtain general information about an OPC server and to create and manipulate the TdOPCGroups object or to navigate with the TdOPCBrowser.
This example shows you how simple it is to connect to an OPC server with the dOPC Client Toolkit. It is based on our dOPC Simulation Server, but it's a trivial matter to change to any other OPC Server. You will find this example program also in our example programs, folder "verySimple".
If you want to add a huge amount of OPC items to a OPC Group (TdOPCGroup) please look at the example program "BulkRead"
Kassl GmbH Copyright © 2023. All rights reserved.
|