opc

Delphi OmniThreadLibrary + OPC Client

﹥>﹥吖頭↗ 提交于 2019-12-07 16:18:35
问题 I am working in a single-thread OPC client program managing 3 different Siemens PLCs connected to the same OPC Server, also by Siemens. The single-threaded client looks like this: loop begin processPLC1; processPLC2; processPLC3; end; Each processPLC procedures make calls to the underlying OPC library, such as: OPCutils.WriteOPCGroupItemValue(FGroupIf, FHandleItemOpc, Value); Ok, now I want to call each processPLC in a different thread and work in parallel. I did some research and started

Delphi OmniThreadLibrary + OPC Client

橙三吉。 提交于 2019-12-06 03:05:08
I am working in a single-thread OPC client program managing 3 different Siemens PLCs connected to the same OPC Server, also by Siemens. The single-threaded client looks like this: loop begin processPLC1; processPLC2; processPLC3; end; Each processPLC procedures make calls to the underlying OPC library, such as: OPCutils.WriteOPCGroupItemValue(FGroupIf, FHandleItemOpc, Value); Ok, now I want to call each processPLC in a different thread and work in parallel. I did some research and started some code using OmniThreadLibrary, but I don't think the OPC code is multithread-safe. Is it? Should I use

Configuration OPC UA Server (Milo)?

给你一囗甜甜゛ 提交于 2019-12-04 16:16:24
I've just checked out the Eclipse Milo Project ( https://projects.eclipse.org/proposals/milo ), which seems to be a great project for an "open" OPC UA Client/Server even with the implemented OPC Stack. The project on github ( https://github.com/eclipse/milo ) contains a Hello World example, where an OPC Server is started and an example node is sent and received from the client. Everything works fine! But in my next step, I wanted to check if the server is configured correctly. Therefore I've installed Matrikon Explorer, but the Explorer is stating out "No OPC servers installed on this machine"

opc 带有session

牧云@^-^@ 提交于 2019-12-03 16:42:17
现在使用java来做工控系统的几种方式: 知识储备: 一、OPC Server端目前常见的有以下几种协议: 参考博客: https://www.cnblogs.com/ioufev/articles/9697717.html https://www.cnblogs.com/ioufev/articles/9697890.html 二、DOCM的配置 可以参考https://www.cnblogs.com/ioufev/p/9365919.html 三、OPCServer服务器属性 java 获取OPCServer的方式有两种, 1、jeasyopc:适用于32位操作系统 2、Utgrad :可跨平台 可以根据具体情况具体分析,相比较对于初次接触来说jeasyopc相对简单。 四、试验模拟OPC 1、实验用模拟OPCServer(50M):MatrikonOPC 2、实际OPCServer使用(450M,中文):KEPServer V6 Utgard: 官网: http://openscada.org/projects/utgard/ 博客参考 https://www.cnblogs.com/ioufev/articles/9894452.html https://elfasd.iteye.com/blog/2064410 JeasyOPC: 博客参考: https://blog

OPC Utgard的数据访问方式

情到浓时终转凉″ 提交于 2019-12-03 16:42:05
1.同步读取某个点位的值 Item项的read()方法 Server server = new Server(BaseConfiguration.getCLSIDConnectionInfomation(), Executors.newSingleThreadScheduledExecutor()); server.connect(); Group group = server.addGroup(); Item item = group.addItem(“Random.Real5”); System.out.println(“ItemName:[” + item.getId()+ “],value:” + item.read(false).getValue()); 2.基于AccessBase的Utgard的使用 2.1 循环同步读取 使用SyncAccess类隔时间段地进行同步读取数据 ,它实现了Runnable接口,实际上通过另一个线程进行同步读,具体代码如下: public static void syncRead(Server server) throws Exception { final String itemId = “Random.Int2”; // 每隔1秒同步读 AccessBase access = new SyncAccess(server, 1000);

Alternative to OPC-UA

核能气质少年 提交于 2019-12-03 12:18:45
问题 Is there any decent alternative to OPC-UA as a solution for accessing process data of a system composed of various PLCs? Something that is platform independent and can "speak" with products of different brands ? I've heard of MQTT but it seems to be much more like a transport protocol, and only that. It does not have all the higher level stuff like the information modeling, etc. Thanks for your help! 回答1: OPC is the only standard way for communicating with PLCs. OPC DA is the old alternative.

OPC Client - how to read from Remote OPC Server

百般思念 提交于 2019-12-03 06:26:16
问题 I used OPCDotNetLib but can't read data from remote OPC Server there . I can connect , like Type typeofOPCserver = Type.GetTypeFromProgID(clsidOPCserver, ip); But looking the methods DataChanged or ReadCompleted doesn't work or works wrong. I tested same with local OPC Server and it works well , with remote OPC Server I can connect, I can add items and can read data. OPC Server on remote machine shows that I read them, but I can't see any data. Seems like I need another workaround on

Alternative to OPC-UA

前提是你 提交于 2019-12-03 05:12:37
Is there any decent alternative to OPC-UA as a solution for accessing process data of a system composed of various PLCs? Something that is platform independent and can "speak" with products of different brands ? I've heard of MQTT but it seems to be much more like a transport protocol, and only that. It does not have all the higher level stuff like the information modeling, etc. Thanks for your help! OPC is the only standard way for communicating with PLCs. OPC DA is the old alternative. OPC UA is the new one and recommended, nowadays. Before OPC there was just proprietary protocols and shared

How to connect remote OPC Server using opcdaauto.dll using C#?

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: DLL used : opcdaauto.dll from OPC Foundation OPCServer ObjOPCServer; OPCGroups ObjOPCGroups; OPCGroup ObjOPCGroup; ObjOPCServer = new OPCServer(); string _serverName = "Kepware.KEPServerEX.V5"; //In place of "", I need to give IP address of machine where OPC Server is present ObjOPCServer.Connect(_serverName, ""); Then also I am not able to communicate . Any help highly appreciated. Thanks in advance 回答1: OPCServer ObjOPCServer = new OPCServer(); OPCGroups ObjOPCGroups; OPCGroup ObjOPCGroup; //string _serverName = "Kepware.KEPServerEX.V5";

OPC和DCOM配置

匿名 (未验证) 提交于 2019-12-03 00:43:02
百度网盘 百度网盘 密码: dhhc,, 网上参考1 ,, 网上参考2 百度网盘 密码: ykj2 1.安装OPC运行库 KEPServer集成了OPC运行库,所以不需要单独安装 OPC Core Components Redistributable.msi 链接: https://pan.baidu.com/s/1gU7_2e1Ye_qW1saObYV6xQ 密码: 9evk 2.创建用户并赋予访问权限 :计算机管理 创建用户: OPCServer 123456 添加到DCOM组 3.防火墙关于 DCOM 和 OPC 的规则 :高级安全 Windows Defender 防火墙 开放 DCOM 访问 :DCOM(wmi)启用 135端口:只有一个计算机不需要设置 创建 OPC 程序规则 :允许程序 OPCEnum   位置:"C:\Windows\SysWOW64\OpcEnum.exe" 添加 OPC 服务器程序的规则:允许程序 KEPServer的server_runtime   位置:"C:\Program Files (x 86) \Kepware\KEPServerEX 6\server_runtime.exe" 4.配置 DCOM 安全:组件服务 配置 COM 的安全设置:我的电脑--COM属性--安全--访问、激活 配置 OPCENUM 的安全设置