节点文献

基于开放式数控系统的软PLC开发系统的研究及实现

Research and Implement of Softplc Development System Based on Open CNC System

【作者】 李爽

【导师】 王永章;

【作者基本信息】 哈尔滨工业大学 , 机械制造及自动化, 2006, 硕士

【摘要】 从数控技术产生并应用至今,数控系统经历了从专用封闭式体系向开放式模块化结构的发展过程,其辅助控制功能由可编程逻辑控制器PLC(Programmable logical controller)来实现,而传统PLC并不能满足开放式数控系统的需求。因此,基于PC机的采用软件实现控制功能的软PLC技术出现并不断发展起来。由国际电工委员会于1993年3月颁布的IEC1131-3标准是第一个为工业自动化控制系统的软件设计提供标准化编程语言的国际标准,它极大地促进了软PLC技术的发展,并保证了其标准化和开放性。本文基于本实验室开发的开放式数控系统,以系统中的软PLC开发系统为目标,研究分析了软PLC的相关技术和实现方法。采用面向对象的C++语言,在Windows操作系统和Visual C++的开发环境下,实现了软PLC开发系统的主要功能。本文研究软PLC的原理和结构,分析、确定了软PLC开发系统应具备的功能和实现的方法,并划分出系统的两个主要模块:编辑模块和编译模块。研究、分析国际标准IEC1131-3对于PLC五种编程语言的规定,按照其各自特点,选择梯形图(LD)和指令表(IL)作为本系统的两种编程语言。并依据标准制定了它们的指令集。首先开发编辑模块,包括梯形图编辑器和指令表编辑器,以及由梯形图到指令表的转换功能的实现。然后开发解释、编译模块。其中,要编译的输入代码为指令表语言,所生成的目标代码为能够在运行系统运行的C/C++语言代码。这一部分包括词法分析,语法分析,语义分析和生成目标代码四个部分。最后整合各个模块,制作用户界面,并通过实例,实现了软PLC在数控机床上的逻辑控制功能,验证了系统的正确性及可行性。

【Abstract】 Numerical Control System experienced the development from special and closed system to open and modular speciality since the NC technology was coming to be used. Its accessorial control function is realized by PLC (Programmable logical controller), while the traditional PLC could not achieve the requirement. So SoftPLC technology implementing the function by PC was developed. The IEC1131 international standard is the first that offered normative programming language for industrial automatic control system which was publicized by International Electric Committee in March of 1993. It accelerates the development of SoftPLC and guarantees its standardization and openness.The paper researches and analyses the interrelated technology and realized methods of SoftPLC which is aimed the development system and based on Open Architecture Numerical Controller System developed by lab. It realized mainly function of SoftPLC Development System with object oriented language C++, the Windows operating system and Visual C++ surroundings.The paper researches principle and structure of SoftPLC, confirms its function and realized methods, and carves up two parts: editing module and compiling module. Analysing five kinds of programming language prescribed by international standard IEC1131 and their peculiarities, choses Ladder Diagram(LD) and Instruction List(IL) as two programming languages of this system, and makes their instructions.At first, the research develops editing module. It contains Ladder Diagram editor, Instruction List editor and converting module from Ladder Diagram to Instruction List. Then develop compiling module. The input codes to be compiled is Instruction List, and the aim code is C/C++ language which could operate on running system. This part contains accidence analyzing, phrasing analyzing, semantic analyzing and creating aim code. At last, the research combines these modules, makes customer interface, experimented that the control function was coming true with this development system which proved its correctness and feasibility.

【关键词】 软PLC开发系统编辑编译
【Key words】 SoftPLCdevelopment systemeditcompile
  • 【分类号】TG659
  • 【被引频次】43
  • 【下载频次】1043
节点文献中: 

本文链接的文献网络图示:

本文的引文网络