
第37卷第2期 2014年6月
上海船舶运输科学研究所学报
JOURNAL OF SHANGHAI SHIP AND SHIPPING RESEARCH INSTITUTE
文章编号:1674-5949(2014)02-0061→04
基于OPC自
的隧道监控软件性能优化
肖又发
(中海网络科技股份有限公司,上海200135)
Vol. 37 No. 2 Jun.2014
要:采用OPC自动化接口开发隧道监控软件,当添加监控数据项超过2000条时,响应时间超过了5s。为此,搬
提出在进行OPC隧道监控软件开发时,采用分布式通信的系统架构,并应用订阅及同步数据通信方式,使优化后的软件可满足数据点数众多的长大隧道或隧道群等实际应用环境的需求。该软件目前已应用于民明绕城高速西北段隧道群,现场实测结果显示控制响应时间为1~2s。
关键调:隧道;监控系统;用于过程控制的OLE;数据订阅;C#语言
中图分类号:TP277;U453
文联标患码:A
ThePerformanceOptimization ofAnOPCBasedTunnelMonitoring Software
XiaoYoufa
(China Shipping Network Technology Co. ,Ltd. Shanghai 200135, China)
Abstract: The tests of the tunnel monitoring software with the OPC automation interface indicate that its response time becomes over 5s when monitoring points reaches 2oo0 or more, which is normal in long tunnel or tunnel group applications, This paper proposes the distributed communication system architecture along with subseription and synchronous data communication to solve the problem. The system developed according to the concepts has been installed at the North West section of the Kunming beltrway tunnel group. The measured control response time is within the range of 1-2 s.
Key words: tunnel; monitoring and control system; OPC; Data subscription; C # 0引言
公路隧道属于整个路段中的特殊构造段,因为其内部空间小、密闭性强,一且发生火灾、交通事故、交通拥堵,环境会发生急剧恶化,将直接影响司乘人员的健康和生命安全。因此,建立功能完善、运行可靠的监控系统非常重要。当前的隧道监控软件主要是基于成熟的组态软件或用于过程控制的OLE(OLEforProcess Control,OPC)开发的。但采用OPC自动化接口进行开发的程序存在严重不足,当监控点数达到一定数量后,软件响应速度将急剧下降。为此,提出采用分布式系统架构及数据订阅的方式获取反馈数据,使基于
OPC开发的隧道监控软件尽量不受监控点数的限制,从而适用于长大隧道及隧道群的实时性监控需求。 1
OPC概述
O 应用软件开发者提供一套标准。OPC规范包括OPC服务器和OPC客户端两部分,其实质是在硬件供应商和软件开发商之间建立一套完整的“规则”。只要遵循这套规则,对两者来说数据交互都是透明的,硬件供应
收稿日期:2014-02-25
作者简介:肖又发(1977一),男,潮南润口人,工程师,硕士,主要从事软件开发工作。万方数据