Noob OPC指南:如何编写C#Hello World客户端? [英] Noob guide to OPC: how to write a C# Hello World client?

查看:246
本文介绍了Noob OPC指南:如何编写C#Hello World客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的情况:

我们有一个用于监视开发的太阳能发电厂的软件。
我必须引入OPC作为从物理设备本身获取数据的新方法,所以这就是为什么我最终尝试学习opc的原因,到目前为止,这是令人沮丧的。

We have a software that is used to monitor solar power plants developed. I have to introduce OPC as a new way to acquire data from the physical devices themselves, so thats why i ended up trying to learn about opc, which so far is being frustrating.

我已经安装了Matrikon模拟器,并且使用Matrikon Explorer,我可以看到正在模拟数据。我现在需要的是创建一个非常基本的概念证明,我可以
连接到它并使用C#打印一些内容。据我了解,我必须使用一些专有的API / SDK。我只是测试事物,所以我现在不想以专有的方式来做事情。是否创建了OPC来完全避免这种情况?

I have installed the Matrikon simulator and using the Matrikon explorer i can see that data is being simulated. what i need now is to create a very basic proof of concept that i can connect to it and print something using C#. As i understand it, i have to use some proprietary API/SDK. Im only testing things so i dont want to commit to a proprietary way to do things right now. Wasnt OPC created to exactly avoid that?

是否有一个简单的开源DLL,我可以使用它连接到OPC服务器,该服务器支持DA,HDA和AE,使我可以工作而不必担心供应商/ SDK ?

Is there a simple Opensource DLL that i can use to connect to the OPC server, that supports DA, HDA and AE, allowing me to work without worrying about vendors/sdks?

让我感到困惑的是,我发现了OPC Xi和OPC UA...。我还没有找到从gound 0开始的教程,这就是我在寻找的东西

To add to the confusion i have found OPC Xi and OPC UA.... and i havent found a tutorial from gound zero up, which is what im looking for.

推荐答案

首先,您需要知道要使用哪个OPC。

First you need to know which OPC you want to use.


  • 经典OPC基于Windows COM / DCOM的DA / HDA和A& E

  • OPC XML / DA,DA作为Web服务,但是性能有限。

  • OPC UA,最后一个规范允许您在非Windows平台上实现它,并合并DA,HDA和A& E。

此后,您可以选择要使用的语言,因此可以免费使用或不使用某些SDK。

After that, you could choose the language you want to use and so use some SDK free or not.

一个用于OPC的好网站: http://www.opcconnect。 com / source.php 列出了您可以使用的工具包。

One good website for OPC : http://www.opcconnect.com/source.php has lists of Toolkits you could use.

这篇关于Noob OPC指南:如何编写C#Hello World客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆