梯形图与语句表互换算法设计.doc

基于AOV图及因果图的梯形图与语句表互换算法 摘要:在分析AOV图的基础上,提出了一种新的数据结构因果图。结合AOV图与因果图提出了一种新的梯形图与语句表双向转换算法。一方面,将梯形图转化为AOV图,并利用AOV图建立因果图,然后遍历因果图的节点生成PLC所能识别的语句表;另一方面,将语句表转化为因果图,基于因果图生成梯形图。经过实际编程证明,该算法简洁、实用性及通用性好,并成功应用于某国产化PLC开发中。 关键词:PLC;梯形图;语句表;AOV图;因果图 Abstract: A new data structure cause and effect(CE) diagraph is proposed by analyzing the AOV diagraph. Transformation algorithm between the ladder diagram and the statement list based on the AOV diagraph and the cause and effect diagraph for programmable logic controller (PLC) systems is proposed. The ladder diagram is transformed to the AOV diagraph, then the state

文档评论(0)

1亿VIP精品文档

相关文档