Research and Development of Running System of Soft PLC Based on Open CNC System

Author
WangYaNan
Advisor
ChenZuoJuan
School
Shaanxi University of Science and Technology
Major
Mechanical and Electronic Engineering
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2012
Downloads
125
Citations
0

Request the full text

Abstract

The software and hardware of the CNC system have been greatlyenriched because of the developments in computer technology. As aresult, the open CNC system has become a research hotspot in the fieldof manufacturing throughout the world. The PLC embedded in the CNCperforms the main part of the M, S, T functions. In other words, the PLCis mainly responsible for the auxiliary functions in CNC system.Traditional PLC cannot meet the requirements of openness, so the openCNC system usually needs soft-PLC technology. Soft PLC is based onPC, which controls the process using software, and it is one of the keytechnologies of the open CNC system. The thesis researched soft PLC inthe CNC system using the IEC61131-3standard to enhance the functionof the open CNC system.In order to develop a soft PLC to complete the auxiliary functions ofthe CNC system, the paper researched the principle and technology ofsoft PLC following the IEC61131-3standard. The research was basedon the new CNC in the ceramic rapid prototyping machine in ShaanxiUniversity of Science and Technology’s NC laboratory. Becauseobject-oriented C++language specializes in encapsulation, inheritanceand polymorphism, the Windows operating system and Visual C++were chosen as the development tool to design the soft PLC. This SoftPLC could meet the requirements of the new CNC in the ceramic rapidprototyping machine.First of all, according to the work principle and traditional PLCstructure, and analyzes the function of soft PLC should have, and based on the analysis of the general framework of soft PLC, focuses on thedesign of the development of the system of soft PLC system andcompile module. Compile module based on PLC program source codefor instruction table, using the Flex and Bison automatic generationsoftware, will dictate the table program after lexical analysis,grammatical analysis, semantic analysis of the last set object codestored in design good decode results in the buffer zone.Second, soft PLC of the running system design USES is the virtualmachine design train of thought, the working process of the simulationhard PLC. Soft PLC virtual machine is divided into speed of the twologic programming, virtual machine is actually the two logical programscheduling and switching. In this paper the design of virtual machineread in similar assembly language object code of assembly technologywill target after code conversion for is hex files, virtual machineloading hex file to explain implementation. By using the dynamic linklibrary technology (DLL) complete development system and operationsystem of communication function.

Table of contents

Summary 5-7 ABSTRACT 7-12 1 Soft PLC Technology Overview origin and significance of 12-20 1.1 topics 12-13 1.1.1 topics sources 12 1.1.2 research significance 12-13 1.2 soft- PLC technology introduced 13 - 16 1.2.1 soft PLC (Soft-PLC) in the background 13-14 1.2.2 soft PLC technology Overview 14-15 1.2.3 the present situation of the development of soft PLC 15-16 1.3 PC-based control system analysis 16-17 1.3.1 development of PC -based control 16 1.3.2 superiority nbsp PC -based control ; 16-17 analysis and Research 1.4 IEC61131-3 international standards 17-19 1.4.1 IEC6ll31-3 Introduction of international standards advantage 17 1.4.2 IEC61131-3 international standards 17-18 1.4.3 IEC61131-3 international standard composition 18 <br / > 1.4.4 using the international standard IEC61131-3 necessity major work 18-19 1.5 this project done 19-20 2 soft PLC -based PC platform architecture 20-28 structure and working principle 2.1 traditional PLC structure 20-21 2.1.1 traditional PLC 20 2.1. 2 traditional PLC works 20-21 2.2 soft PLC and control system works design 21-24 2.2.1 soft PLC works 21 -22 2.2.2 soft PLC control system design 22-24 overall 2.3 soft PLC systems Analysis 24-26 2.3.1 soft PLC development system 24-25 2.3.2 soft PLC runtime system 25-26 2.3.3 development system and communication system running 26 2.4 of this chapter Summary 26-28 3 soft PLC development system design and implementation modules compiled 28-40 3.1 Introduction 28 3.2 compiler directive table the basic methods and procedures of language 28-30 3.3 lexical analyzer to achieve 30-31 3.4 parser implementations 31-34 <br / > 3.5 Flex and Bison combined method 34-35 3.6 semantic analysis and implementation of intermediate code 35-37 3.7 object code generation 37-39 3.8 Summary 39-40 4 soft PLC runtime system of the virtual machine design 40-56 4.1 virtual machine composed of PLC control system based constitute 40-41 4.2 virtual machine 41-44 4.2.1 system Manager 41-42 4.2.2 communications Manager 42 command system 4.2.3 virtual machine 42-44 4.2.4 interpreter 44 4.2.5 compiler 44 relationship of parts 4.3 PLC between virtual machines 44 4.4 PLC virtual machine design and implementation of task scheduling 44-51 4.4.1 task Scheduler the concept 44-46 4.4.2 task Status 46 4.4.3 resources and their task switching 46-51 4.5 virtual machine program design nbsp run resource models ; 51-54 4.5.1 program data types and variable types file Structure 51 4.5.2 program 51-52 resource model running 4.5.3 program 52-54 4.6 Summary 54-56 achieve 5 Soft PLC runtime system communication interface module 56-62 5.1 input and output communication interface 56-57 5.1.1 task Description 56 5.1.2 communication mechanism 56-57 5.1.3 implementation communications 57 5.2 and the development of the system 57-60 5.2.1 task Description 57-58 5.2.2 communication mechanism 58-60 5.3 Summary tests 60-62 6 soft PLC virtual machine 62-66 6.1 virtual machine function 62 6.2 virtual machine instructions 62-65 6.3 summary 65-66 7 summary and Outlook 66 -68 7.1 summarizes 66 7.2 Prospects 66-68 Thanks 68-70 References 70 - 72 Appendix a 72-88 Appendix B 88-98 studying for a master's degree theses published 98-99

Related dissertations

  1. Research on the Key Technology of Feeding Robot
    YuanKai ·Shanghai Ocean University, ·2013 ·Master's thesis
  2. Development of Parallel Polishing CNC with Real-time Simulation System
    HuZuoRui ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. The Design of High-speed Hydraulic Walking System for Single Drum Vibratory Roller
    LiZhaoDan ·Chang'an University ·2013 ·Master's thesis
  4. Development for Open CNC Teaching Platform
    GuoBenYin ·Harbin Institute of Technology ·2012 ·Master's thesis
  5. Research on the Technology of Soft Control Cards Based on the Industrial Ethernet
    ZhangShuo ·Shandong University ·2013 ·Master's thesis
  6. Research and Implementation of Soft-PLC Ladder Programming System
    SuShuZhi ·South China University of Technology ·2012 ·Master's thesis
  7. Design and Development of Programmable Automation Controller Based on ARM and Linux
  8. The Development of Location Identification Printing System for the Thin-walled Shell
    HanChunMao ·Dalian University of Technology ·2012 ·Master's thesis
  9. Development of CNC System HMI Module Based on the Gasbag Polishing Process
    DongAoLei ·Harbin Institute of Technology ·2013 ·Master's thesis
  10. The Research of Open CNC System Based on GT-controller
    PengQuanHai ·Dalian Jiaotong University ·2012 ·Master's thesis
  11. The Research and Development of Nozzle-machining Equipment’s Software System
    HuangGuoBao ·Dalian University of Technology ·2012 ·Master's thesis
  12. Research on CNC System Integrated with Manufacturing Execution System
    YangFuBin ·Shandong University ·2012 ·Master's thesis
  13. Research and Development of Control Technique for Nozzle Groove Milling Machine
    DuBing ·Dalian University of Technology ·2012 ·Master's thesis
  14. The Study of the Digitalization of Narrow Gap SAW Wire Feeding and Runing System
    ChangCheng ·Shenyang University ·2012 ·Master's thesis
  15. Research on the Theoretical Construction and Running System of the National Fitness Service System in China
    LuoXu ·Beijing Sport University ·2006 ·Doctoral dissertation
  16. Research on Freeform Surface Tool-Path Planning Algorithms of Human-Simulated Polishing
    XuLiGuo ·Jilin University ·2006 ·Doctoral dissertation
  17. Constructing Inductive Redeveloping Simulation Platform Based on Opening-architecture CNC System
    DongTingJian ·Tianjin University ·2005 ·Doctoral dissertation
  18. Open CNC milling machine control system design and research
    ChenJing ·Hefei University of Technology ·2008 ·Master's thesis
  19. The Study of the Running Mechanism of New Rural Cooperative Medical Policy in Shilin County and Songming County of Kunming
    ChangWei ·Kunming Medical College ·2008 ·Master's thesis
  20. Design and Development of Motion Controller Based on DSP
    YouLiYan ·Jiangsu University ·2002 ·Master's thesis