Download Steam Net Simulation with Real Control System
Transcript
Department of Automatic Control Lund Institute of Technology Box 118 SE-221 00 Lund Sweden Author(s) Document name MASTER THESIS Date of issue January 2003 Document Number ISRN LUTFD2/TFRT--5701--SE Supervisor Oscar Ljungkrantz Anders Rantzer, LTH Magnus Holmgren, Solvina Sponsoring organization Title and subtitle Steam Net Simulation with Real Control System(Ångnätssimulering med verkligt styrsystem) Abstract This master thesis has been conducted for Solvina. Solvina is a firm in Gothenburg, which among other things simulate steam nets for the paper process industry. Doing this Solvina has had to simulate not only the steam net itself, but also to simulate the control system. The purpose of this master thesis was to try to build an interface between the controller and the simulated process so that the simulated steam net could be controlled by the real control system. The process is modelled in Dymola/Modelica. The control system is built in Siemens process control system called Simatic PCS 7 and runs on a PC. The simulated process and the control system run on the same PC and the communication between the process and the control system is a communication between two applications running on the same operative system, which is Windows NT. The two applications communicate with each other by reading from and writing to a common file. The simulated process in Dymola calls a C++ function that reads the control signals from the file and writes the process values to the file, every sampling time. A J++ program communicates with the control system and writes the control signals to the file and reads the process values from the file, every sampling time. The communication is synchronized and the applications access the file using mutual exclusion. Keywords Classification system and/or index terms (if any) Supplementary bibliographical information ISSN and key title ISBN 0280-5316 Language English Number of pages 58 Recipient’s notes Security classification The report may be ordered from the Department of Automatic Control or borrowed through: University Library 2, Box 3, SE-221 00 Lund, Sweden Fax +46 46 222 44 22 E-mail [email protected]