Font Size: a A A

A Compiler Supporting Multi-Language Of Control Engineering Based On IEC61131-3

Posted on:2012-09-23Degree:MasterType:Thesis
Country:ChinaCandidate:X D ZhangFull Text:PDF
GTID:2178330332478596Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
The industrial controller has been striding with a tendency towards constant open and standardization. In 1993, the International Electro-technical Commission (IEC, for short) put forward the IEC61131-3 standard to specify the programming languages of industrial controller. But the standardization progress of the compiler of control system programming languages is far behind languages'. Many compiler applied to control engineering were not in keeping with the IEC international standard. Some other were solo support to a certain language of IEC standard. Those who can handle multilingual compile have many disadvantages, such as complex structure, high redundancy code.In order to solve above problems of existing compilers, this paper designs and implements a RSMI compiler, which means reduced, standard, multi-language supported, and used in the field of industrial control system.At first, this paper analyzes the implementations and structure of existing compilers and proposed two optimize methods to access RSMI compiler. The initial optimization is to reuse the language-independent compile module, and the further optimization is through a unified treatment of IEC61131-3 common language elements.After that, this paper defines the function, interface, symbol set and lexical expressions of lexical analysis module; analyzes two methods of grammatical and semantic analysis, designs this analysis module through down-to-up method; defines the form of intermediate code; designs symbol structure, and run-time support environment; defines the type of error, and the review and report method of error-handling module; implements the lexical analysis module, the grammatical and semantic analysis module, using LEX (Lexical Analyzer Generator) and YACC (Yet Another Compiler-Compiler) tools.At last, this paper compares the performance of different compilers. RSMI compiler's advantages of compact, simple, low code redundancy, have been verified.
Keywords/Search Tags:IEC61131-3, Control Engineer, Multi-language, Compiler, optimization
PDF Full Text Request
Related items