摘要
针对数控系统可编程逻辑控制器(PLC),使用MiniGUI实现一个梯形图编程工具。首先指出MiniGUI占用资源低、移植性好等优点。随后提出图元的数据结构、手动绘制图元的方法,在此基础之上给出梯形图的数据结构以及如何刷新梯形图。此外,编程系统使用"正向深度扫描算法"来实现梯图向IL程序的转换并且在转换之前还对梯图进行一些语法正确性的检查。最后给出一个梯形图转换的实例,验证了编辑工具的实用性。
In view of the Programmable Logic Controller (PLC) in numerical controller system, MiniGUl is used to realize a ladder diagram programming tool. Firstly, some advantages such as low oc- cupancy of system resources, good portability are pointed out. Then the data structure and the method of drawing graphical objects are devised. On the the basis of graphical object, the data structure and the method of refreshing ladder diagram are proposed. In addition, an algorithm named " straight and deep traversal algorithm" is used to convert ladder diagram also needed befor the conversion. Finally, this paper validates the utility of this tool. into IL program and syntactic correctness check is gives a ladder diagram conversion instance which
出处
《组合机床与自动化加工技术》
北大核心
2013年第2期30-33,37,共5页
Modular Machine Tool & Automatic Manufacturing Technique
基金
国家科技重大专项(2012ZX01029-001-002)
国家科技支撑计划(2012BAF13B08)
关键词
MINIGUI
软件PLC
梯图编程
梯图转换
MiniGUI
software PLC
ladder diagram programming
ladder diagram conversion