uForte OPC Server Development Kit

Overview       Manual       License       Download       Feedback       News&Events
 Products
 Download
 Buy
 About OPC
 Login
 
 
"uForte OPC Server Development Kit" is a fine product, it has been extremely successful in the implementations we have used it in Coating Control and Mill Control."
Ned Scopulovic, Senior Systems Engineer at Hatch IAS
 

Manual

Back to the content

CCM Generator

The key object in this toolkit, from user perspective, is the CCM (Client Control Module) which implements essential functionality in the OPC server. The toolkit contains the uForte OPC Server Engine which implements OPC interfaces and allows to plugin external modules. CCM is an external module to the uForte OPC Server Engine. CCM has to be implemented by the user. The CCM Generator tool is provided to facilitate CCM development by generating working CCM examples. It allows to select the CCM type, programming language and development environment from the available options.

CCM Generator can generate VB, C# or C++ source code which demonstrates how to change OPC item values, send AE events, add/remove OPC items in the OPC server address space etc. The source code generated depends on the current address space.

Start "CCM Generator" from the program's group.

CCM type - EXE is recommended (DLL is DEPRECATED and kept for compatibility only).
Language - select your preferred programming language.
Tool - select your development environment.
Project name - CCM project name.

Select required options and click "Generate and open the project".

CCM

The generated project will be opened automatically in the selected development environment. CCM in C# for Visual Studio 10 Express is considered below.

NOTE: the other Language/Tool combinations can generate slightly different project structures but their functionality will be the same.

In Windows 7 with UAC different from "Never notify" close the visual studio, start it as "Run as administrator" and open the CCM project again.

The Visual Studio project contains the following files:

  • Startup.cs - has all the CCM logic and demonstrates the capabilities of interaction with the uForte OPC Server Engine.
  • The others are support files.

Startup.cs

It contains the Main method (entry point for the application). This method demonstrates how to connect to uForte OPC Server Engine, set callback interface to process write requests, modify OPC server address space etc. The main lifecycle inside this method demonstrates how to update OPC item values and generate OPC events. This file is supposed to be changed by user as required.

Also, it demonstrates how to process write requests from OPC clients, change the requested values and return them back to the OPC clients. This file is supposed to be changed by user as required.

Copyright uForte Co 2003-2017