基于多叉树的梯形图向指令表转换算法
CSTR:
作者:
作者单位:

(浙江工业大学 信息工程学院,杭州 310023)

作者简介:

周伟强(1990-),男,浙江海宁人,硕士研究生,主要从事控制科学嵌入式方向的研究。[FQ)]

通讯作者:

中图分类号:

基金项目:


Transformation Algorithm from Ladder Diagram to Instruction List Based on Multi-tree
Author:
Affiliation:

(College of Information and Engineering, Zhejiang University of Technology, Hangzhou 310023, China)

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对目前可编程逻辑控制器(PLC)编辑软件中梯形图向指令表转化算法的缺陷,通过对梯形图语言的分析与研究,并考虑到梯形图和指令表在实际应用时的优劣点,提出了一种借助多叉树来实现PLC梯形图向指令表转换的算法;该算法采取从左至右,从上至下的扫描原则将梯形图构建成多叉树,借助多叉树来反应图符间的逻辑关系,然后通过后序遍历多叉树来得到指令表程序;此算法在处理多重串并联结构梯形图时具有更高的效率,同时适用于堆栈指令,使得该算法具有更好的通用性。

    Abstract:

    Aiming at the shortcomings of the transformation algorithm from ladder diagram to instruction list in the current programmable logic controller(PLC) editing software, this paper presents an algorithm to realize the transformation from PLC ladder diagram to instruction list based on multi-tree. Through the analysis and research of ladder diagram, shows the advantages and disadvantages of the ladder diagram and instruction list in practical application. The multi-tree data structure is created following the scanning principle that from left to right, from top to bottom. And the multi-tree is used to reflect the logical relationship between the diagrams. Then get the instruction list by post-traversing the multi-tree.This algorithm has higher efficiency when dealing with the ladder diagram which has multiple series-parallel structures. And it is also suitable for the stack instruction, which makes the algorithm more versatile.

    参考文献
    相似文献
    引证文献
引用本文

周伟强,何通能,陈德富.基于多叉树的梯形图向指令表转换算法计算机测量与控制[J].,2017,25(8):191-194.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2017-02-18
  • 最后修改日期:2017-03-05
  • 录用日期:
  • 在线发布日期: 2017-09-08
  • 出版日期:
文章二维码