作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

梯形图数据依赖关系分析与并行提取

孙大群,严 义,邬惠峰   

  1. (杭州电子科技大学智能与软件技术研究所,杭州 310018)
  • 收稿日期:2012-12-25 出版日期:2014-02-15 发布日期:2014-02-13
  • 作者简介:孙大群(1988-),女,硕士研究生,主研方向:软件自动化,编译技术;严 义,教授;邬惠峰,副教授
  • 基金资助:
    浙江省自然科学基金资助项目“动态可重构的嵌入式构件描述及重构方法的研究”(Y1090448)

Data Dependence Relation Analysis and Concurrent Extraction of Ladder Diagram

SUN Da-qun, YAN Yi, WU Hui-feng   

  1. (Institute of Intelligent and Software Technology, Hangzhou Dianzi University, Hangzhou 310018, China)
  • Received:2012-12-25 Online:2014-02-15 Published:2014-02-13

摘要: 程序依赖关系分析在对程序进行测试、维护、分析和优化过程中起着重要作用。梯形图(LD)程序中数据定义和数据引用会导致梯级之间存在数据依赖关系和潜在并行性。针对该问题,通过构造数据依赖关系有向图构建数据依赖关系,提取LD图梯级间的数据流和数据依赖信息,并从数据依赖关系有向图中获得LD图并行梯级。实验结果表明,通过并行提取可使LD图的扫描周期缩短至原来的20%~50%。

关键词: 可编程控制器, 梯形图, 数据依赖, 有向图, 并行性, 并行梯级

Abstract: Program dependence relation analysis is an important method of testing, maintaining, analyzing and optimizing program, especially parallel extraction. The dependence of rungs caused by definition and reference has the same variable and the parallelism of sequential rungs in Ladder Diagram(LD). Aiming at the problem, a method is proposed to extract LD diagram rung data flow and data dependence relation by constructing data dependence relation directed diagram, recognize LD diagram parallel rung in data dependence relation directed diagram. Experimental result shows that the LD diagram scan time is shorten to 50%~20% by concurrent extraction.

Key words: Programmable Logic Controller(PLC), Ladder Diagram(LD), data dependence, directed diagram, parallelism, parallel rung

中图分类号: