uForte OPC Server Development Kit

Overview       Manual       License       Download       Feedback       News&Events
About OPC
"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


Back to the content

Custom OPC Server (Ms VS Express .sln)

This is a source code of a fully independent OPC server based on the uForte OPC Server Core.

It has all the capabilities of the uForte OPC Server Engine, provides full control over the OPC server process and allows to change OPC server ProgID, Description, CLSID, Service Name etc.

It comes in C# as a Ms Visual Studio Express project.

All the files used in the project are all copied into the output folder and it doesn't depend on the uForte OPC Server SDK in any other way, e.g. the SDK doesn't have to be installed with this server.

The difference between this and the CCM is that CCM depends on the "uForte OPC Server Engine" which is a part of the "uForte OPC Server SDK". This OPC server is self sufficient.

It is implemented as a .Net 4.5 windows service.


To install the OPC server built in this project the following command to be run in the project output folder:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe SampleOpcServerUforte.exe

To start this OPC server start the "SampleOpcServerUforte" service from the Services applet or from the Task Manager.

Run the following command in the project output folder to uninstall:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u SampleOpcServerUforte.exe


To distribute this OPC server all the files from the output folder (.\bin\debug\ or .\bin\release\) have to be copied and then installed as above.

The standard OPC libraries can be installed by running "OPC Core Components Redistributable.msi" from the installation folder.

How It Works

Run the "Custom OPC Server (Ms VS Express .sln)" from the program's group to open up the project in visual studio.

The file where the OPC server logic is implemented is in Service1.cs. It has examples of registration/deregistration, main lifecycle of the service, change OPC item values, process write requests, maintain the OPC server address space, sending OPC AE events etc.

All the interactions with the uForte OPC Server Core is happening via ufOpcSvrCustCore class from the ufOpcSvrCustCoreNet assembly.

Copyright © uForte Co 2003-2024