首页 | 本学科首页   官方微博 | 高级检索  
     

梯形图与指令表互换算法的研究
引用本文:裴锋,蔡启先,郭森,谭平.梯形图与指令表互换算法的研究[J].广西工学院学报,2010,21(3):42-45.
作者姓名:裴锋  蔡启先  郭森  谭平
作者单位:1. 广西工学院电子信息与控制工程系,广西,柳州,545006
2. 广西工学院计算机工程系,广西,柳州,545006
摘    要:梯形图和指令表之间互换算法的研究是PLC发展的一项关键技术,目前采用的互换算法是通过AOV图实现二者之间的转换,但是该算法效率不高.研究提出了基于森林和二叉树实现梯形图与指令表相互转换的一种新算法,该转换算法将梯形图映射成森林,然后由森林建立对应的二叉树来表示其逻辑关系,通过遍历二叉树来实现PLC梯形图与指令表的互换.该算法简单快速,其正确性和可行性在PLC的编程软件平台上得到了验证.

关 键 词:PLC  梯形图  指令表  森林  二叉树

Researches about the Transformation Algorithm between Ladder Diagram and Instruction List
PEI Feng,CAI Qi-xian,GUO Sen,TAN Ping.Researches about the Transformation Algorithm between Ladder Diagram and Instruction List[J].Journal of Guangxi University of Technology,2010,21(3):42-45.
Authors:PEI Feng  CAI Qi-xian  GUO Sen  TAN Ping
Affiliation:(a. Department of Electronic Information and Control Engineering; b. Department of Computer Engineering, Guangxi University of Technology, Liuzhou 545006, China)
Abstract:The research of intereonversion between ladder diagram and instruction list becomes a key technique in PLC development. The conversion algorithm at present is to implement their interconversion by sorting AOV graph with low efficiency. A new algorithm about interconversion between ladder diagram and instruction list based on forest and binary tree is presented in this paper. At first it maps ladder diagram to forest, and then it establishes a binary tree to represent ladder diagram logical relationship with forest. At last it realizes the exchange of PLC ladder diagram and instruction list by traversing binary tree. The algorithm is simple and rapid, its correctness and feasibility are verified in programming software platform of PLC.
Keywords:PLC
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号