论文部分内容阅读
为实现PLC顺序功能图语言向梯形图语言的转换,阐述了将PLC的顺序功能图映射为有向图的思想与实现算法。首先对顺序功能图图形网络的描述方式进行严格定义,提出了一种新的AOV节点定义,把顺序功能图中的步元件与其前后连接信息相结合抽象为AOV图的顶点,步元件之间的转换关系抽象为弧,然后在此基础上提出了统一的顺序功能图程序结构的表达方式。本算法在保持顺序功能图结构完整性的基础上,简化了模型,同时可以很好地检查其中的连接错误,为从图的角度研究顺序功能图向梯形图的转化打下了基础。基于本算法思想设计的可编程逻辑控制器编程平台也在实际应用中得到验证,进一步证明其正确性和可用性。
In order to realize the conversion of PLC sequential function chart language to ladder language, the idea and implementation algorithm of mapping PLC sequential function chart into directed graph are described. Firstly, the definition of sequential functional graph graph network is defined strictly. A new definition of AOV node is proposed. The step elements in the sequential functional graph are combined with their front and rear connection information to abstract the vertices of AOV graph. The conversion relation is abstracted as an arc, and then based on this, a uniform expression of the sequential function chart program structure is proposed. The algorithm simplifies the model while maintaining the structural integrity of the sequential function chart, and at the same time it can check the connection errors well, which lays the foundation for the study of the transformation from sequential chart to ladder chart. Programmable logic controller programming platform based on the idea of this algorithm has also been verified in practical applications to further prove its correctness and usability.