首页> 中文期刊> 《自动化仪表》 >多表位电能表检定装置的通信控制研究

多表位电能表检定装置的通信控制研究

         

摘要

为实现对多表位电能表检定装置的通信控制,并满足实时性要求,对C#.NET中的SerialPort类进行研究.详细阐述了串行通信的原理和实现过程,并提出了两套设计方案.方案一采用AutoResetEvent类结合SerialPort类中的DataReceived事件驱动的方法进行设计;方案二采用发送控制指令数据联动接收设备应答消息数据的方法进行设计.采用方案二的方法,为多表位电能表检定装置设计、开发了上位机应用程序,并且应用到电能表型式评价的温度影响试验中.经试验验证,该串行通信方案可行、可靠,并具有良好的可传送性,为提高电能表型式评价试验的自动化检测效率作出了贡献.两套设计方案不仅适用于各类电能表检定装置的通信控制,还适用于其他工控设备的RS-232串行通信,为开发自动化控制设备的应用程序提供了捷径.%In order to realize the communication control of verification device for energy meters in multiple positions, and to achieve the requirement of real -time performance, the SerialPort class in C #. NET has been researched. The principle and implementation process of serial communication are described in detail, and two sets of design schemes are put forward. The scheme 1 is designed by using the AutoResetEvent class and the DataReceived event-driven method in the SerialPort class;the scheme 2 is designed by sending the control command data to the receiving device to answer the message data. Through the use of scheme 2,host computer application program for the design of multi-epitope energy meter verification device is developed,and applied in the test of temperature influence for type evaluation of energy meter. The experimental results verify that the serial communication scheme is feasible and reliable,and has good transmissibility;it has made contribution to improve the efficiency of automatic detection of type test for energy meter. Two of the design schemes are not only applicable to the communication control of all types of energy meter verification devices, but also suitable for RS-232 serial communication of other industrial control equipment,which provide shortcut for the development of application programs of automated control equipment.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号