Ignacio Oliú, MES developer: OPC UA, MQTT and Siemens PLCs

I build the MES and production systems of Wallbox’s plants in Barcelona and Arlington.

What the MES does

[ One charger, end to end ]

The MES holds the work orders (manufacturing orders, in an ERP). From each charger’s code, the MES knows its recipe, and the recipe is its routing: what each station, or work center, must do to it and within which limits. It leaves finished when it has met all of it. With its questions and a table, in What is an MES?

MESProduction · line 1

Work orders

OrderPart nameQuantityDoneStatus
2291DEMO-2212036In progress
2292DEMO-22-B600Planned
2288DEMO-118080Closed
MESProduction

ST010 - Entry

Serial numberSubmit
Part name
DEMO-22
Work order
2291
Recipe
28 · v3

Identified

MES · Recipes

DEMO-22 · recipe 28 · v3 validated

  1. Goes in control board, cover TP-0412, 4 M4 screws, label
  2. Operations 10, at 5 stations
  3. Specifications firmware 6.13, torque 2.0 – 2.4 N·m…
  4. EOL a suite of 9 tests
MES · Rules

Rule 41 · operation

PARTNAMEpositions 6–7= 22

→ Screw the cover · program 4 · 2.2 N·m

Part names

  1. DEMO-22 meets
  2. DEMO-22-B new meets
  3. DEMO-11 no
MES · Route

DEMO-22 route · recipe 28 v3

  1. ST010 Entry identify the serial OK
  2. ST020 Flashing firmware 6.13 and 99 keys OK
  3. ST060 Assembly cover TP-0412 and 4 screws, 2.0 – 2.4 N·m T2: 1.62 → 2.23 OK
  4. ST130 EOL a suite of 9 tests OK
  5. ST140 Vision two photos: with light and in the dark OK
  6. ST170 Label print it and apply it OK

Route met

ST020 · Flashing0184 · DEMO-22

Sequence from the MES

OpDescriptionTextImageSetup
10Lower the pins31Z −120OKOut
20Write firmware42FW 6.13OKOut
30Write configuration5299 keysOKOut
40Read back and compare63equaldiffersOKOut
50Raise the pins31Z 0OKOut
ST060 · Assembly0184 · DEMO-22

Sequence from the MES

OpDescriptionTextImageSetup
10Scan the cover116TP-0412OKOut
20Screw in a cross127PRG 4 · 4×OKOut
ST060 · Assembly0184 · DEMO-22

Step 1 of 2

Scan the cover and place it.

  1. T1 2.21 OKOut
  2. T3 2.19 OKOut
  3. T2 1.622.23 OKOut
  4. T4 2.20 OKOut

text 11 · image 6

Waiting for the cover

EOL · ST1300184 · DEMO-22

DEMO-22 suite · 9 tests

  1. Earth probe contact PASS
  2. Boot and communication answers PASS
  3. Charge at 32 A 31.0 – 33.0 31.9 A PASS
  4. Earth fault: residual voltage max. 1.0 0.6 V PASS
  5. Five more tests inside PASS

9 of 9 PASS

Vision · ST1400184 · DEMO-22
With light
In the dark · LED

6 of 6 and the LED, in place OK

Label · ST170DEMO family template
DEMO-22Charger · 230 V · 32 AS/N 0184

Printed and applied OK

MES · Traceability

Serial 0184 · DEMO-22 · recipe 28 v3

  1. ST010 Entry identified OKOut
  2. ST020 Flashing firmware 6.13, 99 keys OKOut
  3. ST060 Assembly cover and 4 screws (screw 2, second try) OKOut
  4. ST130 EOL 9 of 9 OKOut
  5. ST140 Vision 6 of 6 and the LED, in two photos OKOut
  6. ST170 Label printed OKOut
With light
In the dark

Finished Route met: 20 operations, all within; T2 at the second try.

Recreation with example values: the orders, DEMO-22, serial 0184, the text and image numbers, the torques and the measurements are made up. The stations and their order are those of a charger line; here, five of them and the entry.

Projects

[ See all ]
  1. 2026 Production configuration: from SQL to an LLM agent with MCP From SQL that only development could run to screens with validation, and an LLM agent that uses those screens through MCP and proposes drafts.
  2. 2026 MQTT: before and after Every MQTT entry point, reworked one by one: in parallel, indexed, with no wasted queries, and cached.
  3. 2025 Plant: health and restart Capability-based monitoring of the factory’s services, and recovery with nobody touching anything.
  4. 2025 Production line, live The business view of the plant panel: every pallet on the belt and at its station, and where the time goes, with the PLCs’ OPC UA data.
  5. 2024 Predictive maintenance for EOL testing What wears out in the test station rather than in the product, from twenty-six weeks of real end-of-line measurements.
  6. 2024 Labeling system Design, the charger’s data, versions and printing to each printer’s dots, inside the MES.
  7. 2023 Sant Joan de Déu A game by brain lobe for the patient area, built at Playmotiv for the hospital.

For CemAI

[ Phase I ]

What Phase I of the new OPTIBAT interface asks for, and where something similar, already built, can be seen here.

  1. A new interface over an existing backend Production configuration: from SQL to an LLM agent Screens with validation, preview and undo, over the API that was already there.
  2. Plant and master roles Plant: health and restart One-click restart only for the right role, with a personal PIN and a log.
  3. Charts that keep their layout Predictive maintenance for EOL testing The monitor keeps the order of its charts, their columns, the settings and the limits.
  4. Starting on its own, offline Plant: health and restart Recovery with nobody involved, and an ordered start after a power cut.
  5. Seeing the plant live Production line, live A real afternoon of the line with the PLCs’ OPC UA data: every pallet along the belt, each station’s states, its log and where the time goes.
  6. Predictive maintenance Predictive maintenance for EOL testing Filtered trend, distribution and editable limits over twenty-six weeks of real measurements, with alarms that become work orders.
  7. Energy efficiency About Three years of energy-efficiency projects; honourable mention at the 2020 National Award.

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.