Back to case studies

Case study

Industrial Saw Control Platform

I led the rewrite of the software that runs industrial saws: a new C# API with the machine-control endpoints, an Angular operator interface, Electron.NET desktop packaging, RabbitMQ messaging and PLC integration. The company cancelled it after a year and a half to put its people on other work.

  • Angular
  • C#
  • Electron.NET
  • RabbitMQ
  • PLC
  • Desktop

Problem

The saws ran on a legacy software platform, and the company set out to replace it with a full rewrite. The software keeps track of what the operator is doing, what the machine is doing, and the messages passing between programs, on machines that people rely on to run production. Writing the UI or the API on its own is the easy part. The hard part is keeping the desktop app, the back end, messaging and the PLC predictable while the machine is running.

Approach

I led the rewrite: the architecture, the plan for which features came first, and building it with the other teams involved. I designed and built a new C# API from the ground up, including the endpoints that control the machines, and built Angular features for the new operator interface on top of it. The whole stack ships through Electron.NET as one desktop build, so a release never pairs one version of the UI with another version of the API. I also worked on messaging and machine integration, including RabbitMQ flows and PLC communication, and led the team's move to agile practices, including sprint planning and retrospectives.

Architecture

The app is an Angular UI on a C# API, shipped as a desktop application through Electron.NET. RabbitMQ carries messages between the saw software and other programs, and the PLC integration handles control and telemetry to and from the machine. The API checks a machine command before it goes anywhere, messaging moves it between programs, and the PLC layer handles the protocol. The UI doesn't guess. It shows what the system actually knows: connected or not, busy, waiting, done or failed. I was careful with optimistic updates, because showing a state the machine hasn't confirmed is how operators learn not to trust the screen.

  1. One desktop build

    • Angular UIShows what the system knows: connected, busy, waiting, done or failed
    • C# APIChecks each machine command before it goes anywhere
    • Electron.NETShips both together, so their versions always match
  2. Messaging and machine

    • RabbitMQCarries messages between the saw software and other programs
    • PLC layerHandles the protocol the machine speaks
  3. Outside the app

    • Other programsReached over RabbitMQ
    • The saw's PLCTakes control commands and reports telemetry
The rewrite, from the operator's screen to the machine.

Tradeoffs

Shipping the UI and services together gives control over deployment and the operator's experience, but every change has to line up across the UI, the API, the machine and the message contracts. Machine control rewards predictability over experimentation, so changes were sequenced and tested carefully. A rewrite also has to be planned across teams that each own a piece of it, so a lot of my job was making sure those pieces would fit together before anyone built them.

Outcome

After a year and a half, the company cancelled the rewrite to put its people on other work. By then I had designed and built the new API, machine-control endpoints included, and built Angular features for the new operator interface. It never ran a production saw: its machine commands were only ever run in testing.

Further reading