Font Size: a A A

Programmable Automation Controller Design And Implementation Based On X86

Posted on:2013-11-13Degree:MasterType:Thesis
Country:ChinaCandidate:N Y LiuFull Text:PDF
GTID:2248330371494480Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
The technology of code generation automatically based on Real-Time Workshop (RTW) of Mathworks company is widely used in Hardware-In-Loop-Simulation(HILS) and Rapid Controller Prototyping(RCP). It can generate real-time code which is optimized, transportable, personalized from the model of simulink, and can reduce the cycle time in developing the control system. It is especially widely applied in the fields of Aeronautics, Astronautics and auto electronics.The Programmable Automation Controller(PAC) based on x86processors has adopted the structure of the PC104bus. It’s compact, flexible and easy to extend, so together with Rapid Control Prototyping technology, it can support the xPC real-time kernel and linux os and match well with graphical modeling environment MATLAB/Simulink/Stateflow.The paper studies Rapid Control Prototyping technology, starting from xPCTarget and then explains the design of the PAC. The development environment of the host computer is first established, then the device driver of PC104Data Acquisition Card in xPC real-time kernel is developed. The Data-Driver software-CreconView with the function of OPC is designed in the host computer, so the PAC can communicate with the configuration software, labview and other software which have a OPC Client function based on CreconView. At the same time, CreconView can support the PAC of xPC kernel working in rapid control and OPC mode, which greatly improves the flexibility for designing the control system.This paper proves the PAC with linux os, mainly studying the technology of code generation automatically, while establishing the cross-compiler environment in the host computer and writing the template makefile and programming for the file transfering in host and file receiving in target; thus improving the real-time of the main target, achieving the communication between simulink model and PAC successfully.The RS485bus used in PAC is also designed in the paper. The Modbus protocol is masked in function mode with S-function in simulink environment, developing the master and slave function for the PAC, achieving the communication between PAC of xPC kernel and acquisition module of Advantech with modbus protocol.Finally, the PAC is used successfully for the Process control device, so the user can finish the control configuration for water-level control system in simulink environment of the host computer. The executable program will then be generated quickly and downloaded to the PAC, the controller can support the parameters modified on-line. The large number of experiments, which have been carried out, show that the PAC based on x86and RCP technology is stable, flexible, strongly real-time, and also a good platform for researching on complex and intelligent algorithms...
Keywords/Search Tags:Rapid Controller Prototyping(RCP), xPCTarget, OPCServer, Real-time Workshop(RTW), S-function
PDF Full Text Request
Related items