首页 | 官方网站   微博 | 高级检索  
     

软PLC梯形图到语句表转换新策略的研究
引用本文:石锐,周雷,杨正益.软PLC梯形图到语句表转换新策略的研究[J].计算机工程与应用,2010,46(18):244-248.
作者姓名:石锐  周雷  杨正益
作者单位:1.重庆大学 计算机学院,重庆 400044 2.重庆大学 软件学院,重庆 400044
基金项目:国家"十一五"科技支撑计划重大项目资助 
摘    要:提出了一种用于实现软PLC梯形图到语句表转换的新策略。首先将梯形图映射为AOV图,然后对每级的AOV图进行扫描以确定各顶点之间的不同层次的串并联关系,扫描的同时自底向上建立一棵逻辑树以保存扫描结果,最后通过遍历这棵树生成语句表。通过实例说明此策略能清晰地表达出梯形图各元件的逻辑关系,语句表转换过程准确快速。执行过程中还能对梯形图进行逻辑查错和规范检查。

关 键 词:软可编程逻辑控制器(PLC)  梯形图  语句表  扫描算法  逻辑树  
收稿时间:2008-12-15
修稿时间:2009-2-27  

Research on new strategy for transforming from soft PLC ladder diagram to sentence list
SHI Rui,ZHOU Lei,YANG Zheng-yi.Research on new strategy for transforming from soft PLC ladder diagram to sentence list[J].Computer Engineering and Applications,2010,46(18):244-248.
Authors:SHI Rui  ZHOU Lei  YANG Zheng-yi
Affiliation:1.School of Computer Science,Chongqing University,Chongqing 400044,China 2.School of Software,Chongqing University,Chongqing 400044,China
Abstract:To realize the transformation from soft PLC ladder diagram to sentence list,a new strategy is introduced.The strategy maps the ladder diagram to AOV graph at first,and then scans the AOV graph to confirm the serial and parallel relationship in different degrees between every vertex;in the meantime,constructs a logic tree from bottom to top in order to save the result of scanning;at last generates sentence list via traversing the logic tree.Through an example,it illustrates that the strategy can show the logic relationship of each element in ladder diagram clearly,and can transform correctly and quickly.In addition,while being executed,the strategy is able to check the logic faults and regulations of the ladder diagram.
Keywords:soft Programmable Logic Controlle(rPLC)  ladder diagram  sentence list  scanning algorithm  logic tree
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号