In this thesis the Leonardo project is presented. Leonardo is a physical simulator of a hydroelectric power plant with a Pelton turbine. It is comprised of hydraulic, water and control systems. I used the programmable logic controller to automate the operation of the simulator.
I wrote the control program for the Siemens SIMATIC S7-300 CPU 314C-2 DP controller using the Siemens SIMATIC STEP 7 software package. I combined two programming languages, i.e. Statement List programming language and Ladder Logic. Since the industrial controller had not enough digital inputs and outputs, modules DI16xDC24V and DI8/DO8xDC24V/0.5A were added.
The analog outputs of the controller are connected with valves and frequency converter. The pressure sensor and position sensors are connected with analog inputs. To measure the turbine rotational speed, I used fast counters that received impulse signals from an inductive switch. Also, there was a man-machine touch panel interface integrated in the electric cabinet of the simulator. I configured it with the SIMATIC WinCC V7 software tool. I had the acces to the simulator most of the time of my project, which made the programming a lot easier as I was able to test and debug the control programme after each phase.
The control program works correctly and thus the project has been accomplished. Leonardo has been handed over to the Secondary school of technical professions Šiška (SŠTS Šiška), where it will be used for educational purposes.