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

PLC梯形图向语句表的转换算法及实现
引用本文:孙玉霞,李国屏,夏端峰.PLC梯形图向语句表的转换算法及实现[J].湖北师范学院学报(自然科学版),2012,32(1):5-9.
作者姓名:孙玉霞  李国屏  夏端峰
作者单位:湖北师范学院计算机科学与技术学院,湖北黄石,435002
摘    要:基于块生长观念提出了一种全新的将梯形图转化为语句表的转换算法。该转换算法以梯级为单位,采取"自左而右,自上而下"的扫描顺序,通过竖线标志来确定元件间的串并联关系,借助存放块(依据元件间的串并联关系不断生长的块)的栈来定位下次扫描的元件对象。该算法不仅能清晰地表达出梯形图各元件的逻辑关系,语句表转换过程准确快速,还能成功的实现梯级中包含多分支输出的复杂梯形图到语句表的转换。

关 键 词:可编程控制器(PLC)  梯形图  指令表  块生长

Algorithm and realization transformation from PLC ladder diagram to instruction list
SUN Yu-xia,LI Guo-ping,XIA Duan-feng.Algorithm and realization transformation from PLC ladder diagram to instruction list[J].Journal of Hubei Normal University(Natural Science),2012,32(1):5-9.
Authors:SUN Yu-xia  LI Guo-ping  XIA Duan-feng
Institution:(College of Computer Science and Technology,Hubei Normal University,Huangshi 435002,China)
Abstract:A new transformation algorithm which transformers the ladder diagram to PLC instruction list based on block-growth is prompted.This algorithm uses ladder step as the unit,scans the serial/parallel relationship among the components according to the sequence of "left-right" and "top-down",and locates the next component using stack.The data elements block in the stack grows according to the serial relationship between the components during the traverse.This algorithm can clearly express the logic relationship between the components in the ladder diagram,accurately and quickly translate the diagram into the instructions,and accomplish to translate the complex ladder diagram which includes multi-branch into the instruction list.
Keywords:PLC  ladder diagram  instruction list  block-growth
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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