摘要
本文重点是软PLC梯形图编辑软件的设计与实现。采用跨平台能力很强的Qt作为开发工具,能够将系统应用于多种操作平台,使系统具有更强的开放性;在对梯形图整体结构进行深入分析的基础上,利用面向对象的方法,对系统进行了类层次结构的设计,提高了软件开发的执行效率;采用双层双向链表存储梯形图,使得动态编辑操作更加方便、灵活;通过顺序扫描梯形图程序,将源语言转换为指令表程序,此方法使得转换过程相对简单。最后对软件进行测试,验证了设计方法的正确性与可用性。
This paper mainly introduces the design and performance of SoftPLC Ladder Diagram editing software. Adoppting Qt as the developing tool which applied in multi-operating system, so the system is more opening. Based on in-depth analysis of the ladder diagram's overall structure, the systerm's class hierarchy is designed using object-oriented method, which enhances the efficiency of the software. Applying the storage structure of double layer and double linked list makes the dynamic editing operations more flexible and convenient. The source language converted to instruction list through sequential scanning the ladder diagram makes the process simpler. At last, the experimental results in testing the software show that the design method is accurate and feasible.
出处
《计算机系统应用》
2011年第12期64-69,共6页
Computer Systems & Applications
基金
"高档数控机床与基础制造装备"国家科技重大专项(2011ZX04016-071)
关键词
QT
梯形图
指令表
类层次
存储结构
Qt
ladder diagram
instruction list
class hierarchy
storage structure