All projects
Industrial Automation · 2026

Custom SCADA & OEE Monitoring System

A plant-wide, custom-coded monitoring system: Modbus TCP loggers, PostgreSQL history, editable OEE formulas and a 1-second live dashboard.

Case study PDF
Custom SCADA & OEE Monitoring System
01 · The problem

Machine signals already existed in the PLCs but were only seen on local HMIs. Stops were noticed late and OEE was calculated by hand at the end of the shift.

02 · What I built

Multi-threaded loggers read every machine’s state, cycles, idle/off/down times and production from the PLCs over Modbus TCP into PostgreSQL. An OEE engine computes availability, performance, quality and loss cost from formulas engineers can edit and test. A live publisher feeds a web dashboard that refreshes every second, and a desktop program configures everything without code changes.

03 · Impact

Supervisors see a stopped or idle machine within seconds instead of at the end of the shift, and OEE is calculated the same way for every machine and shift.

🔒 Images and reports from my current industry work are blurred for company privacy. Unlock them with the access code from my email, a university email, or by requesting access.Unlock industry content
IEEE format · 4 pages
A Custom-Coded SCADA and OEE Monitoring System for Production Machines: Modbus Data Acquisition, Database Logging, Live Dashboard and Configurable OEE Formulas
Saad Bin Zikria
Pakistan Spring Engineering, Sheikhupura

Abstract—Commercial SCADA and MES packages are expensive and often do not fit the way a plant already stores its machine signals. This paper describes a monitoring system that the author designed and coded for the press, welding and machining (CNC) machines of a manufacturing plant. A set of loggers reads machine signals from the PLCs over Modbus TCP and stores them in a PostgreSQL database: the machine state timeline, cycle…

I. Introduction
II. System Architecture
III. Data Acquisition
IV. OEE Formula Engine
V. Live Data and Dashboard
VI. Control Program
Project report · IEEE format

A Custom-Coded SCADA and OEE Monitoring System for Production Machines: Modbus Data Acquisition, Database Logging, Live Dashboard and Configurable OEE Formulas

Saad Bin Zikria — Pakistan Spring Engineering, Sheikhupura

Commercial SCADA and MES packages are expensive and often do not fit the way a plant already stores its machine signals. This paper describes a monitoring system that the author designed and coded for the press, welding and machining (CNC) machines of a manufacturing plant. A set of loggers reads machine signals from the PLCs over Modbus TCP and stores them in a PostgreSQL database: the machine state timeline, cycle times, idle, off and down times, and hourly and shift production. An OEE poller computes…

Keywords: SCADA, OEE, Modbus TCP, PLC, PostgreSQL, NATS, machine monitoring, Industry 4.0, Python

What I built

  • Shared Modbus TCP layer with grouped reads, timeouts and automatic reconnection
  • State, cycle-time, idle/off/down and hourly-production loggers writing to PostgreSQL
  • OEE formula engine with a built-in editor, validation and test values
  • NATS live publisher and downtime-command subscriber
  • Live web dashboard: one card per machine, refreshed every second
  • Desktop control program: settings, start/stop, logger monitor, machine map editor, user guide

Privacy

All screenshots on this site have network addresses, machine names and production figures removed.