Font Size: a A A

The Design Of Control Program Self-generation Software Platform Of MCU System

Posted on:2009-12-12Degree:MasterType:Thesis
Country:ChinaCandidate:Z W SongFull Text:PDF
GTID:2178360272470378Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
The integrated controller using MCU as its core is applied widely in the industrial field because of its advantages such as small size, powerful function, stable performance and lower cost, etc. The bottom functions usually don't need to be modified after written. But the control programs usually have to be written again when the control process changed. The programs written in this case are usually similar in structure and code. This will cost a lot of time and energy of the developers. Besides, the companies using the controller are usually lack of programmer, so writing control program becomes more difficult.The Program in this paper is designed to resolve the disadvantages of manual programming. The design is a practical project from a company. On the base of analyzing the I/O features of the controller and two control system schemes, this paper presents the design of a software platform to generate control program automatically and the realization of communication between controllers based on MODBUS protocol. The purpose of the development of the software platform is to make the user free from programming, to decrease the technique difficulties, to shorten development period and to get rid of mistakes made by man. In this way, the cost of project is reduced and reliability is increased.The programs designed in the software platform include: user configuration program, intermediate configuration file and its generation, target control program, the generator program and controller communication program. The EXCEL is selected as configuration program, because it's user-friendly and easy to fill then the content and structure of it is designed. The structure of control program is designed as multi-task scheduling to be general to fulfill various control requirements. The process of program self-generation is designed with reference to the steps of compiler, including the error check of EXCEL, the optimization and generation of XML as intermediate code and the design of program generator which generates C language control program from XML file. At last, the communication program applied in Master-Slave control system base on MODBUS protocol is designed.After passed the strict test in the laboratory, the design has been successfully applied to several projects in the company.
Keywords/Search Tags:XML Configuration File, Control Program, Multi-task Scheduling, Self-Generation, MODBUS Protocol
PDF Full Text Request
Related items