Feedback & Referrals
(tell a friend)
Our developers and support engineers appreciate hearing about real world applications
from users like you. If our free sample code is helpful or if you feel we could
add more information, please contact
us and let us know. Also, we'd
appreciate a link back to our site if you'd like to tell others about our free
tools for
developers. Copy and paste the code below in the html portion of your web page to add a link.
<a href="http://www.kepware.com/Products/KEPServerEX_VB_Install.asp">VB
OPC Client Source Code</a>
Simple OPC
Client code for Visual Basic .NET
Kepware's OPC server works very well with OPC client
applications developed in .NET. Customers have been using
this free sample code for 2+ years with great success.
The Visual Basic for .NET client code largely follows
the code structure found in the OPC Automation Interface
2.0 specification. The code is well commented and contains
recommendations on how you might develop your own custom
OPC application. This example is great if you need to
perform basic OPC connectivity. The example demonstrates
a single OPC server connection with a single OPC group
and a fixed list of OPC items. The number of OPC items
can be expanded easily.
Simple OPC Client
code for Visual Basic 5.0 & 6.0
The Simple OPC Client example demonstrates how to use
the automation interface
in Visual Basic 5.0 & 6.0.
Customers have been using this free sample code for 5+ years. The VB OPC client
code follows the code structure found in the OPC Automation Interface 2.0 specification.
Kepware's code is well commented and contains recommendations on how you might
develop your own custom OPC application. This example is great if you need to
perform basic OPC connectivity to a single OPC server. The example demonstrates
a single OPC server connection with a single OPC group and a fixed list of OPC
items. The number of OPC items can be expanded easily. This example OPC client
for VB source code is also provided as part of the KEPServerEX product suite.
Complex OPC Client code for Visual Basic 5.0 & 6.0
This example was written to provide a robust, full-featured model for OPC client
enabling your Visual Basic 5.0 & 6.0
applications. The example code uses the OPC Automation Interface 2.0 specification
and expands upon the object model by providing a set of VB Class Objects that
"wrap" and augment the automation interface. One of the common problems developers
face is how to connect with multiple OPC servers, add multiple Groups with multiple
OPC Items, and keep track of change events to maintain the high levels of performance
that OPC can provide. The Complex OPC example provides these capabilities. Additionally,
because no OPC client is complete without the capability to perform OPC Tag Browsing
the Complex OPC Client example implements a complete Tag Browsing interface with
filtering.
The example uses only standard VB Controls such as the Tree Control and List
View. Other than the OPC automation interface objects (provided in this download),
no other controls should be needed.
OPC Client code for Visual C++
The source code provided here is for a "lite" version of our OPC Quick Client
application. Extensive code remains which will assist developers in understanding
how to use OPC in their VC++ applications. This proven code has been available
for several years and is used extensively by our developers and quality control
engineers. From the sample OPC client code for Visual C++ you will see how to
Browse OPC servers, Connect to them, add Groups and Items, and Read and Write
data. OPC Data Access versions 1.0 and 2.0 are supported. You may borrow freely
from this code to create your own OPC client enabled applications.
|