文档介绍:华中科技大学
硕士学位论文
基于语言转换的嵌入式软PLC系统的研究与设计
姓名:王静思
申请学位级别:硕士
专业:控制理论与控制工程
指导教师:邓忠华
2011-02-23
华中科技大学硕士学位论文
摘要
本文针对传统 PLC 封闭、兼容性差等缺点,结合 IEC61131-3 国际通用的可编程
控制器编程标准,提出了一种基于语言转换的嵌入式软 PLC 系统的整体设计方案,
并对嵌入式软 PLC 开发系统和运行系统的各组成模块分别进行了设计和实现。
论文首先介绍了传统 PLC 的结构和工作原理,并基于传统 PLC 的设计思想,对
嵌入式软 PLC 的系统结构和工作原理进行了深入研究。通过分析比较编译型和解释
型两种执行机制的优缺点,提出了基于语言转换的嵌入式软 PLC 系统整体设计方案,
并对硬件部分系统结构和软件部分系统结构分别进行了规划。接着,详细阐述了嵌
入式软 PLC 运行系统的具体实现,对内存变量系统、用户程序部分、指令解释函数
库以及系统程序部分分别进行了说明。然后,基于编译原理的有关知识,分析了符
号表的建立过程,并据此进行了词法分析器的设计。针对 XML文件内容和结构分离、
可扩展性强的特点,完成了基于 XML的翻译器的设计及实现,并针对具体的监控要
求设计了应用层的 kvplc 通讯协议,在串行链路上实现了该协议。最后,以延时接通
/断开控制电路为例对嵌入式软 PLC 的功能进行了验证。
验证结果表明,本文所设计的嵌入式软 PLC 系统能够实现一些基本的控制功能,
具有一定应用和推广价值。
关键词: 嵌入式软 PLC 开发系统运行系统 XML Modbus 协议
I
华中科技大学硕士学位论文
Abstract
Aiming at the poor scalability of the traditional PLC, in this paper the author proposed
an overall design scheme of embedded softPLC system based on language transformation,
referring to the IEC61131-3 international general programmable controller programming
standards. And every module of the embedded soft PLC system and operation system was
designed and implemented.
The author first introduces the structure and working principle of traditional PLC.
And based on the designing idea traditional PLC, the system structure and working
principle of the embedded softPLC were deeply researched. By analyzing the advantages
and disadvantages between piled and interpreted mechanism, the author proposed
the total design solution for the embedded soft PLC system based on language translation.
In addition, the hardware system structures and software system structures were
that, the author elaborated on the concrete realization of the embedded soft
PLC system, and the memory variable system, the user program and the instruction
explained function library were described , based on knowledges about the
compiler principles, the author anal