Course detail
Programmable Logic Controllers
FSI-RPA Acad. year: 2027/2028 Winter semester
The course is focused on structure and parameters of programmable logic controllers, their configurations and possibility their programming. Programmable logic controllers are by one of the most often used items at present automation technique. We can tell that most of the control systems do not without programmable logic controllers. Part of the lectures will also deal with visualization systems for creating user interfaces of the controlled process. User interface issues are closely related to programmable logic controllers, and the vast majority of control applications include a user interface.
The subject is taught with the support of an e-learning course (LMS Moodle BUT), which is the primary guide for the subject.
Language of instruction
Czech
Number of ECTS credits
3
Supervisor
Learning outcomes of the course unit
After graduation, the student is able to:
1. describe the structure and parameters of a programmable logic controller;
2. configure a PLC for a given task;
3. program a PLC in languages according to ČSN EN 61131-3;
4. design and implement a visualization system for creating a user interface for a controlled
process;
5. connect the visualization with the PLC control program;
6. debug and revive a control system with a PLC;
7. defend the proposed solution with professional argumentation.
Entry knowledge
The student knows: basic concepts from the theory of control (feedback, transfer, stability), basics of programming and algorithmization (algorithm, cycles, conditions, data types), basics of electrical engineering (electrical circuits, devices, protection) and basics of digital technology.
The student can: write a simple program, read an electrical diagram, analyze a simple control circuit.
Rules for evaluation and completion of the course
Credit conditions (13th teaching week — checking the results of the exercises and awarding the credit):
1. Completion of all laboratory exercises (replacement possible in a substitute term).
2. Active participation in laboratory exercises.
3. Preparation of a semester project — design of a control system with PLC and visualization (report scope 10–15 pages) — mandatory.
Semester project evaluation (max. 40 points): A1 – correctness of PLC configuration and settings (0–15 points); A2 – functionality of the control program (0–15 points); A3 – quality of visualization and documentation (0–10 points).
Exam — defense of the semester project and oral exam, max. 60 points: verifies knowledge of general issues of PLC control systems and the ability to defend one's own design.
Final classification: sum of the project (max. 40 points) and the exam (max. 60 points), total max. 100 points, according to Article 14 of the BUT SZŘ
Aims
After graduation, the student will be able to:
1. describe the structure and parameters of a programmable logic controller;
2. configure a PLC for a given task;
3. program a PLC in languages according to ČSN EN 61131-3;
4. design and implement a visualization system for creating a user interface for a controlled process;
5. connect the visualization with the PLC control program;
6. debug and revive a control system with a PLC;
7. defend the proposed solution with professional argumentation.
Study aids
An e-learning course (LMS Moodle BUT) has been established for the subject, which serves as the primary signpost for the subject and contains:
- current information on the organization of teaching, semester project assignments, submission and exam deadlines;
- current study materials — lecture presentations, explanatory texts on the structure and configuration of PLCs, manuals for PLCs and development environments (TwinCAT), sample control programs, sample visualization projects, recommended standards: ČSN EN 61131-3, semester project template with evaluation criteria
- current contacts for the teacher including consultation hours;
- forum for questions about programming and visualization.
The study programmes with the given course
Programme N-MET-P: Mechatronics, Master's, compulsory
Type of course unit
Lecture
13 hours, optionally
Syllabus
1. – 2. Introduction, logic control, combinative and sequential logic circuitry.
3. – 4. Programmable logic controllers – introduction.
5. – 6. The hardware of programmable logic controllers.
7. – 8. The software of programmable logic controllers.
9. – 10. Control of large systems, Distributed control. Introduction to visualization.
11. – 12. Visualization
13. Recapitulation of topics covered.
Laboratory exercise
26 hours, compulsory
Syllabus
- Introduction to the development environment and PLC. PLC structure (program cycle, inputs/outputs, memory), project creation, hardware or simulator configuration, program upload, online monitoring. Practical task: output control with a button, start/stop with self-holding.
- LD and FBD languages, data types and variables. Basic data types (BOOL, INT, REAL, TIME), global and local variables, addressing. Logic functions, edges (R_TRIG, F_TRIG). Practical task: combinational logic, e.g. controlling two pumps with interlocking.
- Function blocks, timers and counters. TON, TOF, TP, CTU, CTD. Difference between function (FC), function block (FB) and program (PRG). Practical task: traffic light sequence, counting pieces on a conveyor.
- ST and SFC languages, custom function blocks. Structured text (IF, CASE, FOR), creating your own FB with instances, overview of SFC and IL. Practical task: write a level controller (two-position) as your own FB and use it multiple times.
- Theory and design of a state machine. State diagram, transition table, Moore vs. Mealy, handling of error and emergency states. Practical task: design of a diagram for a simple machine (e.g. gate, washing machine).
- Implementation of a state machine in ST. CASE construction with enumeration type (ENUM), separation of transition logic from actions, time conditions of transitions. Practical task: implementation of the state machine from the previous exercise on a simulation or model.
- Sequential control in SFC and control of machine modes. Steps, transitions, branches and parallel sequences, Auto/Manual/Reset modes. Basis for PackML (Idle, Execute, Held, Aborted). Practical task: multi-step technological process (e.g. dosing and mixing) with manual and automatic mode.
- Creation of visualization, basic elements. Linking variables with graphic elements, buttons, indicators, entering values, navigating between screens. Practical task: operator panel for task from exercise 3 or 6.
- Advanced visualization. Alarms and their history, trends (quantity graphs), user permissions, animations, custom visualization frames. Practical task: complete HMI with alarm system and trend for technology from exercise 7.
- Introduction to PLCopen Motion Control. Concept of the standard (Part 1), axis state diagram (Disabled, Standstill, Homing, Discrete Motion, Continuous Motion, Synchronized Motion, ErrorStop), AXIS_REF data type, Execute/Done/Busy/Error principles. Practical task: MC_Power, MC_Reset, MC_ReadStatus, MC_ReadActualPosition on a real or simulated axis.
- Basic movements of one axis. MC_Home, MC_MoveAbsolute, MC_MoveRelative, MC_MoveVelocity, MC_Stop, MC_Halt, buffer modes and motion interruption, parameters (velocity, acceleration, jerk). Practical task: positioning sequence controlled by a state machine from block B.
- Multi-axis and synchronized movements (Part 2) and final project. MC_GearIn, MC_CamIn (electronic gear and cam), or interpolation basics. Final task: combination of everything, i.e. a state machine controlling a positioning/synchronized application with visualization and alarms, short
- submission of the semester project; checking the results of the exercises and awarding the credit