The diploma thesis focuses on the programmable logical controller (PLC) and on code generation for the PLC. The thesis starts with an introduction to PLC and with the development of industrial automation. Different programming languages are presented in detail: instructions list, structured text, ladder diagram, function block diagram, sequential function chart.
Development tools for PLC programming are presented below, including CODESYS, TIA Portal, Studio 5000 Logix Designer and TwinCAT. The next chapter is devoted to code generation using UML diagrams, Matlab Simulink and the use of advances tools such as ChatGPT.
The main part of the task is to build a control logic model for a modular production system and generate code from this model. The structure of the model is described in detail, using the graphical modeling tool Simulink with the additional Stateflow library.
The code generation process using the Simulink PLC Coder tool is also presented. The code is generated in structured text and is imported into the TIA Portal.
|