Research and design of the programmable controller ladder language compiler
- Author
- YuanXiaoHong
- Advisor
- ZhangXiuRu
- School
- Central South University
- Major
- Applied Computer Technology
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 515
- Citations
- 7
Abstract
With the increasing development of industrial control technology , programmable controller ( PLC) has been widely applied in the field of industrial control has become increasingly evident . Along with the opening of the PLC technology , the use of computer hardware and software resources of soft the PLC gradually emerge , showing a vitality . The paper discusses the principle and soft PLC PLC superiority , the soft PLC compiler theory , focusing on the PLC ladder language compiler technology . In -depth study of the compiler kernel based on the form of the grammar of the language lexical and syntax of PLC ladder abstraction , analysis and definition , put forward the idea of LR analysis of the ladder syntax and use of grammar -guided translation Complete the semantic analysis of the ladder . On this basis , object-oriented programming languages ??VB language as a tool to design a ladder to the instruction list language compiler uses binary principle ladder traversal and successful graphical ladder language compiler computer easily recognizable instruction sheet language realized the PLC ladder language instruction list language compiler switches . PLC ladder language compiler and the localization of the PLC has a positive impetus significance has a very good practical value , PLC-based automatic control system design and simulation .
Table of contents
The first chapter 7-20
1.1 Background topics 7-13
1.1.1 the PLC Overview 7-11
1.1.2 subject sources 11-13
1.2 hardware PLC and its programming language 13-16
1.2.1 the PLC structure 13-14
1.2.2 PLC process 14
1.2.3 PLC software system 14-16
1.3 compiler Description 16-20
grammar and language 20-26
2.1 basic concepts 20-22
2.1.1 basic terminology 20-21
2.1.2 grammar 21-22
2.2 patter ... 22-23
2.2.1 specification derivation and specification Statute 22
2.2.2 syntax tree 22-23
2.3 Ladder of grammar and syntax tree 23-26
2.3.1 Ladder grammar 23-25
the
syntax tree 2.3.2 ladder 25-26
Chapter lexical analysis program 26-37
3.1 lexical analyzer 26-27
3.2 regular expressions and finite automata 27-29
3.2.1 regular grammar 27
3.2.2 regular expression 27-28
3.2.3 the finite automata 28-29
3.3 lexical analysis program 29
3.4 PLC Ladder lexical analysis 29-37
3.4.1 Ladder word 30-32
3.4.2 ladder language has finite automaton described 32-33
3.4.3 Ladder language sentences 33-37
Chapter parsing 37-49
4.1 top-down parsing 37-38
4.1.1 recursive descent analysis 37
4.1.2 LL (1) analysis method 37-38
4.1.3 Basic Features of a top-down analysis 38
4.2 Bottom-up analysis method 38-46
4.2.1 the analysis algorithms 38-39
4.2.2 LR analysis 39-46
4.3 PLC Ladder syntax description 46-49
4.3.1 PLC ladder drawing principle 46
4.3.2 PLC Ladder parsing 46-49
Chapter semantic analysis and object code generated 49-55
5.1 Syntax-directed translation 49-50
5.2 attribute grammar 50-51
The basic concept of the
5.2.1 attribute grammars 50
5.2.2 attribute grammars nature 50-51
the 5.3 LR analysis of the semantic processing technology 51-52
5.4 to calculate semantic rules 52
5.4.1 Analysis of tree-based methods 52
5.4.2 ignore rules method 52
5.4.3 Rule-based methods 52
5.5 PLC ladder code generated 52-55
Chapter the PLC Ladder compile software design and implementation 55-72
6.1 Software Features 55-57
6.2 data structure design 57-60
6.2.1 Data Structure 57-59
6.2.2 binary tree 59-60
6.3 System Module Development 60-70
6.3.1 syntax checking 60-66
6.3.2 is converted into a binary tree 66-70
6.3 results 70-72
concluded 72-74
the
References 74-78
Acknowledgements 78-79
the
degree during major research 79
Related dissertations
- Reseach and Design of Automated Production Line of the New Prefabricated Exhaust for Residential Ketchen
- Development of Automated Production Line Teaching Experiment Platform Based on Profibus
- Development and Application about Data Management System of PVC Glove Production Line
- Based on PLC Street-lamps Romote Monitoring System Research and Implementation
- The Development and Research of an Intelligent Sewage Trestment System Based on Cast Craft
- Monitoring System of Motion Position Platform Design Based on Wincc
- Design of Monitoring System in Oilfield Metering Station Based on PLC
- The Sewage Treatment Plant of Langfang Development Zone Control System Analysis
- Mine Drainage Automation Monitoring System Design and Implementation
- Design and implementation of computer monitoring and control system of pumping station based on PLC
- Research and Development of Variable Frequency Speed Regulation Monitoring System for Coal Main Fan
- The Design and Application of Monitoring System for Wet Resin Ingredients Based on DCS
- Design of Monitoring Control System for Three-dimensional Steel Samples Warehouse on KingView
- Research on Tunnel Monitoring System Key Technology
- Automatic Monitoring System for Preparation and Pumping of the Filling Paste
- The Design of Pressure Station Constant Pressure Water Supply Device Remote Unmanned Monitoring System
- Design and Implementation of Remote Monitoring System for Laminating Equipment
- Research and Design of Ward Intelligent Call System Based on PLC
- Foam Concrete Board Insulation Mortar Equipment Automatic Monitoring System Design
- The Research of Online Testing Method for Uniformity of Insulation Layer on Communication Cable