When a robot cell stops, the controller usually shows an alarm code. The useful part — what caused it and what fixed it last time — is often somewhere else: a PDF, a ticket, a shift note, or a person who is not on shift.
This is the design for closing that gap on a board next to the robot: log the fix, diagnose the next occurrence from that log, and reuse it without a cloud round trip.

Start at Alarm. End at Log. The next fault starts the same path with a fuller store.
Follow the five steps
01 · Alarm. The controller reports a code and a time. Those are numbers and short machine text, not a story. The robot does not understand language, and it does not need to.
02 · Keys. Before any search, the software builds exact filters: this robot, this tool, this controller generation, and that code. A near neighbor from another controller is the wrong answer even if the wording looks similar.
03 · Match. Exact key hit first. If a past fix was logged for this code on this cell, it comes back directly. If nothing matches, or a technician types a symptom in ordinary words, vector search ranks notes inside that keyed slice only.
04 · Show. The result appears on the cell screen. A person decides what to do. If the step is a safety step, the screen quotes the approved chunk word for word — it does not rewrite it.
05 · Log. When the alarm is cleared, the technician confirms the cause and the fix. That confirmation is stored with the same keys. The next time the code returns, step 03 already has something to match.
That loop is the whole product idea. Moorcheh is the search layer on the companion board. It does not move the arm. A person still acts.
What sits under those steps
The bottom of the diagram is the memory the path uses.
| Store | Log when | Use when diagnosing |
|---|---|---|
| Instructions | A work instruction or manual revision is approved | The task or the tool changes |
| Episodes | A skill finishes, or a grasp fails and is recovered | “What did we do last time on this changeover?” |
| Faults | A code is cleared and someone records the cause and the fix | The same code, or a similar symptom, comes back |
Do not mix a torque spec with a one-off crash note in one flat list. Keys first; words only for notes people wrote. The store is read-only toward the controller.
Why this cannot run in the motion loop
The arm and the diagnosis log do not share a deadline.
Motion stays in the controller. Diagnosis happens between moves.
On a multi-axis controller such as Yamaha’s RCX440, the communication cycle is 1 ms and the control cycle is between 1 ms and 8 ms. Some machine systems run tighter still — Analog Devices describes cycles down to 50–100 µs. A search of about 17 ms cannot sit there, and it should not try to. Diagnosis belongs on a fault branch, between skills, or on a screen while a person is at the cell.
Today that gap often goes to a binder or an alarm history that shows only a code. Industry work points at the same split: a maintenance study builds a local knowledge base from fault manuals; a cell-copilot design looks up manuals, cell history, and similar incidents without writing to the controller; Intel’s plant-floor HMI pattern keeps manuals and support logs on the host machine beside the HMI. Research systems such as RoboMemory and HELPER also retrieve at task or failure boundaries, not at servo rate.
How the board gets the data
The companion-board software is the only part that reads and writes this log.
From the controller, over a vendor route: active alarms and history (code, severity, timestamp when available), plus program and I/O signals that mark when a skill starts, ends, or aborts. Common options are an OPC UA server (ABB exposes event logs with subscriptions; Yaskawa’s OPC UA is a paid option), ABB Robot Web Services for alarm history, or a vendor protocol or file export (for example SNPX or FTP on some Fanuc controllers). Not every route offers history, and some alarms have no timestamp — the software records what is missing instead of guessing.
From people: when an alarm clears, the technician confirms cause and fix. The operator note is the only free text.
Onto the board: one episode record per skill, and a fault record after confirmation. Nothing is written back to the controller.
Sources for the read routes: Underautomation’s alarm documentation, Yaskawa’s OPC UA note, and ABB’s Embedded OPC UA application manual. Which route a cell can use depends on its controller and licenses. This is a reference design, not a named factory deployment.
How manuals enter the instructions store
Manuals are not searched as whole PDFs at fault time.
Someone with authority approves a revision before the cell goes live. The software keeps the PDF on the board for audit, splits it into sections tagged by robot model, controller generation, and tool, and embeds each section into the instructions store with page and revision. When the revision changes, it is ingested again; the old one stays tagged so past fixes can be traced. At diagnosis time the keyed filter runs first, then vector search ranks matching sections. The screen shows a short excerpt; the full section opens only when asked.
Why the search layer has to stay small
The numbers below come from random test vectors with a fixed seed, not from real manual text. Manual sections need their own measurement before any manual figure is quoted.
The companion computer already shares RAM with a detector, an embedder, and often a small language model. A float32 + HNSW index is built for servers. On the board it competes with the models that see and talk.
Top: a 4 GB class board. Bottom: Ventuno Q.
On a 4 GB class board, 10,000 items at 768 dimensions:
| Float32 payload | Moorcheh | |
|---|---|---|
| Vector payload | ~30.7 MB (about 29 MiB) | ~0.92 MiB |
| Store file | — | 2.0 MiB |
| Search, with rerank | — | ~17 ms |
A cell’s faults, notes, and instruction chunks are thousands of rows, not a million. That is this regime: retrieval stays outside the servo loop and inside a fault branch. At 100,000 items on the same class of board, published search is about 67 ms and the store about 20 MiB.
On Ventuno Q (15,284 MB RAM), 100,000 items at 1536 dimensions: Moorcheh 29 MiB vs HNSW float32 1.3 GiB; median search 6.45 ms including rerank vs 4.22 ms for the HNSW graph alone. At one million vectors the HNSW shard was 13.2 GiB before any model; Moorcheh was 294 MiB.
One caveat: the two rankings are not the same problem. HNSW cosine ranks original floats. Moorcheh ranks one-bit codes and the published time includes rerank. A smaller file is not a claim that the top result matches HNSW item for item. For a procedure, the filter and the stored chunk id do that work.
What this design refuses
- It does not enter the 1–8 ms motion loop.
- It does not send language to the controller.
- It does not write a program, speed, or output to the controller.
- It does not paraphrase a lockout or safety step.
- It does not treat a near neighbor from another controller as an answer.
- It is not a customer deployment. No plant name, no production cycle-time claim.
Where to check this
Industry:
- Yamaha RCX440 — 1 ms communication, 1–8 ms control.
- Analog Devices, multiaxis timing
- Streamlining industrial robot maintenance
- Robot cell troubleshooting copilot — design, not a field result
- Intel HMI Augmented Worker
- RoboMemory · HELPER · Industry 5.0 retrieval
Our measurements:
- On-device RAG on 4 GB hardware
- What retrieval costs on the board
- From HNSW to information-theoretic binarization
- Local vision memory
Log the fault on the board. Diagnose the next one from that log. Leave the arm’s motion program alone.