Course project · Industrial automation

Automatic Coffee Machine Control System

An industrial-style control system in CODESYS, with sequential logic, a live HMI and multi-level alarm handling.

Role
Control designer
When
BSc coursework
Where
University of Bologna
Coffee Machine PLC
4beverages
3coffee strengths
SFC + STIEC 61131-3 languages

How it works

  1. 01

    Select

    The user picks a beverage and a coffee strength on the HMI.

  2. 02

    Supervise

    The supervisor sequences the actuator groups and enforces ordering constraints.

  3. 03

    Actuate

    Generalised actuators for coffee, water, milk and serving.

  4. 04

    Monitor

    Live levels, temperatures and process state on the HMI.

  5. 05

    Protect

    Multi-level alarms with acknowledgement and safe reset.

Overview

The project models a realistic beverage process with industrial automation principles. A CODESYS application controls an automatic coffee machine with four beverages and three coffee strengths, combining sequential control, a Human-Machine Interface and fault management.

Process schematic: tanks, dispensers, brewing unit, valves and sensors.
Process schematic: tanks, dispensers, brewing unit, valves and sensors.

Control architecture

The control follows a supervisor pattern that coordinates several Generalised Actuators (GA): coffee, water, milk and serving. Sequences are written in Sequential Function Chart (SFC) and the logic in Structured Text (ST). The supervisor handles beverage selection, strength levels and the constraints on which step can run when.

HMI and safety

An interactive HMI shows ingredient levels, temperatures and the current process state in real time. A multi-level alarm system detects faults (piston up/down errors, water and milk faults) and puts the machine in a safe state. The operator then has to acknowledge the alarm and run a reset procedure before operation can resume.

Operator HMI: beverage and strength selection, machine information, alarm list and fault injection buttons.
Operator HMI: beverage and strength selection, machine information, alarm list and fault injection buttons.

Tools & techniques

  • CODESYS V3.5
  • IEC 61131-3
  • SFC
  • Structured Text
  • HMI
  • Alarm management