[ 03 · Plant · 2025 ]

Plant: health and restart

After June’s power cut (seven hours of stopped line, no automatic recovery, no monitoring and no backups), a dashboard that says what works and what does not, from the PLCs to the MES, and a plant that gets back up on its own.

1 · Line · Stations and printers

The printers, with their three different failures (a paused queue, one that rejects jobs and one that does not answer), watched one by one; and each station, along its messages’ path.

2 · Communications · Broker, bridges and OPC UA

The broker, each line’s bridge and the OPC UA gateway: every hop is confirmed by the component on it, not by a ping sweep.

3 · MES · The MES and the panel

The MES on four nodes and the database in Frankfurt. The panel: the capability map, the ordered restart, the event log and the stoppages since 2022.

4 · Agent · Out of the restart

Plant actions do not go through the agent: Docker restarts a service on its own, or a person does it with their PIN.

My role
Design, development and rollout; training for maintenance and IT
When
2025
Where
Barcelona plant; the container standard also in Arlington
Built with
Plain JavaScript (the dashboard), Docker, Proxmox, nginx, MQTT, OPC UA, CUPS

The situation

In June, a power cut stopped the Barcelona plant for seven hours. When the power came back, nothing brought the services back up on its own or said which one was missing, and there were no backups of what ran on the plant servers.

The line depends on a long chain: the stations and their PLCs, the messaging (the broker and each line’s bridge), the MES, the printers and, outside the plant, the database in Frankfurt…

Related

  1. 02 2026 MQTT: before and afterEvery MQTT entry point, reworked one by one: in parallel, indexed, with no wasted queries, and cached. Data 55 s → 0.9 s
  2. 01 2026 Production configuration: from SQL to an LLM agent with MCPFrom SQL that only development could run to screens with validation, and an LLM agent that uses those screens through MCP and proposes drafts. AI 76 saves → 5 clicks

Request an invitation

For a hiring process or a specific job, freelance included. Tell me what it is about: I read it myself and, if it fits, you get in from this same browser or receive a personal link.

The job post, the project or who sent you the link.
The role or the job, in a few lines.