论文部分内容阅读
在嵌入式PLC开发环境中,梯形图向指令表的转换是必不可少的一步,为了完成梯形图向指令表的转换,提出了一种基于能流的梯形图转换方法。通过将梯形图视为一种能流,设置能流阶级,插入虚节点,合并节点成为一种AOV图,并串联归并生成指令表,转换过程中同时进行语法检查。针对转换实现过程,详细说明了对梯形图的存储和扫描的方法。最后,给出了一个具体转换实例,实验结果说明该方法能准确的进行梯形图到指令表的转换。
In the embedded PLC development environment, the conversion of ladder diagram to the instruction list is an essential step. In order to complete the conversion of the ladder diagram to the instruction list, an energy-based ladder diagram transformation method is proposed. By treating the ladder diagram as a power flow, setting the power flow class, inserting dummy nodes, merging the nodes into an AOV map, and concatenating and generating the instruction list, the syntax check is performed in the conversion process. For the conversion process, detailing the method of storing and scanning the ladder diagram. Finally, a concrete conversion example is given. The experimental results show that the method can accurately convert the ladder diagram to the instruction list.