期刊文献+

类C脚本架构设计及在电力系统中的应用 被引量:3

Design of C Style Script Structure and Its Application in Power System
下载PDF
导出
摘要 不同国家和地区的用户在电力系统装置功能和配置上有一定的差别,要求基于工具软件实现装置的灵活配置需求。研发人员在采用模块化、图形化元件搭建装置功能过程中,也需要有手段减轻人机接口配置工作量。为此,提出类C脚本的解决方案,设计了适用于电力系统装置配置建模的API接口函数,支持设置变量属性、信号连线、定值分组、元件投退、IEC61850建模等功能。开发了脚本解析器,通过构建基于表驱动的词法提取、基于命令模式的脚本执行、基于递归下降法的表达式计算、基于多级Hash查找等关键算法,实现了脚本快速解析执行,6万行脚本解析耗时小于3 s。基于该脚本架构,装置研发人员可定义模块化元件脚本,实现多个元件实例配置的自动化复用;可定义全局脚本,根据用户选项,触发条件执行语句,实现灵活的装置选型配置。实践表明,类C脚本显著提高了电力系统保护测控装置的研发效率和产品的适用范围。 In different countries and regions,power system users have certain difference on the device function and configuration, so the tool software need to achieve the flexible allocation of equipment requirements. Developers also need to reduce the HMI configuration work when using modular and graphical components to setup the device. The solution of C style script is presented,in which API interface is suitable for power system device configuration, and the scripts support variable properties setting, signals linking,parameters grouping, enable or disable components,IEC61850 modeling and other functions. The main modules and script parser processes are implemented by establishment of the key algorithms including lexical extraction based on table driven,script execution based on command mode,expression calculation based on the recursive descent method,and lookup based on multiple Hash. 60 000 lines of resolution takes less than 3 seconds. Device developers can define components script, to realize the automatic configuration of reuse. They also can define global scripts, which provide maximum device features and configuration options. Practice shows that class C script can significantly improve the development efficiency of measurement and control device for power system protection and scope of the product.
作者 陈宏君 熊蕙
出处 《计算机技术与发展》 2017年第3期171-175,180,共6页 Computer Technology and Development
基金 国家"863"高技术发展计划项目(2015AA050101)
关键词 类C脚本 元件脚本 全局脚本 装置配置 C style script component script global script device configuration
  • 相关文献

参考文献9

二级参考文献88

共引文献110

同被引文献16

引证文献3

二级引证文献7

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部