opc

How to upgrade the project build in visual studio 2005 to visual studio 2008?

无人久伴 提交于 2019-12-11 05:59:49
问题 I have one OPC ( OLE for Process control ) server project which is developed into visual studio 2005. I want to run it in visual studio 2008. The coding for the OPC server project is done in VC++. I want to connect my OPC client to this OPC server. When I was opened the OPC server project which was build into visual studio 2005 into visual studio 2008 first time it was asking for conversion wizard. I gone through that wizard & successfully finished that wizard. But when I build ( by right

Memory leak using pywin32com for opc

淺唱寂寞╮ 提交于 2019-12-11 03:56:48
问题 I am having a hard time trying to figure out how to address leaking memory. I think this might be an issue with pywin32 but I am not completely sure. My code to do reading/writing individual items seems to work just fine, but when using group functions it slowly leaks memory. I suspect this is from the 1-based array that must be passed in the server_handles. Does anyone know of a work around? def read_group(self, group, mode=OPC_SYNC, source=OPC_DS_CACHE): """ Read a group returning a list of

基于OPC协议的上位机PLC通讯 (一)

本小妞迷上赌 提交于 2019-12-10 07:19:26
OPC技术是通常是用于PLC和上位机通讯的一个基于COM的一个通讯组件。比如某个项目是用西门子系列的PLC控制的自动化系统通过西门子的中间件通常会安装S7-200 PC Access 或者SimaticNet的OPC服务端软件。这两个软件的目的就是在上位机的系统中搭建了一个OPC Server并提供访问可以编程实现遵循OPC技术使上位机与PLC通讯的功能。 此外,需要强调一点,OPC并不是西门子的技术,它是一个标准,凡是遵循OPC技术的PLC都能共通过其标准与下位机通讯 。 几个关于OPC的概念: 同步读:在调用OPC的接口函数时实时的将数据(组)通过出口参数传出 同步写:在调用OPC的接口函数时实时的将数据写入寄存器 异步读:调用OPC接口不会直接写入PLC寄存器,而是在注册的回调函数中拿到数据的相关信息 异步写:也是在回调函数中将数据写入 组的概念: 组中可以包含项,是多个项的一个集合 组是和OPC提供的IO接口绑定的,OPC的IO接口是用于读写数据 项的概念: 项其实就是对于了PLC上的对应地址,每种OPC服务器根据厂商不同定义的格式不同 关于封装的类 情况说明(这个类是本人在开发上位机软件与西门子S200系列PLC通信是所编写的 OPC服务器是SimaticNet) 几个疑惑点说明: OPC服务器提供了几个接口的头文件需要在项目中添加 需要加到工程中的文件: opc.h

OPC测试常用的OPCClient和OPCServer软件推荐

为君一笑 提交于 2019-12-09 19:30:39
OPC测试常用的OPCClient和OPCServer软件推荐 董维康_MES专家 发布于:2013-04-30 各位在进行OPC通讯时,常会遇到两种情况: 1)使用一个OPCClient在同一台计算机上连接远程计算机上的多个OPCServer时,发现某个OPCServer是通畅的,但其他的OPCServer却无论如何都不通。不知该如何定位问题了? 2)多个厂家的OPCClient连接同一计算机上的OPCServer,发现有的OPCClient通了,有的不通,有的能获取数据,有的不能获取数据。 ff6ff【中国自动化网社区】4982c2【http://sns.ca800.com】cd82c 基于以上情况,将一直以来常用的OPCClient和OPCServer推荐几款,以备大家不时之需。 不是最好,但可能是恰好! c9a377【中国自动化网社区】d37b43【http://sns.ca800.com】489b644 1. OPC DA Client推荐: 推荐的理由(此标准仅仅代表个人意见): 1) 单文件;携带方便,无需安装,绿色环保。 2) 遵循OPC标准,稳定。 3) 功能无需多,但适用功能有一个或多个。 c9a377【中国自动化网社区】d37b43【http://sns.ca800.com】489b644 推荐的第一位:OPCClient.exe 把它放在第一位并不是有多好

Noob guide to OPC: how to write a C# Hello World client?

一笑奈何 提交于 2019-12-09 06:46:18
问题 here is my situation: 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. 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#.

What do the different DCOM / COM security settings mean?

你离开我真会死。 提交于 2019-12-08 23:45:00
问题 Our application uses COM and DCOM extensively, and so as part of that we need to ensure that the COM security permissions are correctly set up. I know that I can access these permissions under the Component Services MMC snap in and that I can set the defaults / limits under the property pages for the Computer And that under the DCOM Config node I can drill down and set securty permissions for individual applications I also understand the relationship between the "Defaults" (what DCOM

Free opc ua server with model import feature

限于喜欢 提交于 2019-12-08 12:39:41
问题 I want to implement OPC UA communication for my application (c#) I found some OPC UA server simulations (Prosys and Softing OPC UA) I can connect and read data without problem. What I want is to implement euromap 77 standards. http://www.euromap.org/euromap77 As far as I understand I must use model structure when accessing data via OPC. I want to load this model to OPC UA server and work on that data structure is it possible to import this http://www.euromap.org/files/Opc_Ua.EUROMAP77.RC1_00

MIDL Compiler error: MIDL

筅森魡賤 提交于 2019-12-08 06:13:43
问题 When I use MIDL to compile a IDL file to .h and .c, I get a error said: midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe. Please kindly help me, I do not know why. The MIDL compiler which I use is part of VC++ 6.0. Thanks. 回答1: It seems your environment is not correctly set. Try calling vcvars32 before compiling. 来源: https://stackoverflow.com/questions/5079275/midl-compiler-error-midl

how to connect and read values from kepware using OPCAutomation.dll

对着背影说爱祢 提交于 2019-12-08 05:11:10
问题 I am creating a small c# program to connect and read value from kepware server using OPCAutomation.dll, but unable to get its syntax? OPCAutomation.OPCServer _OPCServer = new OPCAutomation.OPCServer(); _OPCServer.connect("", ""......); what values will come inside these brackets? 回答1: OPCAutomation.OPCServer _OPCServer = new OPCAutomation.OPCServer(); _OPCServer.connect("Kepware.KEPServerEX.V5", ""); The second parameter is the OPC Server node and can be left String.Empty. From Reflector:

Populating opcua address space with Nodes from an xml schema

狂风中的少年 提交于 2019-12-08 01:48:54
问题 Am working on a project to build an opc ua server from specification, I've gone far enough on the implementation, am currently working on the write request, I already have a few nodes in the server address space. There seem to be so many nodes, so many actually. It's almost impossible to create and add the Nodes one by one. Anyways back to the question, I've downloaded an xml file from opc foundation containing schema for all the nodes in the address space, Here is a link to the xml file What