首页> 中文期刊> 《微型电脑应用》 >基于深度遍历的S7-300系列可编程控制器梯形图程序自动生成算法研究

基于深度遍历的S7-300系列可编程控制器梯形图程序自动生成算法研究

     

摘要

提出基于西门子S7-300系列PLC的梯形图程序自动生成软件作为一种替代工程设计人员手写PLC梯形图代码的解决方案.编程人员根据规则给出系统的流程图和硬件的地址表并输入到该软件,梯形图就能自动生成.在这个转换的过程中,用树形的数据结构来表示流程图中各个模块之间的逻辑关系,并对其进行深度遍历以表达该逻辑关系.根据该逻辑关系,并将模块的内容转化成对应的PLC符号, 即可生成对应的梯形图.%A kind of Ladder program auto-producing software based on Siemens S7-300 series PLC is introduced in this article as a solution to replace manually writing ladder code.That means ladder program can be produced according to system flow chart and hardware I/O address list inputted by programmer based on programming rule.During transferring that information into ladder program,logical relation between ladder program modules is described in tree structure and sorted by depth-first traversal.According to the logical relation,ladder program can be produced after replacing flow chart modules with ladder program symbols.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号