SLIK-DA - VC++ Example
How do I create an OPC Server?
Simple OPC Server
A sample OPC DA and UA Server created in VS2008 and C++ using SLIK-DA with UA.
We have attached an example OPC Server created in Visual Studio .NET. It is a CLR application that implements the minimum required to create an OPC Server. It is well documented and should be easy to follow.
This sample shows you how to:
- Register/unregister the server
- Create a tag database and add tags to the database (using sample tags with simulated data)
- Set the Read/Write Access of a tag
- Gracefully shut down the server
- Handle a client connect/disconnect
- Handle a client Read/Write call to the server