By studying Linux and soft PLC, learned linux system has some defects of real-time, so we will use Xenomai. Xenomai is a core of strong real-time extension of the Linux kernel. Of dual-core technology, there is a micro-kernel which support strong real-time.With Linux kernel running on the hardware platform, the Xenomai’s priority is higher than Linux’s. Xenomai’s job handle real-time mission, and Linux kernel deal with non-real-time task. Only when there is no a real-time task to be handled, the Linux will get a chance to run. Compared to other real-time reconstruction project, Xenomai is lightweight, maintainable and small code transplantation workload, especially suitable for embedded systems transplantation.In this research process, the hardware platform of this experiment is Atmel produce--the ARM9At91sam9263development board, and software platform is Enterprise Edition Redhad Linux Operating System in which build Xenomai-based real-time operating system what make use of Xenomai real-time program structures to build and configure real-time kernel for linux-2.6.24, setting up program of the system files and applications.Then, transplantting program of the system files into the development board--At91sam9263, this is the first step of the experiment. Successfully burned these system files, the key is to successfully build the linux environment--based on the the Xenomai operating system architecture, and successfully generate u-boot files, kernel image file and the file system. The second step is Soft PLC Applications.Take advantage of the board--ARM9At91sam9263development board in which the system successful burned, to achieve some the soft PLC applications.The realization of soft PLC functions is divided into two processes. First is the development of the soft PLC systems or programming system. Second is soft PLC runtime system. The first is used to complete the development of the PLC application; Runtime system is used to administrate runtime of the system or carry out the PLC application program through communication with the input/output port of the I/O module or fieldbus completeing logic control or drivering hardware devices to achieve the soft PLC strong real-time applications. |