Design and Implementation of Soft-PLC Development System Based on PC

Author
ZhouLei
Advisor
ShiRui
School
Chongqing University
Major
Computer Software and Theory
Classification
TM571.61 Program controller
Degree
Master's thesis
Year
2009
Downloads
340
Citations
7

Request the full text

Abstract

Soft-PLC technology is a kind of new-style control technology based onPC,rising in the field of industrial automation .Compared with the traditional PLC(Programmable Logic Controller),soft-PLC conquers the disadvantages of bad compatibility and extensibility ,and low performance cost ratio of traditional PLC,has some advantages such as open system architecture、easy development,which can meet the requirement of modern industrial automation.Soft-PLC is composed of two parts,which are developing system(upper computer) and running system(lower computer),and the former is the base of the latter.The international standard IEC61131-3 defines five programming languages for PLC,and because the ladder diagram is intuitionistic and easy to grip,a soft-PLC developing system based on ladder diagram is designed and realized using Visual C++ 6.0.In this paper,three primary modules composing the whole system are researched detailedly ,which are ladder diagram editor、ladder diagram compiler and ladder diagram simulator.The ladder diagram editor is realized by the object-oriented technology,The interface of the editor is designed using MFC,and according to the structure of ladder diagram,a set of special element images are designed in the meantime,which provides an intuitionistic and convenient ladder diagram edit environment for user.In the ladder diagram compiler,a new strategy is designed ,which is based on the algorithm of SPST(Series and Parallel Scanning Transform). The strategy mapps the ladder diagram to AOV graph firstly so as to confirm the loction relationship between each element in the ladder diagram,and then scans the AOV graph to confirm the serial and parallel relationship in different degrees between every vertex,in the mean time,constructs a logic tree from bottom to top in order to save the result of scanning,and at last generates sentence list quickly and conveniently via traversing the logic tree. Through an example,it illustrates the fact that the strategy has low complexity,and high rate of accuracy,and in the process of excuting, the strategy is able to check the syntax faults and regulations of the ladder diagram.At last ,with the use of abundant resources in PC, a ladder diagram simulator is designed and realized by intensively researching on the working principle of PLC.The simulator contains an intuitionistic and favorable UI,and while simulating,the status of elements in the ladder diagram will update real-time along with the result of simulating.The simulation algorithm is designed directly based on the logic tree created in the period of compiling,which achieves the effct of fast simulation The simulator can depart from PLC hardware and run solely ,which allows user to see the running result in advance and provides convenience for modification to the ladder diagram.Via experiment, the developing system is improved to be feasible and valid, which provides with extensive practical values in the fields of PLC off-line simulation, PLC control under deteriorative environment, PLC teaching and experimentation and so on.

Table of contents

Abstract 3-4 ABSTRACT 4-8 1 Introduction 8-11 1.1 research background and significance 8 - 9 1.1.1 research background 8-9 1.1.2 and academic research and practical significance 9 1.2 nbsp research status at home and abroad ; 9-10 1.3 purpose of this study and research 10-11 1.3.1 purpose of this study 10 1.3.2 of this article research 10-11 2 soft PLC architecture and development system design 11-18 2.1 traditional PLC architecture and working principle 11-15 2.1.1 traditional PLC hardware architecture 11-12 2.1.2 traditional PLC programming languages ?? 12-13 2.1.3 traditional PLC work principle 13-15 2.2 soft PLC architecture and working principle 15-16 2.2.1 soft PLC architecture 15-16 <br / > 2.2.2 soft PLC works 16 2.3 soft PLC development system overall design 16-18 3 soft PLC ladder Editor development System design and Implementation 18-29 3.1 PLC ladder Profile 18-19 3.2 ladder icon design 19-21 3.3 ladder element class design 21-23 3.4 ladder editor interface design 23-28 3.4.1 Document / View architecture 23-24 3.4. 2 ladder storage 24-25 3.4.3 ladder editing and display 25-28 3.5 Summary 28-29 4 soft PLC ladder Diagram compiler development System design and Implementation 29-47 4.1 ladder to the statement table conversion strategy 29-41 4.1.1 ladder to AOV graph mapping 30-33 4.1.2 AOV graph based on series-parallel scanning (SPST algorithm ) 33-39 4.1.3 generated statement table 39-41 4.2 ladder grammar and standardize inspection 41-43 4.2.1 ladder programming rules 41-42 4.2.2 ladder syntax checking 42-43 4.2.3 ladder standardize inspection 43 4.3 ladder compiler implementation 43-45 4.4 Summary 45-47 5 soft PLC development System emulator design and implementation 47-58 5.1 emulator overall design 47 5.2 simulation interface design 47-49 5.3 simulation -based algorithm design ladder 49-51 5.4 emulator implementation 51-56 5.4.1 MFC multithreaded programming techniques 52-53 5.4.2 emulator interface is achieved 53 5.4.3 simulation algorithm 53-56 <br / > 5.5 simulation 56-57 5.6 chapter Summary 57-58 6 Conclusion and job prospects 58-59 6.1 Conclusion 58 6.2 job Outlook 58-59 Thanks 59-60 References 60-63 Appendix 63

Related dissertations

  1. Research on the Method for Modeling and Analyzing PLC Programs Based on Petri Nets
    ChenXueZuo ·Huaqiao University ·2013 ·Master's thesis
  2. Research of Key Technology of Industrial Robots on ePLC
  3. Desing and Implementation of Alarm Subsystem of Mobile Network Management System
  4. Parallel Compile Analysis of Ladder Diagram and It’s Implementation on FPGA Platform
  5. The Research of Converting Ladder Diagram into VHDL Logic Expression
  6. Co-simulation Based Fault Injection Technologies Analysis and Design
    WenLiPing ·Harbin Institute of Technology ·2012 ·Master's thesis
  7. Research on Calibration and Traceability of Key Indicators for Satellite Navigation Simulator
    TangZhenWu ·Central South University ·2013 ·Master's thesis
  8. The Design and Implementation of a High Definition VOD Simulation System
    MaJunQiang ·Xiamen University ·2014 ·Master's thesis
  9. Design and Realization of the Hardware Simulator in Optical Transmission Equipment Based on the TL1Protocol
    MengXueHong ·Northwestern University ·2013 ·Master's thesis
  10. Research on Simulator Based on Voltage Source Inverter for Permanent Magnet Direct Drive Wind Generator System
    NiuChengYu ·Hefei University of Technology ·2013 ·Master's thesis
  11. Digital PV Array Simulator Research and Development Based on S3C2440
    YuanZhen ·Donghua University ·2014 ·Master's thesis
  12. Controller Program Design and Implementation of Motive Target Simulation
    LiZuo ·Dalian University of Technology ·2013 ·Master's thesis
  13. The Researching and Implementation for Simulating Models of Cooperative Vehicles Kinematic Behaviour Based on Discrete Time
  14. Key Techniques Research of Virtual Reality System about the Surrounding Forklift Operation Training
    LinLong ·Wuhan University of Technology ·2013 ·Master's thesis
  15. Design and Implementation of OGRE-based Crane Training Simulator
  16. Research on Control System for Pillow-style Packing Machine Based on Embedded Soft PLC
    ChenLiuYang ·Hubei University of Technology ·2013 ·Master's thesis
  17. The Research and Design of Control System Simulator for Hot Blast Stove
  18. System Design and Simulation about the Accelerating Cooling Process Control of the Medium Heavy Plate
  19. Research and Development of Running System of Soft PLC Based on Open CNC System
  20. Study of Method for Constructing Numerical Control Language on PLC