2025โ26 ยท Solo build
A furnace management app
From the ERP's queue to the line's PLC, furnace by furnace.
- .NET MAUI
- Blazor
- ASP.NET Core
- SQL Server

The problem
problem.exe
The operators knew what was running and when, but only the office could put it into the ERP, and it had to keep up with every line.
problem.exe
An error has occurred.
every line!
The solution
Operators enter the data right where the work happens. Each line's queue comes from the ERP and the PLC counts the pieces: they take care of the rest.
01
Every line in two clicks
Pick a furnace, then a line. The sidebar shows which lines are running and what they're working on. For each line you see its queue from the ERP and, for the current job, the pieces done and those still to go.

02
Who's on it
Each line has up to three operators. Hit Edit, pick them from the list and save: the ERP knows who's working on each line.

03
Start, pause, done
Start a job and the line's PLC starts counting the pieces. Pause it for something urgent and pick it up later. Close it and the ERP marks it as produced. Reorder the queue in the ERP and the app adjusts on its own.

04
Today's heats
Each furnace has its own page for the heats used during the day: pick the supplier and number, set the quantity, add a note. The ones logged today are listed below.

The numbers
- Lines connected
- 14
- Jobs run
- 774
- Pieces counted
- 1.1M+
- Manual counts
- 0
from October 2025 to October 2026
How it's built
Architecture
Siemens PLCs
One per line, over OPC UA
ASP.NET Core service
OPC UA and a REST API, on the server
Desktop app
.NET MAUI and Blazor
The service reads and writes SQL Server: both the ERP database and the production database.
- Release
- The service ships from a Git tag through GitHub Actions; the desktop app updates itself with Velopack.
- Tests
- xUnit on span writing, failures and consolidation, plus a SQL test for the stored procedure.
- Logging
- Every PLC command and every error goes to structured Serilog logs, in rotating 10 MB files, keeping the last seven.
One way in to the PLCs
The apps never talk to the PLCs directly: everything goes through an ASP.NET Core service with a REST API. To start a job, the service writes its code into the PLC's recipe and resets its counter.
The ERP is in charge
Every minute the app compares the ERP queue with what each PLC is running. If the first job has changed, it stops the current one and starts the new one: reordering in the ERP is all it takes.
One row per state
Before, every read saved every value: about 880,000 rows a day, almost all identical. Now each sensor gets one row per state, with a heartbeat that updates its end: if the service stops, the data stops there.
Totals ready to read
After every write, a stored procedure recalculates today's and yesterday's piece and energy totals. It can run again without counting twice: an error fixes itself on the next pass, and reading the totals is a simple query.
Finally, the data comes from the people doing the work.
Got a mess like this?
info@w-valzelli.dev
