The Diploma thesis focuses on the construction of a model, from which code for programmable logic controllers can be generated, and the use of the code to control the system. It has four parts. The first part introduces all the software we needed for the assignment, the second part introduces working with Matlab and building a model, in the third part it is described work with imports of generated code and working with TwinCAT 3 and in fourth, final part, we talk about software Festo Ciros Education and 3-D simulation.
The Matlab software and the associated Simulink and Stateflow tools allow models to be built using state transition diagrams, flow diagrams, state transition tables and truth tables. In this way, we have built a model of the whole system, which represents the algorithm for system control, signalization and simulates the operation of the system itself.
Using the Simulink PLC Coder tool, we generated the code in Structured Text from the model, which was imported into Beckhoff's TwinCAT 3 Engineering programming software. In the TwinCAT 3 programming environment, we have used the generated code for a program that will control the operation of the system and ensure the correct operation of the actuators of the system. We have also tested program on a simulation, built in the software.
In the last part, we decided to test generated code in software Festo Ciros Education, which enables 3-D simulation.
|