Parallel Compile Analysis of Ladder Diagram and It’s Implementation on FPGA Platform

Author
LuoKui
Advisor
YanYi
School
Hangzhou University of Electronic Science and Technology
Major
Computer System Architecture
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2014
Downloads
2
Citations
0

Request the full text

Abstract

The Programmable Logic Controllers(PLCs) has been widely used for complex control ofindustrial machinery.Ladder diagram (LD) is the most popular programming language ofPLCs.Higher speed and precision is the persistent pursuit of PLCs.Since heart of PLCs ismicrocontroller(MCU) which follow von neumann structure,to accelerate it’s response performancemeans to reduce the scan cycle.Adopting CPUs with higher processing speed is an availablemethod,but still CPU’s frequency bottleneck will turn up.More positive and effective way is topromote the program’s execut pattern.Combine the ideas of GPU and the concurrent executioncharacteristic of very high-speed hardware design language(VHDL) together,developing a new typeof pure hardware of PLC control system(hardware PLC)which execute parallel rungs concurrently.is a feasible method.Studied papers about PLC’s parallel compilation, LD/Petri net to logic circuittransformation,refer to the part of the theoretical basis, the subject put forward a kind of parallelinstruction execution implementation scheme of PLC, The specific design content includes thefollowing:(1)Put forward the overall plan of LD to VHDL, such as building in a VHDL framework likethree-stage control scanning mechanism; abstract LD into logical expression, each expressioncorresponds to a single output cascade, design algorithm to implement set logical expression toVHDL code conversion.(2)Analyze the LD as a whole. Discuss its dependencies and decomposition method, so as toestablish LD concurrent execution model, and lay a foundation for parallel PLC.(3)Analysis of LD locally. Reference directed graph theory, abstract each cascade into AOVdiagram, design special algorithm to implement AOV graph to Boolean logic expressions, getpreliminary logical expression of each cascade, all steps of logical expression and its locationinformation constitute the complete logic expression of LD.(4)Implement the LD instruction set on the hardware of PLC.According to the enforcementmechanism of differences LD instruction set is divided into the following four categories: processcontrol instruction (jump instruction, etc.), basic instruction (set/reset instruction, etc.), commonlyused instructions (timer, counter, etc.), function instructions (transfer instructions, thearithmetic/logic operations, etc.), and explain the different VHDL design method of all kinds ofinstructions.(5)Establish LD to VHDL into grammar rules library, lexical rules library. The combination of above five parts can obtain corresponding LD control program, the VHDLprograms downloaded to the FPGA chip, the pure hardware logic can be realized in the hardware ofPLC.LD’s parallel compilation and hardware logic implementation issues, both at home and abroadhas not been mature design. Instruction parallel execution of PLC system, is still in the primaryexploring stage, has a large distance from the commercial application。The subject put forward akind of implementation methods which based on VHDL language and hardware PLC of parallelinstructions, hope it has certain reference value for further research,in related field.

Table of contents

Abstract 5-6 ABSTRACT 6-8 catalog 8-10 first chapter 10-17 <br / > 1.1 programmable controller Overview 10-13 1.1.1 PLC origin and application 10-11 1.1.2 PLC development process and trend 11- 13 Research Status 1.2 topics and abroad research content and meaning 13-15 1.3 topics organizational structure 15-16 1.4 topics 16 -17 The second chapter studies related technologies 17-23 2.1 PLC technology brief 17-18 2.2 ladder operating mechanism 18- 19 2.3 EDA technology and FPGA development foundation 19-21 2.3.1 EDA technology 19 2.3.2 FPGA development foundation 19-21 2.4 VHDL language Overview 21-23 Chapter III FPGA -based parallel platform for PLC systems overall design 23-36 3.1 overall design ideas 23-26 3.1.1 hardware PLC system hardware structure 24-25 3.1.2 hardware PLC systems develops technology 25-26 3.2 hardware PLC system EDA design 26-31 3.2.1 hardware PLC operating mechanism analysis 27 3.2.2 build PLC control program VHDL framework 27-31 <br logical expression 31-33 3.3.2 ladder to ; /> 3.3 LD-VHDL compiler implementations 31-36 3.3.1 LD-VHDL compiler design ideas nbsp type conversion 33-34 3.3.3 logical expressions to VHDL conversion 34-36 Chapter IV parallel hierarchical decomposition and logical expressions generated 36-46 4.1 ladder dependency definition 36-37 4.2 ladder parallel AHP 37-42 4.2.1 control dependence into data dependence 37-39 4.2.2 data dependence analysis 39-41 4.2.3 data-dependent decomposition achieve 41-42 4.3 trapezoid AOV chart diagram abstract representation Boolean expressions to convert 42-43 4.4 AOV Figure 43-46 4.4.1 ladder Boolean logic Boolean expressions 43 4.4.2 rung generate VHDL 43-46 Chapter ladder instruction set implementations 46-57 5.1 trapezoid Figure instruction set 46-48 5.2 build VHDL instruction set nbsp hardware PLC 's ; 48-52 5.2.1 LD basic instructions VHDL realization 48 <br / > 5.2.2 LD function instruction VHDL realization 48-50 5.2.3 VHDL component library 50-52 5.3 ladder turn VHDL rule base 52 -57 5.3.1 lexical rule base 53 5.3.2 basic rules of grammar instruction transfer VHDL library 53-54 5.3.3 features turn VHDL grammar instruction rule base 54-57 Chapter VI parallel PLC system functional test 57-63 6.1 LD instance 57-59 6.2 LD_VHDL transformation analysis 59-63 Chapter VII conclusions and Prospects 63-65 7.1 summary 63 7.2 Looking 63-65 Thanks 65-66 references 66-70 Appendix 70-71 detailed summary 71-74

Related dissertations

  1. An Algorithm about Translating from Sequential Function Chart to Ladder Diagram
  2. Ships Power Station Automatic Control System’s Design and Actualizing
    RenZiBin ·Dalian Maritime University ·2008 ·Master's thesis
  3. The Research on the Monitoring System of Sewage Treatment Plant Based on King Scada
  4. Research and Realization of Monitoring System in Combination Switch Based on Fourier Series Algorithm
    LiYunPeng ·Liaoning Technical University ·2012 ·Master's thesis
  5. Research on PLC remote monitoring technology based on Internet
    LiuWeiGang ·University of North ·2014 ·Master's thesis
  6. The Design of PLC Data Acquisition Module
  7. Research and Implementation of a Communication System in Command of Emergency Centralized Control System
  8. Research on the Method for Modeling and Analyzing PLC Programs Based on Petri Nets
    ChenXueZuo ·Huaqiao University ·2013 ·Master's thesis
  9. The research and design of CAN bus controller based on FPGA
    ZhaoCheng ·Yangzhou University ·2013 ·Master's thesis
  10. A PLC-based Generalized Predictive Control Universal Module Design
  11. Greenhouse Environment Control Device Design Based on Programmable Logic Controller (PLC)
    LiHongHua ·Nanjing Agricultural College ·2013 ·Master's thesis
  12. Fuel Control System Based on PIC and HMI
    ZhangYiDong ·Shandong University ·2013 ·Master's thesis
  13. The Design and Implementation of the Small Integrative PLC System
    BaoLiGao ·Jilin University ·2013 ·Master's thesis
  14. Research of Key Technology of Industrial Robots on ePLC
  15. The Research of Converting Ladder Diagram into VHDL Logic Expression
  16. Chaotic Encryption System Research Based on FPGA
    CaiPengFei ·Tianjin University of Technology ·2013 ·Master's thesis
  17. The Design and Implementation of Data Collection System Based on Flash Array
    WangXiaoSheng ·University of North ·2014 ·Master's thesis
  18. Sensitivity Analysis for Processor Based on VHDL Fault Injection
    WuZhenPing ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. Design and Implementation of32-bit RISC Microprocessor Based on FPGA
    ZhengYongGui ·Hebei University of Technology ·2012 ·Master's thesis
  20. Research on a Doppler Weather Radar Signal Processing
    LuXiaoJia ·Anhui University ·2014 ·Master's thesis