General
The examples in Object Pascal are currently provided for Delphi 10.3 (Rio). In case you are not able to directly load the projects into earlier versions of Delphi, the actual source code is likely to work just well with no or minor modifications, so you just need to re-create the "envelope" project files.
In earlier versions, we have tested the examples with Delphi XE7, and also briefly with Delphi XE8 and Delphi 10 Seattle.
The features decribed or used here are only available if you included "COM development" during the installation of Connectivity Software. If the features are missing, simply re-run the installation program, making sure that "COM development" is included in the selection made on the "Installation Dashboard" setup wizard page.
- DocExamples: Contains all Delphi examples for OPC Classic that are given in the Reference documentation.
- EasyOpcUADemo: Shows how to make a desktop windowed OPC UA client application, mimicking the example that is available in C# and VB.NET. The application demos the most important product functions, including event-based subscriptions.
- Imports: Contains Delphi components created by importing QuickOPC type libraries.
- ReadAndDisplayValue: The simplest form. Reads and displays an OPC item value.
- UADocExamples: Contains all Delphi examples for OPC-UA that are given in the Reference documentation.
Where are the examples?
The examples are available in multiple formats and on different locations. You can pick the one that suits you the best.
- On Windows, if you have used the Setup Program to install QuickOPC, examples source files are available from the Start menu or the Launcher application.
- The example source files are in public GitHub repositories - see further below.
- The examples are in this documentation - shown in articles that describe the related concepts, and also all together: QuickOPC Examples.
Examples on GitHub
See Also