软PLC开发系统的设计与实现  被引量:6

Design and implementation of soft PLC development system

在线阅读下载全文

作  者:苏淑芝[1] 刘志维[1] 

机构地区:[1]华南理工大学机械与汽车工程学院,广东广州510640

出  处:《现代电子技术》2012年第10期15-17,20,共4页Modern Electronics Technique

基  金:国家863计划资助项目(2009AA04Z111);广东省重大科技专项项目(2010A080401006)

摘  要:介绍了软PLC开发系统的构成和功能,并针对梯形图编辑到目标代码生成的过程,论述了编辑模块、编译模块和仿真模块的设计方案。首先,利用Visual Studio 2005建立梯形图编辑界面和梯形图组件库,实现组件调用和梯形图编辑功能;其次,根据梯形图的构成特点,通过一定的扫描规则来构成二叉树,并通过后序历遍算法来获得指令表;然后,为了实现编辑环境和运行环境的高效通信,通过查表的方式将指令表转换为较为简单的目标代码;最后,建立仿真环境来验证编程的正确性。The structure and function of the soft PLC development system is introduced.The design of editing module,compiler module and simulation module is discussed for the process from the ladder diagram editing to the object code generation.The ladder diagram editing interface and component library are built with Visual Studio 2005 to realize the functions of component call and ladder diagram editing.A binary tree is constituted according a certain rule and the characteristics of ladder diagram.The instruction list is achieved from the binary tree by postorder traversal algorithm.The instruction list is transformed to the simple target code through looking up conversion table.The simulation module is built to verify the correctness of the programming.

关 键 词:软PLC 梯形图 指令表 二叉树 

分 类 号:TN919-34[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象