Work

Structured Text Compiler Targeting XML

Year: 2010
Type: dissertation
Abstract: IEC-61131 is an open standard defined by international electro technical commission for programmable logic controllers. This standard consists of several parts and part 3 deals with programming languages. There are two textual and two graphical languages defined in part 3 of the standard [1]. In this thesis report design and implementation of a compiler is discussed. The compiler is capable of compiling Structured Text based programs and can generate digital circuit layouts equivalent of the source programs. The digital circuits are represented by XML documents. The XML schema for circuit layouts discussed in this thesis report is developed by Sauer-Danfoss, one of the companies manufacturing Programmable Logic Controllers. The compiler under discussion is developed by using C Language and ANTLR3 as parser generator. Structured Text language specification is translated into Extended Backus Naur form and visitor pattern is adopted to implement semantic analysis and code generation. The XML is validated using the schema provided by Sauer-Danfoss. The results include a working compiler translating from Structured Text source to XML target and the correctness and performance of the translated Structured Text programs is evaluated. Complete implementation of the language was not possible due to time constraint and incompatibility of the two standards. Few features exposed by Structured Text are not supported by Sauer Danfoss XML schema at the moment.A subset of the language is implemented as a proof of concept and a base for further development.
Author: Jawad Hassan
Institution: Linnaeus University
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W90517047
Cites: 3
Cited by: 1
Related to: 10