Skip to content
Dhruvie.
All writing2 min read

Industrial software · Django · Modbus TCP · On-premises

From the browser to the booth PLC: lessons from a factory-floor web app

What I learned taking a maintenance system from paper logbooks to production across 30 facilities: talk to the machines directly, deploy where the plant already is, and treat the security audit as a design input.

By Dhruv Suthar

Cleanroom air-handling filters get removed, washed, dried, inspected and reinstalled on a schedule. In many plants that schedule lives on paper. I led a project to replace it with software that now runs in production across 30 facilities and tracks more than 3,000 filters. Most of the hard parts were not in the web app.

Talk to the machines directly

The cleaning and drying booths are run by PLCs. Rather than asking operators to type in cycle results, the system reads them over Modbus TCP. Two details mattered. First, the listener reads the booths continuously without disrupting the controllers that run them. Second, there is a manual mode for machines that are not connected yet, because a rollout across many sites never finishes all at once.

Raw register values are not records, though. Most of the work was turning them into things a supervisor can act on: which filter, which cycle, which pressure, inside or outside limits.

Push events to the browser

An alarm that appears on the next page refresh is not an alarm. Machine alarms are pushed to the interface over WebSockets the moment they are read, and background jobs handle the slower, scheduled work.

Deploy where the plant already is

Factories have IT standards for good reasons. The system runs in Docker on the plant’s own Windows Server and uses its existing licensed SQL Server instance, inside the plant network. Agreeing on that meant working early and in detail with the client’s engineering, IT, network security and infrastructure teams.

Two people, one record

In regulated manufacturing, one person doing the work and another confirming it is the norm. The system builds that in. A supervisor reviews filters after drying and either approves them or sends them back for re-cleaning, and an AHU is not done until a four-step post-installation verification is complete, each step timestamped. Every change keeps its history, so records are traced rather than overwritten.

Treat the security audit as a design input

An independent agency ran a vulnerability assessment and penetration test (VAPT). The findings were not exotic: security headers, cookie and debug settings, and admin exposure. Each is cheap to fix and expensive to explain. We remediated them, the system passed, and a certificate was issued. The lesson I took away is to run that checklist yourself from the first deployment, not the last.

  • Read data from the machines; do not ask people to retype it.
  • Read controllers without disrupting them, and keep a manual fallback.
  • Push alarms; do not wait for a refresh.
  • Fit the plant’s infrastructure instead of asking it to fit yours.
  • Build maker-checker into the workflow, not into a procedure document.
  • Harden for the security audit from day one.

Related work

The project behind this note

Let’s work together.