The Research of Converting Ladder Diagram into VHDL Logic Expression
- Author
- LiCao
- Advisor
- LiQiang , YanYi
- School
- Hangzhou University of Electronic Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2014
- Downloads
- 3
- Citations
- 0
Abstract
IEC61131-3standard defines two types of programming languages: textualprogramming language and graphical programming language. Ladder Diagram(LD)programming language is one of the most popular graphical programming language. Since theheart of a PLC(Programmable Logic Control) is a sequential processor, its performancedepends on the speed of the microcontroller entirely which limits the performance of the PLCgreatly. PLC will lose its advantage gradually in industry especially in the ultra-fast,ultra-precision and high reliability control field.In order to enhance the performance of conventional PLC, the paper presents a new PLCdesign base on the FPGA(Field-Programmable Gate Array) with reconfigurable hardwarearchitecture and execution mechanism. Since LD is the most popular programming languages,the core of this paper is to convert LD into its equivalent high speed hardware descriptionlanguage VHDL(Very-High-Speed Integrated Circuit Hardware Description Language) whichis the main programming language in FPGA. In order to convert the ladder diagram withcomplicated function modular and multi-output rungs into VHDL program, logic expressionwhich based on AOV(Activity on Vertex) diagram is adopted as a bridge to reduce thedifference between them. The thesis proposed a new algorithm which based on the methodof backward inference in splitting a multi-output rung. Not only simplifies the process ofrung splitting, the algorithm but also can improve the performance of splitting significantly. Adetailed analysis of the dependence relashionship is done in the paper for the complicatedladder diagram. By converting control dependencies,ladder diagrams with JMP and CALLinstructions can be translated into VHDL program successfully. In addition, in order tosimplify the translation process of a imcomplete rung, an algoritm named layer repairing andtranslation algorithm is proposed. A imcomplete rung will be repaired by the layer repairingalgorithm and a complete one will be translated into VHDL logic expressions perfectly by thetranslation algorithm. For a complete rung, the out-degree of a branch node must be equal tothe in-degree of the corresponding merging node while imcomplete one has no suchcharacteristic.In order to verify the correctness of algorithms proposed in the thesis, an applicationwhich can dectct the relay jitter frequency as well as the jitter time interval accurately is done.Experimental results show that algorithm proposed in the paper is correct.
Table of contents
Abstract 5-6
ABSTRACT 6-9
first chapter 9-13
1.1 subject background 9 <br / > 1.2 domestic and foreign research status 9-11
1.3 origin and significance of the subject work 11
1.4 papers made ?? 11-13
second Chapter FPGA-based high-speed programmable controllers related technologies 13-24
2.1 high-speed FPGA-based programmable controller to achieve the relevant technical foundation 13-19
2.1.1 IEC 61131-3 programming languages ?? 13-14
2.1.2 ladder programming language 14-16
2.1.3 FPGA technology Overview 16-18
2.1.4 VHDL language Overview 18-19
2.2 ladder to text language conversion 19-21
dependencies 2.3 ladder of 21 -23
2.3.1 control relies 21-22
2.3.2 data dependence 22-23
2.4 cascade parallelizing compiler theory 23
2.5 Chapter Summary 23-24
Chapter III ladder turn VHDL program algorithm design 24-36
3.1 ladder turn VHDL architecture 24-25
3.2 preprocessor algorithm design 25-31
3.2.1 graph theory foundation 25
3.2.2 ladder topology diagram shows (AOV Figure ) 25-26
3.2.3 related definitions 26-28
3.2.4 control dependency analysis algorithm design 28-29
3.2.5 Cascade demolition sub- algorithm design and analysis 29-31
3.3 converter algorithm design 31-34
3.3.1 fill layer algorithm design 31-33
3.3.2 ladder logic expressions turn algorithm design 33-34
3.4 VHDL architecture Builder design 34-35
3.5 Summary 35-36
Chapter IV ladder turn VHDL logic expressions algorithm 36-56
4.1 algorithm overall framework 36-37
4.2 preprocessor algorithm 37-44
4.2.1 will convert AOV ladder diagram algorithm 37-42
4.2.2 cascade split algorithm 42-44
4.3 converter algorithm 44-48
4.3.1 complement cascade layer algorithm 44-46
4.3.2 will be translated into VHDL logic expressions cascade algorithm 46-48
4.4 ladder to parallel VHDL software 48-54
4.4.1 platform Overview 48-51
4.4.2 and Quartus development interactive environment 51-53
4.4.3 compiler framework 53-54
4.5 Chapter Summary 54-56
typical chapter application examples 56-63
Chapter VI Conclusion and outlook 63-65
6.1 summary 63
6.2 further work 63-65
Thanks 65-66
references papers and participate in research projects during the read 66-71
published 71
Figure Appendix 71-75
detailed summary 75-78
Related dissertations
- An Algorithm about Translating from Sequential Function Chart to Ladder Diagram
- The Development of a Special Programmable Logic Controller
- Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- Design and Implementation of Monitoring System for Lamination Based on PLC and Qt
- Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
- Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
- Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
- Research of Dual Chanel High Speed Data Acquisition Card
- Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
- The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
- Design of Remote Strain Measurement System Based on FGPA
- The Design of Digital Ultrasonic Nondestructive Testing System
- Design and Implementation of High Speed Data Recorder Based on FPGA
- Design of the High-speed Data Acquisition System Based on USB Interface
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Application of Linear Array Image Acquisition System Based on Compressed Sensing
- The Design and Research of PCI Data Acquisition Card Based on FPGA
- Usb Without Invasive Data Collection Technology Research