Skip to main content
AH / SYSTEMS
03PLC / HMI PROCESS CONTROL

Smart Factory Process Control

State-based process control with TwinCAT HMI visualization and live ADS monitoring.

  • PLC / HMI SYSTEM
  • SOURCE AVAILABLE
  • DEMO AVAILABLE
  • TwinCAT 3
  • Structured Text
  • HMI
  • ADS / Python
Smart Factory HMI and simulated process demonstration
OPERATOR /HMITWINCAT PLCSTATE MACHINESIMULATEDPROCESSADSPYTHON MONITOR

HMI & RECIPES

TwinCAT HMI exposes recipes, controls and state

The visualization provides recipe selection, start/stop controls, values, counters and maintenance information.

PLC STATE MACHINE

The process is represented as explicit PLC states

A CASE-based Structured Text sequence makes production phases, transitions and application-level stop conditions inspectable.

SIMULATED PROCESS

Recipe targets drive simulated process behaviour

Recipe targets drive software values for tank level, temperature, mixing and bottling.

ADS MONITORING

ADS exposes live values to Python

Python reads bottle count, temperature and status once per second for live terminal monitoring.

STRUCTURED TEXT

Making the process sequence visible as PLC states

STATE_FILLING:
    GVL_Process.sStatusMessage := 'FILLING TANK...';
    GVL_Process.bInletValve := TRUE;
    GVL_Process.fCurrentLevel := GVL_Process.fCurrentLevel + fFillRate;

    IF GVL_Process.fCurrentLevel >= GVL_Process.stCurrentRecipe.fTargetFill_ml THEN
        GVL_Process.fCurrentLevel := GVL_Process.stCurrentRecipe.fTargetFill_ml;
        GVL_Process.bInletValve := FALSE;
        eState := STATE_HEATING;
    END_IF
Process sequence represented as explicit PLC states.

MY CONTRIBUTION

Implementing the PLC, HMI and monitoring path

I implemented the Structured Text state machine, recipe types, HMI bindings and ADS/Python monitor for the simulated process.

RECIPE & HMI

Feeding the sequence through recipes and HMI controls

Two recipes provide fill, temperature and mixing-duration targets. The HMI shows process status, values, counters, actuator states and application controls for start, stop and maintenance reset.

MAINTENANCE CONCEPT

Counting cycles for maintenance indication

Inlet-valve rising edges increment a cycle counter. A fixed threshold raises a maintenance state that can be cleared from the HMI.

PYTHON MONITORING

Reading live PLC values through ADS

Python reads bottle count, temperature and status once per second and prints them to a terminal.

RESULT

A compact process-control test environment

The project provides a compact environment for sequence logic, recipe handling, HMI states and live ADS monitoring.