摘要
针对目前PLC开发平台的缺陷和不足,基于面向对象的设计思想,开发了一套全新的PLC梯形图编辑软件。介绍软件的几大功能模块,详细论述梯形图文件的存盘和读取,梯形图语言向指令表的转化并最终生成目标代码的过程,以及模拟仿真的实现。软件采用巧妙的类管理机制和灵活的扫描算法,成功实现图形语言向文本语言的转化,由于指令语言比较接近机器语言,通过解释器对指令的解释生成控制系统所能识别的代码,可以实现程序在控制系统上的运行。本软件作为一个编写PLC程序的通用开发平台,功能强大、操作简单。
Aiming at the limitation and lack of the current development platform for PLC, based on the idea of oriented-object, a kind of completely new software is put forward, various functional modules of the software are introduced. In addition, the storage and reading of ladder diagram, the transformation from ladder diagram to instruction list, and the realization of simulation are presented in the detail. The flexible mechanism of class management in combination with nimble scanning algorthm are adopted in this software, the transformation from graph language to text language is realized. As instruction list is fairly close to the binary code, then the finally code, which can be distinguished by control system, will be educed through the interpreter's explanation to the instruction list, so that the running of the procedure in control system can be realized. As a universal development platform, the software is not only powerful,but also simple to operate.
出处
《现代制造工程》
CSCD
2007年第7期116-119,共4页
Modern Manufacturing Engineering
基金
台湾亿图实业股份有限公司合作项目
关键词
梯形图
指令
编译
仿真
Ladder diagram
Instruction list
Compile
Simulation