Objectives

 

Program

 

Schedule

 

Evaluation

 

Lab

 

Modeling and Automation of Industrial Processes

Modelação e Automação de Processos Industriais - MAPI

 

 

 

Integrated Master's degree in Electrical and Computer Engineering

Systems, Decision and Control Area

 

 

 

2nd Semester 2024/2025

 

 

 

Prof. José Gaspar

jag (at) isr.tecnico.ulisboa.pt

Prof. Luís Custódio

lmmc (at) isr.tecnico.ulisboa.pt

 

 

 

 

Link to the page in Fenix: https://fenix.tecnico.ulisboa.pt/disciplinas/MAPI36/2024-2025/2-semestre

Link to previous year: https://web.tecnico.ulisboa.pt/~ist13495/courses/mapi23d/mapi2324.html

 

 

Announcements:

 

30.05.2025 - Published guide for Lab3 (presentation)

20.05.2025 - Published guide for Lab2

07.05.2025 - Published guide for Lab1, to run in weeks 3 and 4

06.05.2025 - Helper slides for Lab0 (see them in this page, after the guide)

28.04.2025 - Published guide for Lab0, a training work to run next week (week 2)

28.04.2025 - Laboratory grades obtained in the previous two years are valid for the current school year.

 

 

 

Course Objectives:

 

 

The MAPI course is intended to provide students with the ability to solve automation problems. To this end, methodologies for analysis and synthesis of discrete event systems are studied, in the form of supervisory controllers that are implemented in industrial devices. Training on the following components will be deepened:

 

 

 

Systems analysis for industrial automation.

 

Methodologies for the implementation of solutions in industrial automation.

 

Programmable Logic Controllers (PLCs) Languages.

 

Computer Numerical Control (CNC) machines.

 

Modeling Discrete Event Systems (DESs).

 

Supervision of Industrial Automation Processes.

 

 

 

 

 

Program:

 

Ch. 1a - Introduction to the course and to the PLCs Programmable Logic Controllers (PLCs) components. PLC internal structure, operation, IO interfaces and interconnection. PLC modules power.

Ch. 1b - PLCs Programming Languages Ladder diagrams (LD). Description of the components of a typical language. Flow control structures. Development environments. Structured Text (ST). Networking PLCs. Common programming errors (see ST slides).

Ch. 1c - GRAFCET standard. Modeling techniques. Development environment. Interpretation of GRAFCET using Ladder. PLCs network security.

Ch. 2a - Discrete Event Systems Dynamics and Modeling (DESs). Automata, languages. Petri nets. Restricted and extended models. Network subclasses. Petri nets properties. Exercises and solutions.

Ch. 2b - Petri Nets (PNs) with IO. SFC (GRAFCET) vs PN. Turing Machine FSM to PN. Slides.

Ch. 3. Stochastic models Stochastic Petri Nets (SPN). Stochastic Queuing Networks (SQN). Slides.

Ch. 4. Stochastic analysis Markov chain modelling of SPN and SQN. Slides. Note on Absorbing States vs Deadlocks.

Ch. 5. Control (MDPs in continuous time)

Ch. 6. Supervisors and Fluid models Methodologies for supervision. Synthesis based on invariants. Examples of application. Slides.

Ch. 7. Case studies (connection to Industry and Services)

 

 

 

Exams from previous years:

 

Exams from 2004/5 to 2012/13 in PDF.

1st exam of 2013/14 in PDF . 2nd exam of 2014/15 in PDF . 1st exam of 2015/16 in PDF.

1st exam of 2016/17 in PDF . 1st exam of 2017/18 in PDF . 1st exam of 2018/19 in PDF.

1st exam of 2019/20 in PDF . 1st exam of 2020/21 in PDF . 1st exam of 2021/22 in PDF .

1st exam of 2022/23 in PDF . 1st exam of 2023/24 in PDF .

 

Solution of 2nd exam 2006/7 in PDF .

Solution of 2nd exam 2012/13 in PDF .

Solution to selected problems of 1st exam 2021/22 in PDF.

Solution to selected problems of 1st exam 2022/23 in PDF.

 

 

Laboratory Work:

 

(to be completed throughout the semester)

 

Floor plan of the laboratory: click here to see it and click here to see IST info.

PLC hardware and software manuals:
(i)
SW Unity Intro ,
(ii)
SW Unity Reference,
(iii)
HW IO Module.
Extra SW Unity Standard Library Reference (available also under the software menu help).

Software for programming PLCs
Going to use Schneider's Unity Pro V13
https://fenix.tecnico.ulisboa.pt/disciplinas/MAPI36/2024-2025/2-semestre/---private-information

PLC experiments:
PLC data logging webpage (click here)

Software installed in the lab that can also be used at home:

[Instructions for Windows]

1. Install a GIT client https://git-scm.com/downloads

2. In Matlab run the following lines:
% the next line is long (ends at \mapi)
!git clone https://github.com/josegaspar999/TecnicoULisboa_MAPI.git c:\users2\mapi
cd c:\users2\mapi\_init_all
login_z_install
login_mapi

% in the future just run login_mapi
% you can see also online the repository: https://github.com/josegaspar999/TecnicoULisboa_MAPI/tree/main


 

 

Guide for the Preliminary Work, as a Word file or PDF file.

Information to support this work:
See above these lines the PLC hardware and programming manuals
Help slides for the preliminary work as a PDF file

 

 

Guide the First Laboratory Work, as a Word file or PDF file.

Support for the first work:
See the PLC hardware and programming manuals (listed above)
See a method for PLC data logging
webpage (click here)

 

 

Guide for the Second Laboratory Work, as a Word file or a PDF file

Support for the second work:
https://web.tecnico.ulisboa.pt/~ist13495/course_utils/plc_log/plc_data_log.htm
https://web.tecnico.ulisboa.pt/~ist13495/course_utils/plc_log/plc_log_str.htm
https://web.tecnico.ulisboa.pt/ist13495/course_utils/plc_log/plc_data_scope.htm
https://web.tecnico.ulisboa.pt/~ist13495/msc/thesis/plc_works.htm

 

 

Guide for the Third Laboratory Work - Presentation, PDF file

Appointment Schedule, presentation date / time slot, see announcement in the Fenix webpage

 

Laboratory Papers, Presentation of Seminars:

Doodle, presentations schedule, to be filled later

 

Laboratory registration:

[to be filled later]

 

Grades:

Labs and first exam, to be filled later