Delphi OPC Server Enumerator

Introduction

This document, and the ZIP archive of which it is part, are intended to illustrate techniques for listing available OPC servers.

The ZIP file contains Delphi source code for a simple OPC client application.

You will also need the Delphi conversion of the OPC custom interfaces, available separately from the Delphi page at OPC Programmers' Connection.

The code has been confirmed to be compatible with with Delphi 3 to 7, and Delphi 2005/2006 for Win32.

Version History

November 28th 2004: Minor changes for compatibility with Delphi 2005 for Win32.

August 29th 2003: Original version.

File List

Inside the ZIP archive you will find the following files.

OPCsrvrs.*   Main application files
OPCenum.pas   Class which encapsulates methods for enumerating OPC servers
readme-enum.htm   This file

The Pascal source code for the sample application is in OPCsrvrs.dpr.

Disclaimer

Although every effort has been made to faithfully convert the original C and IDL declarations to Object Pascal, and the results have been used and tested extensively, I can't of course actually guarantee their correctness. Neither will I be held responsible for any loss or damage arising from their use.

I would be grateful to know of any problems with these files.

Mike Dillamore
OPC Programmers' Connection
http://www.opcconnect.com/
mailto:opc@opcconnect.com

January 2nd 2006