检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]浙江省计量科学研究院,浙江杭州310018 [2]国网浙江省电力公司电力科学研究院,浙江杭州310011
出 处:《自动化仪表》2017年第10期50-53,共4页Process Automation Instrumentation
基 金:国家高技术研究发展计划(863计划)基金资助项目(2015AA050404)
摘 要:为实现对多表位电能表检定装置的通信控制,并满足实时性要求,对C#.NET中的Serial Port类进行研究。详细阐述了串行通信的原理和实现过程,并提出了两套设计方案。方案一采用AutoResetEvent类结合Serial Port类中的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 Serial Port 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 AutoReset Event class and the DataReceived event-driven method in the Serial Port 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.
关 键 词:能源电力 电能表 检定装置 型式评价 串行通信 数据采集
分 类 号:TH89[机械工程—仪器科学与技术] TP29[机械工程—精密仪器及机械]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.28