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.
Arrows: walk · drag: look around · wheel: zoom · Esc: exitButtons: walk · one finger: look · two: zoom
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?
Work orders
| Order | Part name | Quantity | Done | Status |
|---|---|---|---|---|
| 2291 | DEMO-22 | 120 | 36 | In progress |
| 2292 | DEMO-22-B | 60 | 0 | Planned |
| 2288 | DEMO-11 | 80 | 80 | Closed |
ST010 - Entry
- Part name
- DEMO-22
- Work order
- 2291
- Recipe
- 28 · v3
Identified
DEMO-22 · recipe 28 · v3 validated
- Goes in control board, cover TP-0412, 4 M4 screws, label
- Operations 10, at 5 stations
- Specifications firmware 6.13, torque 2.0 – 2.4 N·m…
- EOL a suite of 9 tests
Rule 41 · operation
PARTNAMEpositions 6–7= 22
→ Screw the cover · program 4 · 2.2 N·m
Part names
- DEMO-22 meets
- DEMO-22-B new meets
- DEMO-11 no
DEMO-22 route · recipe 28 v3
- ST010 Entry identify the serial OK
- ST020 Flashing firmware 6.13 and 99 keys OK
- ST060 Assembly cover TP-0412 and 4 screws, 2.0 – 2.4 N·m T2: 1.62 → 2.23 OK
- ST130 EOL a suite of 9 tests OK
- ST140 Vision two photos: with light and in the dark OK
- ST170 Label print it and apply it OK
Route met
Sequence from the MES
| Op | Description | Text | Image | Setup | |
|---|---|---|---|---|---|
| 10 | Lower the pins | 3 | 1 | Z −120 | OKOut |
| 20 | Write firmware | 4 | 2 | FW 6.13 | OKOut |
| 30 | Write configuration | 5 | 2 | 99 keys | OKOut |
| 40 | Read back and compare | 6 | 3 | equaldiffers | OKOut |
| 50 | Raise the pins | 3 | 1 | Z 0 | OKOut |
Sequence from the MES
| Op | Description | Text | Image | Setup | |
|---|---|---|---|---|---|
| 10 | Scan the cover | 11 | 6 | TP-0412 | OKOut |
| 20 | Screw in a cross | 12 | 7 | PRG 4 · 4× | OKOut |
Step 1 of 2Step 2 of 2Step 2 of 2
Scan the cover and place it.Screw in a cross: 1, 3, 2, 4.Screw 2 out of torque. Redo it.
- T1 2.21 OKOut
- T3 2.19 OKOut
- T2 1.622.23 OKOut
- T4 2.20 OKOut
Waiting for the coverCover TP-0412: the one in its recipeTorque: 2.0 – 2.4 N·m
DEMO-22 suite · 9 tests
- Earth probe contact PASS
- Boot and communication answers PASS
- Charge at 32 A 31.0 – 33.0 31.9 A PASS
- Earth fault: residual voltage max. 1.0 0.6 V PASS
- Five more tests inside PASS
9 of 9 PASS
6 of 6 and the LED, in place OK
Printed and applied OK
Serial 0184 · DEMO-22 · recipe 28 v3
- ST010 Entry identified OKOut
- ST020 Flashing firmware 6.13, 99 keys OKOut
- ST060 Assembly cover and 4 screws (screw 2, second try) OKOut
- ST130 EOL 9 of 9 OKOut
- ST140 Vision 6 of 6 and the LED, in two photos OKOut
- ST170 Label printed OKOut
Finished Route met: 20 operations, all within; T2 at the second try.
Projects
[ See all ]- 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.
- MQTT: before and after Every MQTT entry point, reworked one by one: in parallel, indexed, with no wasted queries, and cached.
- Plant: health and restart Capability-based monitoring of the factory’s services, and recovery with nobody touching anything.
- 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.
- 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.
- Labeling system Design, the charger’s data, versions and printing to each printer’s dots, inside the MES.
- 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.
- 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.
- Plant and master roles Plant: health and restart One-click restart only for the right role, with a personal PIN and a log.
- 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.
- Starting on its own, offline Plant: health and restart Recovery with nobody involved, and an ordered start after a power cut.
- 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.
- 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.
- Energy efficiency About Three years of energy-efficiency projects; honourable mention at the 2020 National Award.