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.

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.
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.
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.
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…
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.
More projects

Wire-Rod Drawing SCADA, 3D Digital Twin & Edge Vision
Read-only SCADA for two straight-line wire-drawing machines: two PLCs with the same IP read from one industrial PC, a live 3D digital twin, and edge vision for operator safety zones.

PLC Traffic Signal Controller (OpenPLC)
Four-way intersection controller in IEC 61131-3 FBD on OpenPLC/Arduino — 33 s cycle plus a priority emergency-flash mode.
Abstract—Filling stations are a core building block of FMCG packaging lines. They need precise sequential control and safety interlocks at every stage. This paper presents the design and simulation of an electro-pneumatic bottle filling line controlled by relay logic and discrete sensors. Bottles are conveyed, detected, positioned by a pneumatic stopper, filled through a solenoid-controlled valve for a timed interval, and…
Pneumatic Bottle Filling Line
Relay and sensor-based automation model of a filling line with safety interlocks and sequential control.