Download – KEPServerEX OPC Communications Server

Download – KEPServerEX   OPC Communications Server

Communications for Automation

KEPServerEX is a flexible and scalable solution for connecting, managing, monitoring, and controlling diverse automation devices and software applications. Communications is managed through a robust platform that supports an array of open standards such as OPC, propriety communication protocols, APIs, and various automation systems’ interfaces. KEPServerEX enables improved operations and decision making throughout all levels of an organization.

from : www.kepware.com
https://my.kepware.com/download/product/opc-foundation-kepserverex-download/1354705150/KTdlxihKP5ZVlaXVXV3GXpjVYZU=

C# opc-client .net api basic example

1. Need .DLL and files !!    find  DLLs  online

Search in google for DLL files

 

2. Dll Usings

 

VB EXamples

Public Function Browse(ByRef node As TreeNode, Optional id As Opc.ItemIdentifier = Nothing) As Integer
Try  this to for solution

ADvosol OPC .Net Lib, And OPC products

       Products        ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
      You have to create an account after,  download  access for this products you will get.Advosol offers the most complete .NET
support for all major OPC standards:

OPC Classic Components
for the C# / VB.NET Developer
OPC Classic .NET Client Components 
OPC DA .NET
OPC HDA .NET

OPC AE .NET

OPC Classic .NET Server Toolkits
OPC DA .NET 
OPC AE .NET

OPC HDA .NET

OPC .NET Express Interface
For the C# / VB.NET Developer
and System Builder.
OPC .NET (Xi) Converters
DA server converting one Xi server
Xi server converting DA/HDA/AE servers
DA server converting Xi servers
Xi server converting DA servers
Xi server converting XML DA server 

OPC .NET (Xi) Client Components
Xi Option for OPCDA.NET
PaXi (Xi, DA/HDA/AE, UA)

OPC .NET (Xi) Server Toolkits
XiPLUS (DA/HDA/AE)

OPC UA
OPC UA Server Toolkit
OPC UA Option for OPCDA.NET
PaXi Client Base (Xi, DA/HDA/AE, UA)
OPC XML DA Web Services
For the C# / VB.NET Developer
and System Builder.
OPC XML DA Gateways 
OPC DA Server-Side XML Gateway
OPC DA Client-Side XML Gateway

OPC XML DA Client Components
XML-DA / OPC-DA

OPC XML DA Server Toolkits
XML-DA Server

OPC Sample Code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OPCAutomation;
namespace OPC
{
public partial class Form1 : Form
{
OPCServer ObjOPCServer;
OPCGroups ObjOPCGroups;
OPCGroup ObjOPCGroup;
string OPCServerName;
public Form1()
{
try
{
InitializeComponent();
OPCServerName = "{Here comes your OPC server’s name}";
ObjOPCServer = new OPCServer();
ObjOPCServer.Connect(OPCServerName, "");
ObjOPCGroups = ObjOPCServer.OPCGroups;
ObjOPCGroup = ObjOPCGroups.Add("OPCGroup1");
ObjOPCGroup.DataChange += new DIOPCGroupEvent_DataChangeEventHandler(ObjOPCGroup_DataChange);
ObjOPCGroup.OPCItems.AddItem("{tag name or address (like {plc name on server}!%mw0)}", 1);
ObjOPCGroup.UpdateRate = 10;
ObjOPCGroup.IsActive = true;
ObjOPCGroup.IsSubscribed = true;
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
private void button1_Click(object sender, EventArgs e)
{
}
private void ObjOPCGroup_DataChange(int TransactionID, int NumItems, ref Array ClientHandles, ref Array ItemValues, ref Array Qualities, ref Array TimeStamps)
{
for (int i = 1; i <= NumItems; i++)
{
if ((Convert.ToInt32(ClientHandles.GetValue(i)) == 1))
{
textBox1.Text = ItemValues.GetValue(i).ToString();
}
}
}
private void Form1_Load(object sender, EventArgs e)
{
OPCServerClass GlobalOPCServer = new OPCServerClass();
Array ServerList = (Array)GlobalOPCServer.GetOPCServers(""); for (int i = 1; i <= ServerList.Length; i++)
{ comboBox1.Items.Add(ServerList.GetValue(i).ToString()); }
}
}

 

from: GitHub.com

C# sample code that reads an item from an OPC server, Client Component, using OPCDA.NET, using OPCDA, using OPC;

 

Using the OpcGroup Class

 

 

from : http://advosol.us/manuals/opcdanet/topic6.html