DigitalFactoryLab · Banknote Works · Handbook BW-HBK-000 · Rev A

Banknote Works — The Complete Handbook

The three Banknote Works documents merged into one reference: the functional briefing for readers new to MES, the golden-thread traceability use case, and the machine connectivity standard for IT. Everything describes the same live system, with the same numbers.

Contents Part A briefing · Part B use case · Part C standard Format Single reading document · printable Date July 2026 · revised November 2026 (ten-station line, secure supply)
Part A

Functional briefing

What an MES does, told through the line and its use cases — for readers new to MES.

1What is an MES, in one picture

Your office systems know what should happen. Your machines know what is happening — but the two don't talk. A Manufacturing Execution System sits in between: it listens to every machine, writes everything down, and turns that stream into answers people can use.

Office systems (ERP)Orders, purchasing, stock, invoicing — the plan. Knows you must print 12,000 sheets this week.
↕  the MES connects the two
MES — this demoThe factory's eyes and memory: a live view of every press, and a permanent record of every sheet, measurement, material lot and stop.
↕  listens to the machines, all day, automatically
MachinesThe ten stations. They already produce this data — states, measurements, alarms. Without an MES, it evaporates.

The key idea for everything that follows: nobody types anything. Every fact in this document's use cases is written by a machine, at the moment it happens.

2The example line

Security paper enters at B010 in counted loads of 100 sheets and gains one security layer per press; only at the end is each sheet cut into 45 individual banknotes. The raised intaglio print is applied in two passes — back, then front — with a drying store in between, because the first side must dry before the sheet can be pressed again. A sheet that is spoiled at any point is written off and shredded — banknotes are never "repaired" — while the rest of its load carries on. A full-sheet camera inspection after the second intaglio pass (B055) catches a spoiled sheet before a serial number is spent on it.

OpStationWhat happens to the sheetsCycle per load
10B010Paper in — thickness, watermark and security-thread check30 s
20B020Background printing on both faces in a single pass (perfect front/back register)45 s
30B030Colour-shifting ink patch, silk-screened (~18 µm deposit)60 s
40B040Holographic foil stripe, hot-stamped at 105 °C50 s
50B050Intaglio, back — the raised print you can feel, pressed at 900 kN. The slowest press: it sets the pace90 s
52B052Drying store — eight loads rest side by side while the intaglio ink dries. No operator, no material: a buffer, not a machine300 s dwell
54B054Intaglio, front — the second pass, on the portrait side, with its own engraved plate85 s
55B055Full-sheet camera inspection, both faces — spoiled sheets are written off before numbering, defective notes on good sheets are marked40 s
60B060Two serial numbers per note (letterpress) + protective varnish55 s
70B070Sheets cut · every note camera-inspected · marked notes replaced · notes banded in 100s and packed in 1,000s70 s

Two characters matter for the rest of this document: the intaglio press B050 (expensive, its plate wears out, it paces the line) and the colour-shift ink at B030 (the most expensive consumable — small, precious lots).

Mechanical layout — Print Hall 1 (top-down)

PRINT HALL 1 — SECURE ZONE L4 one way in · one way out STRONGROOM & STORES paper pallets counted in · issued sealed B01030 s Sheet feed & check B02045 s Offset Simultan B03060 s Silk-screen OVI B04050 s Foil / OVD stamp B05090 s Intaglio — back pacemaker · 900 kN AGV CORRIDOR — sealed material issues (AGV-D) to every press B052300 s Drying store 8 loads rest here B05485 s Intaglio — front 900 kN B05540 s Sheet inspect B06055 s Number + varnish B07070 s Inspect · cut packs of 1,000 SHREDDER spoiled sheets CASH VAULT packs · containers counted out (WMS)

Reading the layout: material enters once (strongroom and secure stores, top-left), sheets flow left→right then right→left in a U through the ten stations, and product exits once (cash vault, bottom-left). Spoiled sheets leave the U at whichever press caught them, straight to the shredder. The AGV corridor crossing the hall carries only sealed material issues — never product (§14).

3How the line runs — the manufacturing logic

Four rules govern the flow, and they explain every number the MES will show:

One load per press. Each press works on exactly one load of 100 sheets; when it finishes, the load moves forward as soon as there is room ahead. At most three loads may wait in front of a press — work-in-progress stays small and visible. The one exception is the drying store, where eight loads rest at the same time.

The slowest press sets the pace. The first intaglio pass takes 90 seconds per load, so the line can never make more than 40 loads/h (4,000 sheets/h) — no matter how fast the other presses run. With breaks, stops and spoilage, a normal hour delivers about 2,750 good sheets. The faster presses wait part of every cycle; that idle time is structural, not a problem:

* B052 is a dwell, not a cycle: each load rests 300 s, eight at a time — one load leaves every 38 s on average.

Quality gate at every press — write off early. A sample sheet is measured at each step, and the sheets a press spoils leave the line right there, counted off the load and sent to the shredder. You never spend hologram foil or intaglio ink on a sheet that is already bad. The full-sheet camera inspection at B055 sits right after the second intaglio pass and before numbering, so a serial number is never spent on a spoiled sheet.

A day has a rhythm. Three 8-hour shifts with fixed breaks — a press finishes its load, then pauses; that is planned time, not a breakdown — plus short planned maintenance every ~200 loads per press, and a plate change when an intaglio plate reaches the end of its life.

One consequence worth remembering: a stop at B050 is lost output forever; a stop at B010 usually costs nothing — it catches up within its idle margin. The MES reads losses against the pacemaker for exactly this reason.

4Use case — Is the line running right now, and how well?

Without an MES

  • You walk the floor or phone the shift leader to know whether a press is down.
  • Yesterday's output is typed into a spreadsheet — this morning, from memory.
  • "How good is the line?" gets a different answer from everyone you ask.

With the MES

  • One screen shows all ten stations live — running, loading, paused, in fault.
  • Counters are the machines' own: good sheets, sheets spoiled, notes delivered, to the second.
  • One honest number per line — OEE: "out of 100 sheets we could have made, how many good ones did we actually make?", split into was the line up, was it at speed, was the output good.

In the demo — the Live Line page: watch a real load move press to press; stop and restart the whole line with one click and see it drain gracefully.

5Use case — An auditor points at one banknote. Tell me its story.

Every load of 100 sheets receives a unique ticket number the moment it enters the line — think of it as a passport. From then on, every press stamps that passport automatically: when the load arrived, how many sheets went in and came out good, what was measured, and which material lot was mounted at that moment. At numbering, the passport gains the range of note serials printed on those sheets.

TimePressEntry in the passport of load BNK-…-0408569Material lot
09:12B010Paper verified (thickness, watermark, thread)PAPER-408608
09:12B020Background print in register — passINK-408609
09:13B030Colour-shift patch in spec · 2 sheets written off (screen-print waste)OVI-408610
09:15B040Hologram applied, adhesion checked · 1 sheet written off (foil splice)FOIL-408611
09:16B050Back relief printed at 900 kN, height in spec · 97 sheets in, 97 goodIINK-408612
09:22B052Rested 300 s in the drying store — ink dry, no set-off—
09:23B054Front relief printed, height in spec · 97 goodIINK-408614
09:24B055Both faces camera-checked · 97 good sheets, 15 notes marked defective—
09:25B0604,365 notes numbered GG4157505 – GG4161869, varnishedNINK-408613
09:26B0701 sheet lost at the cut · 4,320 notes cut, marked notes replaced · banded and packed — deliveredBAND-408615

Three properties make this trustworthy: the passport is written by the machines at process time (it cannot be forgotten, backdated or edited); it also accounts for the sheets written off mid-line (each with a quantity, a reason and a cause, not with silence); and it works backwards — pick a material lot and get every load that used it. That is the recall question, answered in seconds. The full mechanics are the subject of the companion use case, The Golden Thread.

In the demo — the Traceability page: we open the passport of the load currently in production.

6Use case — How do you know the right ink was used?

Because the system makes it impossible not to know. Four rules, each one recorded automatically:

#RuleWhat it means in practice
1Each press accepts one materialB030 takes colour-shift ink and nothing else — that is configuration, not an operator's memory.
2Every delivery is loggedInk is released from its secure store by two people, sealed, carried by the AGV and scanned in at the press: container, supplier lot, seal and trip recorded on one issue record. A manual request goes through the same controlled issue.
3Each load notes its lotWhen a load passes a press, its passport records the lot mounted at that moment — the link is made live, never reconstructed afterwards.
4The stores must balanceDeliveries are counted in, containers are counted out, consumption is counted at the press. Received = in store + in transit + at press + consumed, per material, at every instant (§14).

What this buys you: a supplier calls about a suspect lot → you list every affected load in seconds, not days. An auditor asks for proof → you show the passport, not a promise.

In the demo — the Material page: the live lot at each press, its mounting record, its history; the Secure Supply page for the issue behind it.

7Use case — How much ink is left — and who refills it?

Without an MES

  • Someone eyeballs the ink level on their round — or the press stops mid-shift.
  • Consumption is estimated at month-end and never quite matches purchasing.
  • Expensive consumables are over-stocked "just in case".

With the MES

  • Every press shows its live remaining quantity in real units — sheets of paper, grams of ink, metres of foil, bands of tape — drawn from the sheets it actually processed: consumption follows production, by construction.
  • Below a threshold, a refill is requested automatically: one sealed container is released from its secure store and brought by the AGV; it waits beside the press and is mounted when the running one is used up.
  • Each material shows its hours of cover, and the store reorders from the supplier by itself at its reorder point (§14).
  • Exact per-order, per-lot consumption is ready for the ERP — no month-end guessing.

In the demo — the Shopfloor page: the OVI ink tin at B030 counting down in grams, load by load, and the AGV's mission and battery, live; the Secure Supply page for stores, cover and deliveries.

8Use case — Why did we shred 12 sheets yesterday?

Without an MES

  • "Quality issues" — a total on a whiteboard, causes from memory.
  • Stops are logged by hand, if at all; short stops vanish entirely.
  • The same problem returns weekly because nobody can see it is the same problem.

With the MES

  • Every write-off is an event with a name: press, number of sheets, reason, cause, load ticket and the material lot in use.
  • Every stop has a machine-given cause and an exact duration — the top-losses chart builds itself.
  • The answer becomes concrete: "plate wear at the intaglio press, 14:10–15:40, 12 sheets — here are the load tickets."

In the demo — the Stoppages and Statistics pages: the line's real fault history, aggregated into a Pareto with downtime minutes.

9Use case — Can we catch a problem before we scrap anything?

Yes — because the presses measure a sample sheet from every load. Think of it as the machine's temperature curve: values wander slightly around a target, which is normal; what matters is the trend.

The intaglio plate wears slowly, so the measured relief height drifts for hours before the first bad sheet appears. The MES watches that drift (statisticians call it SPC — the trend chart is enough of a name) and raises a hand while everything still passes. You schedule the plate change at the next break instead of discovering a scrap wave the next morning.

The scenario we run live: a subtly bad ink lot is issued to B030 — nothing announced, exactly like real life. The suspect tin waits beside the press and starts to matter only once it is mounted, when the running tin is used up. You find it yourself in four steps: spoilage write-offs start climbing at B030 → the trend chart shows the OVI layer thickness drifting high → the material page names the suspect lot → one click lists every load that used it. Then we fix it, and everything returns to green. That investigation takes minutes here; without the data, it is days of meetings.

In the demo — the SPC page, plus the bad-lot scenario run end to end.

10The live demonstration (~10 minutes)

1

Portal — the line at a glance

Running state, today's output, material levels, the AGV. We stop the line — presses finish their load, then hold — and restart it. Stage the finale early: click the bad-lot use case — the suspect tin is issued under seal at once, but it is only staged beside B030 and is mounted when the running tin runs out. A full 1 kg tin lasts about an hour at the nominal rate (1,050 g/h), so arm the scenario when the B030 tin is nearly used up, or well before the session; the drift starts with the first load after the mount, and a convincing trend and the affected serials follow within a few minutes.

2

One load's journey (§4–5)

Follow the load in production across the ten stations, then open its passport in Traceability.

3

Material & consumption (§6–7)

Live ink levels on the shopfloor map, the active lot at B030, the sealed issue that brought it — then the Secure Supply page: three stores, hours of cover, the substrate ledger (§14).

4

The bad-lot investigation (§8–9)

The suspect ink lot was armed in step 1 and is now mounted. Find it: spoilage at B030 → trend chart (OVI layer thickness) → lot trace → affected loads.

5

Fix, and keep the proof

Reset the station, order the plate change. Screens return to green — and the whole incident stays in the record, forever queryable.

11Architecture, in plain language

How it is wired

One plant server, open standards only; machines never talk to applications directly.

Machinesthe 10 stations + AGV
Press controllerspublish states, measurements and events the moment they happen
OPC-UAthe industry-standard plug for SCADA tools
Message hubthe "post office"
MQTT brokerevery producer and consumer meets here — a new application plugs in without touching the machines
Memorythe record
Databaseevery event, timestamped, never edited — where passports and Paretos come from
Screenswhat you saw
MES dashboardportal, live line, shopfloor, statistics, traceability, material
AI copilotasks the same data in plain language

Where the ERP and the warehouse system fit — a separate map on purpose

ERPthe business
Orders"print 12,000 sheets this week"
Purchasingsupplier contracts, replenishment planning
Financewhat did scrap cost?
WMSthe secure stores
Goods receiptsupplier lots checked in — this is where a lot number is born
Store inventorystrongroom, security cage, general store — counted in and out
Controlled issuea low-material call becomes one sealed container on the AGV run
MESthe factory day
Execution & visibilitylive line, OEE
Traceabilitypassports, lot trace
Qualitytrends, scrap causes
Materiallots, consumption, refills
Machinesthe presses
They just producethe MES listens and records; it never slows them down

The ERP does not need to know a press exists, and a press does not need to know an invoice exists — the MES translates between the two. The WMS is, strictly speaking, a sibling of the MES (both are execution systems); it is drawn between ERP and MES here because that is how material physically flows — purchased, counted into a secure store, issued to the line. The hand-over is clean: the MES raises a material call, the WMS answers with a sealed, lot-stamped container, and the mounting is confirmed back as a logged transaction. In this demo environment the ERP and WMS sides are simulated — the store side in full, as §14 describes; the hand-over formats are real and ready.

12What each role gets

RoleTheir questionThe MES answer
Production manager"Are we on plan, right now?"Live line view, output counters, one honest OEE
Quality manager"Why did we scrap — and can we prevent it?"Named scrap causes, trend charts that warn before scrap
Logistics / stores"What's left, consumed, and next?"Live levels in real units, hours of cover, counted receipts, sealed issues, exact per-lot consumption
Auditor / customer"Prove what happened to this unit."The passport: every station, measurement and lot — in three clicks
Finance"What did our losses actually cost?"Complete scrap & downtime record, ready to be costed
IT"What must we install on machines?"Nothing proprietary — open standards, one integration contract (BW-CON-001)

13What the works counts — loads, sheets, notes

A print works does not move sheets one at a time, and it does not account for them one at a time either. Three quantities are nested inside each other, and every figure on the screens belongs to exactly one of them:

QuantityWhat it isWhere you meet it
LoadThe piece that moves from press to press: a counted stack of 100 sheets with a load ticket, serial BNK-…Traceability, Report, Gantt — one row is one load
SheetThe unit of account: 45 notes in a 5 × 9 grid. Output, yield, spoilage and OEE are all in sheetsEvery KPI, the statistics, the sheet ledger
NoteExists from numbering (B060) onward, each with its own serial — two letters and seven digitsPacks, containers, shipments, the note ledger

Spoilage, not scrap. A load is never thrown away whole. Each operation writes off the sheets it spoiled — two at the silk-screen, one at the guillotine — as a spoilage entry on the load ticket, with a quantity, a reason and a cause: ordinary process waste, a burst of waste, sheets caught in a machine fault, or sheets rejected at inspection. The load carries on with what is left; nothing is ever reworked. At reference settings about 92 sheets in 100 reach the end of the line.

The sheet ledger must balance. From the moment the line starts, sheets issued = good + spoiled + in process. Anything that does not add up is shown as unaccounted and the ledger turns from BALANCED to VARIANCE — in a currency works, a missing sheet is a security event, not a rounding error. A second ledger does the same for notes: numbered = delivered + in process.

Plates under dual control

Each intaglio press carries one engraved plate — back at B050, front at B054 — with a life of 30,000 impressions. Waste grows as the plate wears, a warning is raised at 85 % of its life, and at the end the press stops for a plate change: twelve minutes in maintenance, released by two people, then a fresh plate with its own identity. Every plate that ever ran stays in the history, with the impressions it made.

Hall climate

Paper moves with humidity, so the print hall is held at 23 °C and 52 % relative humidity, inside a band of 20.5–25.5 °C and 47–57 %. Outside that band the sheets stretch or shrink: front-to-back register drifts at the offset press and waste rises on every press until the hall recovers. The excursion is logged with its start, its end and its cost in sheets.

Note yield and replacement notes

A good sheet can still carry a bad note. The camera inspection at B055 marks defective notes without spoiling the sheet; after the cut, B070 rejects those notes one by one and puts a replacement note in each gap, so every pack leaves complete. Sheet yield and note yield are therefore two different numbers, and the works reports both.

Packs, containers, shipments

Notes are banded in bundles of 100, ten bundles make a pack of 1,000, ten packs fill a sealed container with a seal number, and containers wait in the vault until twenty of them leave together as a cash-in-transit shipment. Each pack and each container records the range of note serials inside it and the load tickets those notes came from.

That chain is what makes a single banknote traceable: from its serial to its pack, its container and its shipment — and back through the load ticket to every press, plate, ink lot and climate reading that made it.

In the demo — the Portal's Works panel shows plate wear, the hall climate, the vault and both ledgers live; three scenario cards wear a plate, order a plate change and push the hall out of its humidity band.

14Secure supply — the chain of custody

A currency works is audited twice: on what it printed, and on what it was given to print with. Section 13 covers the first half — every sheet from B010 to the pack. This section covers the other half: the same counting discipline, applied upstream of B010, to the paper and to the consumables that make a note hard to forge. Nothing reaches a press without having been counted in by two people, and nothing leaves the works as waste without two witnesses.

StoreWhat it holdsReleased by
StrongroomSecurity paper, the substrate: sealed pallets of 20 counted reams of 500 sheets — 10,000 sheets a pallet, each pallet with its paper-mill lotVault Custodian + Shift Supervisor
Security cageThe accountable consumables: OVI ink (grams), hologram foil (metres), numbering ink (grams)Vault Custodian + Shift Supervisor
General storeOffset ink, intaglio ink, varnish (grams) and banding tape (bands)Vault Custodian + the press operator

Counted in, under dual control

When a store's available stock falls to its reorder point, a secure delivery (SDL-…) is ordered from the paper mill, the ink maker, the foil maker or the general supplier, with an advice note: so many containers, so much quantity, this lot. It reaches the receiving dock after its lead time — in the demonstration 20 minutes for paper, 15 for inks and foil, 10 for general supplies — and is then counted in for 3 minutes by two named people, the Vault Custodian and the Shift Supervisor. If the count matches the advice note, a goods receipt (GRN-…) books the stock into its store. Only one delivery per material is ever open at a time.

What a variance means. If the count does not match — two reams short on a pallet, one tin missing — the delivery is held: nothing is booked for 10 minutes while it is investigated, then it is booked as counted, with the shortage claimed against the supplier. The principle is the one an auditor looks for: stock never exists because a document says so, only because two people counted it. A receipt variance is an exception with names, times and a resolution on it — not a silent adjustment.

Issued under seal

When a press runs low, it asks. AGV-D drives to the store; two people release exactly one container — for paper, ten reams (5,000 sheets) from the oldest pallet; for everything else one tin, can, pail, roll, drum or reel — it is closed on the AGV with a numbered tamper seal (TS-…), carried across the hall, and scanned in at the press by the press operator. The whole hand-over is one record, the controlled issue (ISS-…): who asked, who released, which seal, which trip, who received.

The container is then staged beside the press and mounted only when the running one can no longer cover one more load; its small residue is carried over into the new container, so nothing is thrown away and nothing is counted twice. If a store has nothing to release, AGV-D waits at the store, the press runs its lineside stock down and stops for want of material — and restarts by itself once the next delivery has been counted in.

Substrate in sheets — one ledger from the mill to the pack

Paper is not counted in boxes; it is counted in sheets, from the first ream to the last. Sheets leave the B010 feeder pile at the very instant B010 issues a load of 100 — the same instant the sheet ledger of §13 counts them as issued. That shared moment joins the two ledgers into one chain with no gap in it:

LedgerMust always holdMeaning
Substrate (sheets)received = in strongroom + in transit + at press + issuedReceived is the opening stock plus every goods receipt; in transit is paper released and on AGV-D, not yet scanned at B010
Sheets (§13)issued = good + spoiled + in processThe same issued figure — the substrate ledger ends exactly where the sheet ledger begins
Every other materialreceived = in store + in transit + at press + consumedIn its own unit: grams, metres or bands
Waste (sheets)spoiled = destroyed + awaiting destructionSpoiled is the sheet ledger's own figure

Each of these balances at every instant. Anything left over is shown as unaccounted, and — exactly as for the sheet ledger — the status turns from BALANCED to VARIANCE.

Usage reconciliation — did the press use what it should have?

The two consumables worth stealing are measured against a standard. For OVI ink the standard is 0.35 g per sheet processed, for hologram foil 0.6 m. The works compares what the press actually drew with what the sheets it processed should have needed, over the last 20 loads and since the start. In normal running the difference stays between 0 and about +1.6 %; beyond the ±3 % band a usage variance is raised and the material is flagged out of band until it is explained.

The locked waste bin and its certificates

A spoiled sheet is still security paper with security features on it. Every sheet written off, for whatever cause — ordinary process waste, a burst, an inspection reject, a machine fault — goes into a locked waste bin. The bin is destroyed as a batch when it holds 600 sheets or when its oldest sheet has been waiting 120 minutes, whichever comes first, and each batch produces a destruction certificate (DC-…): how many sheets, from which presses and for which causes, shredded and compacted on site, signed by two witnesses — the Quality Inspector and the Vault Custodian.

Cover — how long can we run on what we hold?

For each material the works reports its cover: the hours that the stock at the presses plus the available stock in store will last at the current consumption rate. Below 2 hours a low-cover warning is raised. Stock placed on security hold — counted, present, but not to be issued — is left out of the cover on purpose, and the next count-in of that material lifts the hold.

Put together, the works can answer the auditor's question from both ends: every sheet that came off a paper-mill pallet is in the strongroom, on the AGV, at the feeder, in a good pack, in process — or on a destruction certificate with two signatures.

In the demo — the Secure Supply page: the three stores, cover per material, open deliveries, the substrate ledger and the certificates, with a custody timeline for any pallet, ream, lot, issue, receipt or certificate. Three scenarios can be played: a delayed delivery, a short receipt, and a press that over-consumes OVI ink or foil.

The honest closing line: everything in this briefing is built from data the machines already produce. The MES does not create work — it stops that data from evaporating.

Part B

Use case UC-01 — the Golden Thread

Serialized traceability of one load of sheets across the ten stations — down to the single note.

1The scenario

A counted load of security paper — 100 sheets, 4,500 future banknotes — enters the line, receives a unique ticket serial, and is followed press by press. Every station writes its data against that one serial: sheets in and out, write-offs, measurements, and the exact material lot it consumed. Nothing is typed by anyone.

BNK-20260723-0408569the golden thread — the same serial on every press

A banknote line is the perfect setting for this use case for three reasons: no rework exists, so the record is never muddied by repair loops — a sheet stays in its load, or is written off with a cause; materials are counted in and issued under seal, so lot binding is a security requirement rather than a nice-to-have; and the mechanics transfer unchanged to any serialized product — pharmaceuticals, medical devices, aerospace parts.

2The principle — the serial number is the single key

One unique serial is assigned to the load at the first station. From that point on, everything counted, measured or consumed is bound to it — nothing floats free. Read the serial and you have the whole history.

Three guarantees make the key trustworthy: it is bound once, at the entry press, before anything can happen to the load; it is written by machines at process time — never typed, never backdated; and it is never reused — day-seeded sequencing makes re-issue impossible, even across system restarts.

Contents of the load record · BNK-20260723-0408569
Material lotsthe exact paper, ink, foil and tape lot mounted at each press
Sheet countsheets in, good sheets out and sheets written off at each of the ten operations — with reason and cause
Process parameters30 measured values on the sample sheet, against machine-published limits
Equipmentpress, work op, line
Timestampsarrival, cycle time and completion, per press
Notesnotes marked at inspection, the serial range numbered at B060, notes cut, good and replaced at B070
Final statusfinished — its notes packed for the cash vault, every missing sheet accounted for

3Entry — the serial is born, and starts its family tree (B010)

Captured at B010
  • Serial …0408569 assigned as the load of 100 sheets is counted off the reams issued from the strongroom
  • Substrate verified — thickness, watermark position, security-thread position
  • The security-paper lot bound to the serial
  • Press, work op and timestamp recorded
Written to the serial as genealogy — first branch
LOAD ·0408569100 sheets · in production
PaperLOT-PAPR-408608
Offset inkLOT-OINK-408609
OVI inkLOT-OVI-408610
+ 4 morefoil · intaglio · numbering · band

parent load ← linked → consumed material lots — the tree grows one branch per press

4In process — every count and measurement is stamped onto the ticket (B050)

Captured at B050 · Intaglio
  • Measured values against the limits the press itself publishes
  • In-tolerance verdict per parameter, on the load's sample sheet
  • Sheets in, good sheets out — spoiled sheets leave right here, written off on the ticket with reason and cause
  • The plate that printed it, and how worn that plate was
  • Active intaglio-ink lot, press and timestamp
Written to the serial as data-collection results
Test record — this load, this press
ParameterValueLimits
Relief height61.2 µm48 – 72PASS
Plate pressure903 kN840 – 960PASS
Wiping residue1.9 %≤ 1.8FAIL

A wiping failure like this one writes sheets off the load — quantity, reason, press and ink lot recorded in a single spoilage event. No downstream value is ever added to a bad sheet.

5Exit — the record is sealed, the notes are packed (B070)

Captured at B070 · Inspection, cut & pack
  • Sheets cut; every note camera-inspected individually
  • Marked and rejected notes pulled out, replacement notes put in their place
  • Notes banded in 100s and packed in 1,000s — each pack records its note-serial range and its load tickets
  • Packs sealed ten to a container and counted into the cash vault, ready for shipment and later lookup
Written to the serial as final count + pack records
Sealed pack · cash vault
PK-000277
Notes1,000 · GG5028000 – GG5028999
From loadBNK-20260723-0408569
ContainerCTN-00028 · 6 replacement notes
IN VAULT

Sheets written off earlier stay on the record too — counted at their exit press, with the cause. A sheet that is neither good, spoiled nor in process is itself an alert: the ledger turns to VARIANCE.

6The payoff — the record reads in both directions

DirectionQuestion answeredExample
Backward traceFrom one load ticket → every material lot, sheet count, measured value and press that went into it.BNK-…-0408569 → lots · counts · measurements
Forward traceFrom one material lot → every load that consumed it — the exact scope of any recall.LOT-OVI-408610 → 38 loads → 3,800 sheets issued
Note traceFrom one banknote serial → its pack, container and shipment, and the load tickets behind it.GG5028123 → PK-000277 → CTN-00028 → BNK-…

Four business outcomes follow directly: recall containment (isolate exactly the affected loads and packs, in seconds), quality analytics (trends by lot, press and shift), audit and compliance (proof of what was printed and how), and security reconciliation (received = in store + in transit + at press + consumed, per material — Part A §14).

In the live demonstration this section is played out for real: a subtly defective OVI ink lot is delivered to B030, quality drifts, and the investigation uses exactly these two queries — name the lot, list every affected load — before recovering the line.

7Mapping into your MES

The vocabulary changes from vendor to vendor; the objects do not. Every concept in this use case lands one-to-one in any serialized-production MES:

In this use caseIn your MES
Load ticket (100 sheets)the serialized unit / lot the MES tracks, with a quantity
Press B010–B070an operation in the routing
Material-lot bindinggenealogy / as-built component linking
Measurements vs limitsdata-collection parameters
Spoilage write-off, cause on the ticketscrap confirmation with quantity and reason code
Pack · container · shipmenthandling units / packing hierarchy
The load's passportas-built record / where-used query

Same principle, whatever the MES — one unique serial ties the whole build together. The live system behind this document proves it end to end.

Part C

Connectivity standard BW-CON-001

The machine-integration contract — for integrators and IT.

1Architecture & ISA-95 context

The line publishes on two parallel southbound interfaces — OPC-UA for SCADA/HMI-style clients and MQTT for the unified namespace. The broker archives selected namespaces into the historian (PostgreSQL); the shopfloor dashboard is a read-only ISA-95 Level 2 consumer of that data and issues commands exclusively over the MQTT command channel.

Design rule — the dashboard never writes machine state directly. Every actuation (start/stop, maintenance, demo scenarios) is a broker-mediated command with an acknowledgement on mes/commands/response, keeping a full audit trail.

Adjacent IT systems (Level 3–4 boundaries)

Two enterprise systems sit at defined integration boundaries around this line:

SystemOwnsExchange with the line / MES
ERP (Level 4)Production orders, purchasing, inventory valuation, costing ↓ order release · ↑ completion confirmations, per-lot consumption (backflush), scrap valuation
WMS (Level 3, sibling of the MES)The three secure stores (strongroom, security cage, general store): counted goods receipt of supplier lots (where a LOT-… number enters the works), stock, security holds, controlled issue ↓ controlled issue — one sealed, lot-stamped container released to AGV-D · ↑ material calls (low-threshold events, §8), consumption per lot, store reconciliation (received = in store + in transit + at press + consumed)

The WMS hand-over point is the material delivery queue: a press's low-material event becomes a controlled issue; the sealed container arrives carrying its lot number, is staged beside the press and is mounted through the materialSetup transaction (§5). Both boundaries are exercised by the simulator in this environment; the contracts are unchanged when real ERP/WMS systems connect.

2Equipment model & ISA-88 states

Three nested quantities describe production. The piece that moves is a counted load of 100 sheets, identified by a load ticket (BNK- serial). The unit of account is the sheet — security paper carrying 45 notes in a 5×9 layout: every counter named parts, pass or total on this line is in sheets. Notes exist from numbering at B060 onward and are cut at B070. Loads flow strictly B010 → B070 through ten stations: two intaglio passes (B050 back, B054 front) around the B052 drying store, then the B055 sheet inspection before numbering. Spoiled sheets are always destroyed (shredded) — the line has no rework path — but a load is never scrapped whole: each operation writes off the sheets it spoiled and passes the rest on.

Process description — the routing of one load

The routing is a fixed, linear gamme — one entry point, ten operations in mandatory order, no alternative routes and no rework loop. Each printing operation adds one security layer to the sheets and draws its assigned material, in real units, from the sheets it actually processes; the drying store at Op 52 and the inspection at Op 55 add nothing and consume no material:

OpStationProcess — what physically happens to the sheetsMaterial inCycle per load
10B010Sheet feed & substrate check. A load of 100 blank sheets is counted off the reams issued from the strongroom. The watermark and the embedded security thread are already in the substrate (from the paper mill); the station gauges thickness and verifies watermark and thread position against register before releasing the load into the line.security_paper30 s
20B020Offset "Simultan" printing. The background artwork is printed on both faces in a single pass through opposed blanket cylinders — this is what guarantees perfect front/back register (the see-through motifs that must align on a genuine note).offset_ink45 s
30B030Silk-screen OVI. A flat screen deposits the optically variable ink patch — a thick (~18 µm) layer whose colour shifts with viewing angle. Deposit thickness and shift angle are what make the effect work.ovi_ink60 s
40B040Hot-foil / OVD application. A heated die (~105 °C) presses the holographic stripe from the foil web onto every note position; adhesion and patch position are checked on the fly.foil_roll50 s
50B050Intaglio printing — back. Bottleneck The engraved plate is inked, its surface wiped clean, then each sheet is pressed against it at ~900 kN — the paper is drawn into the engraving, producing the raised, tactile print you can feel on a genuine note. Slowest and most valuable operation; waste grows as the plate (PLT-B-) wears.intaglio_ink90 s
52B052Drying store. A parallel buffer, not a machine: eight rack positions, each load rests its own 300 s while the intaglio ink dries by oxidation, and loads are released first-in first-out. Unmanned, no material, no random breakdowns; ink dryness, stack temperature and set-off are sampled at release.—300 s dwell
54B054Intaglio printing — front. The second pass, on the portrait side, with its own plate (PLT-F-) and the same ink family as B050.intaglio_ink85 s
55B055Sheet quality inspection. Cameras inspect both faces of every sheet right after the second intaglio pass and before numbering: print defects, intaglio register and ink set-off are measured, spoiled sheets are written off here so no serial number is ever spent on them, and defective notes on otherwise good sheets are marked (notesMarked) for rejection after the cut. Consumes no material (no bin, no AGV delivery).—40 s
60B060Numbering & varnish. Letterpress numbering boxes stamp two serial numbers on each of the 45 notes; a protective varnish coat is then applied over the whole sheet.numbering_ink + varnish55 s
70B070Final inspection, cut & pack. The sheets are guillotine-cut into single notes and every note is inspected; marked and rejected notes are pulled out and replacement notes substituted, so every pack is complete. Notes are banded in bundles of 100, packed in 1,000s and sealed ten packs to a container for the cash vault.banding_tape70 s

Routing rules. Entry only at Op 10; loads cannot skip, repeat or reorder operations — the work-op id (10…70, with 52, 54 and 55 for the drying store, the second intaglio pass and the sheet inspection) in every transaction encodes the position in the gamme. There are exactly two exits: good sheets leave at Op 70 to the cash vault as packed notes, and spoiled sheets leave at whichever operation wrote them off, routed to the shredder (see Spoilage accounting below). The load ticket therefore accounts for every one of its 100 sheets: good at the end, or written off at a named operation.

Every station runs the same ISA-88-style state machine, exposed identically on both interfaces:

IDLE → LOADING → READY → RUNNING → COMPLETE → UNLOADING → IDLE
                              │
                              ├→ FAULT        (auto-recovery, reason-coded)
                              ├→ MAINTENANCE  (planned, every 200 cycles or on command)
                              ├→ SETUP        (product changeover)
                              └→ BREAK        (shift calendar — planned pause, not downtime)

The shift calendar (3×8, breaks per shift) follows the wall clock. During a break a station finishes the load in flight, then holds in BREAK — consumers must not count this as fault downtime. The drying store keeps drying through a break.

Manufacturing operating model — flow logic

The line runs load-by-load flow: each press holds exactly one load at a time. On completion the load is passed to the next station's inbound queue and is picked up as soon as that station returns to IDLE. An inbound queue holds at most three loads — WIP between stations is therefore small, visible (queue depth per station in the WIP feed) and self-limiting: an upstream station holds its load on board when the queue ahead is full. The single designed buffer is the B052 drying store: eight loads dwell in parallel, each for its own 300 s, which decouples the two intaglio passes (per-position progress in drying.slots[]).

Takt & line balancing

The intaglio press B050 (90 s per load) is the pacemaker: the line can never exceed 40 loads/h = 4,000 sheets/h regardless of how fast the other presses run. Reference behaviour at default rates is about 2,750 good sheets/h, a sheet yield near 92 % and an OEE near 69 %. Station utilisation against that takt explains the idle time consumers will observe — it is structural, not a fault:

StationCycleUtilisation vs taktBehaviour at takt
B01030 s33 %Waits most of the cycle — feeds on demand
B02045 s50 %Waits ~half the takt
B03060 s67 %Comfortable margin
B04050 s56 %Comfortable margin
B05090 s100 %Pacemaker — any B050 stop is lost line output
B052300 s ÷ 842 %Parallel dwell — one load released every 37.5 s at most; fills up only if B054 stops
B05485 s94 %Second-highest load — almost no margin behind the pacemaker
B05540 s44 %Waits more than half the takt
B06055 s61 %Comfortable margin
B07070 s78 %Comfortable margin — watch after any intaglio speed-up

Consequence for KPI consumers: an hour of B050 downtime costs the line a full hour of output; an hour of B010 downtime may cost nothing (it catches up within its idle margin). Loss accounting should always be read against the pacemaker.

Spoilage accounting

Every station is a quality gate, but the verdict is a count, not pass/fail: operationComplete is always PASS and reports unitsIn, units (good sheets out) and spoiled, with the three measured parameters taken on a sample sheet (sampleInTolerance). Spoiled sheets exit the flow immediately at the station that wrote them off and are routed to the shredder — no downstream value is ever added to a defective sheet — and each write-off is its own spoilage transaction with units, reason and cause (process, burst, fault or inspection). Sheet yield is computed per station and compounds across the ten operations to the line yield; finished output is counted at B070 only. There is no scrapPiece, no rework and no qualityAlert on this line.

Note yield is tracked separately: B055 marks defective notes on good sheets, B070 rejects them one by one after the cut (rejectedBy: inspection mark, single-note inspection, cut waste) and substitutes replacement notes. Delivered notes = good + replacements = packed + open pack.

Intaglio plates & hall climate

Each intaglio station carries one plate with a life of 30,000 impressions (configurable). The waste factor grows with wear, a plateWear warning is raised at 85 %, and at end of life the station goes to MAINTENANCE for 720 s with reason:"plateChange" under dual control (two releasedBy names), then restarts on a new plate id. The hall climate (set-point 23 °C / 52 % RH, band 20.5–25.5 °C / 47–57 % RH) is a second waste driver: an excursion raises the waste factor on every press and biases frontBackRegister at B020 until climateRecovered.

Operating regime

Production runs 3×8 (morning / afternoon / night) with fixed in-shift breaks: stations finish the load in flight then hold in BREAK (planned time — see above). Maintenance is threefold: planned every 200 cycles per station (short, counted as planned downtime), plate changes at the end of plate life (12 min, dual control) and corrective on faults, with reason-coded recovery times. A maintenance requested on a busy station is armed and starts at its next idle — the load on board is finished first. Material replenishment (§8) runs continuously and independently of the production takt; a starved station holds in place and raises a critical alert rather than passing an unprocessed load.

3OPC-UA server

Endpoint: opc.tcp://<host>:4844/banknote (anonymous, demo profile). One folder per station under the banknote object; identical node set across stations. Node ids are server-assigned numeric (ns=1;i=…) — browse from Objects/banknote rather than hard-coding ids.

NodeTypeAccessMeaning
StateStringRISA-88 state name
CycleTimeDoubleR/WEffective cycle time (s)
SpeedMultiplierDoubleR/W0.1 – 10.0 line-speed factor
PartsProduced / PartsDefective / PartsScrap / PartsReworkInt32RStation counters. PartsProduced counts loads; scrap and rework stay at 0 on this line — sheet quantities travel on MQTT (unitsProcessed, unitsSpoiled)
OEEDoubleRStation OEE (A×P×Q)
InputUniqueStringRTicket serial of the load on station
FaultReasonCodeStringRActive reason code, empty if none
MaintenanceNeeded · CyclesSinceLastMaintenanceBool · Int32RPlanned-maintenance window
InputMaterialLot / InputMaterialBox / InputMaterialRemainingString · String · Int32RActive material lot and container at the station; InputMaterialRemaining is in real units (sheets, g, m, bands)
ProcessParameters/<param>/{Nominal, UpperLimit, LowerLimit, Unit}Double/StringRSpec limits (see §7)
Measurements/<param>DoubleRLast measured value
DataCollection/{LastRecord, RecordCount}String · Int32RLast full record as JSON

4MQTT namespace (UNS)

Broker mqtt://<host>:1883, JSON payloads, QoS 0. The banknote/# namespace is part of the archived filter set — every message below lands in the historian.

TopicCadenceContent
banknote/{B010…B070}/statuson state changeState, cycle, load counter, load serial, unitsProcessed / unitsSpoiled in sheets
banknote/{B010…B070}/measurementsper loadMeasured values on the sample sheet of that load
banknote/{B010…B070}/transactionper eventMES transactions (§5)
banknote/{B010…B070}/materialSetupper mountNew container/lot mounted at the press, with unit, issueId, sealNo, carriedOver (never at B052 or B055 — no material)
banknote/line/summary2 sLine KPIs in sheets: totalParts, totalScrap, unit:"sheet", loadsFinished, OEE, FPY, WIP, bottleneck, goodNotes
mes/banknote/state2 s + on changeLine RUNNING/STOPPED, loads, sheets, notes, station snapshot (with plate on B050/B054, notesMarked on B055), reconciliation, climate, plates[], drying, finishing, supply (compact secure-supply block)
banknote/line/reconciliation~30 s + on eventSheet and note ledgers: issued, good, spoiled by station, in process, unaccounted, status BALANCED / VARIANCE (the same object rides in the 2 s state message)
banknote/line/climate~30 s + on eventHall temperature and humidity, set-point, band, excursion, waste factor, history[]
banknote/line/plates~30 s + on eventIntaglio plates: id, impressions, wear, status — and the change history[]
banknote/line/finishing~30 s + on eventLast 12 packs and 6 containers, vault content, recent shipments
banknote/line/supply~30 s + on eventFull secure-supply snapshot: stores, materials with stock, cover and ledger, substrate ledger and pallet list, open deliveries, issues in transit, usage, waste bin, destruction ledger, recent records, armed hooks
banknote/line/deliveryper eventSecure delivery SDL-: on order, on arrival at the dock, on a delay (event)
banknote/line/receiptper eventGoods receipt GRN- at count-in; a HELD receipt is published again when booked
banknote/line/issueper eventControlled issue ISS-, once, complete, when scanned in at the press
banknote/line/destructionper eventDestruction certificate DC-, once per witnessed batch
banknote/line/pack · container · shipmentper eventOne message per sealed pack (1,000 notes), sealed container (10 packs) and cash-in-transit shipment (20 containers), each with its note-serial range
mes/alertsper eventFaults, material-low, shift events (shared) — plus spoilage, plateWear, plateChange, plateChangeComplete, climateExcursion, climateRecovered, noteShipment — and from the secure supply deliveryOrdered, deliveryDelayed, goodsReceipt, receiptVariance, usageVariance, destructionCertificate, coverLow, storeEmpty, starving
mes/materials/status2 sActive containers of every material-holding station in B010–B070, in real units (B052 and B055 hold none); stores.banknote (the three secure stores) and vault.banknote (the strongroom)
agv/status2 sFleet snapshot — AGV-D under fleet.D (not archived; the fleet snapshot is mirrored into an archived logistics feed)

5Data contracts (payloads)

Transactions follow an MES-style function model: operationStart, operationComplete, operationStop, saveDataCollection, spoilage, materialSetup (scrapPiece and reworkPiece never occur on this line).

Station status — banknote/B050/status

{ "state": "RUNNING", "cycleTime": 90, "partsProduced": 79,
  "partsScrap": 0, "partsRework": 0,
  "unitsProcessed": 7744, "unitsSpoiled": 120, "inputUnique": "BNK-20260723-0408569" }

partsProduced counts loads; unitsProcessed and unitsSpoiled are sheets.

Operation complete — banknote/B050/transaction

{ "function": "operationComplete", "station": "B050", "workOp": 50,
  "inputUnique": "BNK-20260723-0408569", "result": "PASS",
  "unitsIn": 97, "units": 96, "spoiled": 1, "sampleInTolerance": true,
  "measurements": {
    "reliefHeight":  { "value": 61.2, "unit": "µm", "nominal": 60, "tolerance": 12, "inTolerance": true },
    "platePressure": { "value": 903.5, "unit": "kN", "nominal": 900, "tolerance": 60, "inTolerance": true },
    "wipingResidue": { "value": 0.8,  "unit": "%",  "nominal": 1.0, "tolerance": 0.8, "inTolerance": true } },
  "actualCycleTime": 90.2, "targetCycleTime": 90,
  "timestamp": "2026-07-23T09:31:04.512Z" }

Station-specific additions: notesMarked at B055; serialFrom, serialTo, notesNumbered at B060; notesCut, notesGood, replacements at B070.

Spoilage (write-off) — banknote/B050/transaction

{ "function": "spoilage", "station": "B050", "workOp": 50,
  "inputUnique": "BNK-20260723-0408569", "units": 1,
  "reason": "Intaglio waste (back) — wiping / relief", "cause": "process", "totalSpoiled": 121 }

cause is process (ordinary waste), burst (a run of waste), fault (sheets in the machine when it faulted) or inspection (rejected by the B055 cameras); totalSpoiled is the station's running total.

Sheet and note reconciliation — banknote/line/reconciliation

The accountability ledgers of the works, counted since line start. Sheet invariant: issued = good + spoiled + inProcess; unaccounted must stay at 0 and status reads BALANCED (otherwise VARIANCE). Note invariant, in noteLedger: numbered = delivered + inProcess and delivered = good + replacements = packed + openPack. The same object is carried as reconciliation inside mes/banknote/state and returned by GET /api/banknote/status.

{ "issued": 2000, "good": 185, "spoiled": 58,
  "spoiledByStation": [ { "station": "B054", "name": "Intaglio Print — Front", "units": 14 }, … ],
  "inProcess": 1757, "onStations": 296, "inQueues": 1461, "unaccounted": 0,
  "status": "BALANCED", "since": "2026-11-10T07:13:45.378Z", "timestamp": "2026-11-10T07:43:57.810Z",
  "unit": "sheet", "sheetsPerLoad": 100, "notesPerSheet": 45,
  "loads": { "issued": 20, "finished": 2, "inProcess": 18, "onStations": 3, "inQueues": 15 },
  "noteLedger": { "numbered": 12780, "cut": 8325, "good": 8284, "rejected": 86,
    "rejectedBy": { "inspectionMark": 31, "singleNote": 10, "cutWaste": 45 }, "replacements": 86,
    "delivered": 8370, "packed": 8000, "openPack": 370, "inProcess": 4410, "unaccounted": 0, "status": "BALANCED" } }

Sealed pack — banknote/line/pack

{ "packId": "PK-000277", "notes": 1000, "bundles": 10,
  "serialFrom": "GG5028000", "serialTo": "GG5028999", "replacements": 6,
  "loads": [ "BNK-20261110-0289301" ], "containerId": "CTN-00028", "sealedAt": "2026-11-10T12:58:46.000Z" }

A sealed container (banknote/line/container) carries containerId, its ten packs[], the serial range, sealNo and the vault content after it went in; a shipment (banknote/line/shipment) carries shipmentId (CIT-), 20 containers, first and last container and the serial range.

Material setup — banknote/B010/materialSetup

Emitted when a container is mounted at the press. quantity is in the material's unit and includes carriedOver, the residue merged from the previous container.

{ "station": "B010", "workOp": 10, "boxId": "SP-261110-252001-R01-10",
  "lotNumber": "LOT-PAPR-20261110-252001", "materialType": "security_paper",
  "quantity": 5000, "unit": "sheet", "isSecondary": false, "source": "AGV", "agvTripId": "MTRIP-252002",
  "issueId": "ISS-261110-252055", "sealNo": "TS-831464", "carriedOver": 0,
  "timestamp": "2026-11-10T06:58:36.000Z" }

Secure supply, compact — mes/banknote/state → supply

Rides in the 2 s state message; meant for tiles and badges. status is OK, WATCH (AGV-D waiting at an empty store, stock on security hold, a delayed delivery) or ALERT (a ledger not balanced, a delivery held, a usage out of band, or any low cover). cover is in hours, null when the material is not being drawn.

{ "status": "ALERT",
  "substrate": { "inStrongroom": 64000, "pallets": 7, "heldPallets": 0, "inTransit": 0,
                 "atPress": 2000, "issued": 18000, "unaccounted": 0, "status": "BALANCED" },
  "cover": { "security_paper": 25.4, "offset_ink": 25.2, "ovi_ink": 5.6, "foil_roll": 10.4,
             "intaglio_ink": 0.8, "numbering_ink": 17.9, "varnish": 28.3, "banding_tape": 51.1 },
  "lowestCover": { "materialType": "intaglio_ink", "coverH": 0.8 }, "coverLow": [ "intaglio_ink" ],
  "nextDelivery": { "deliveryId": "SDL-261110-252130", "materialType": "intaglio_ink", "state": "INBOUND", "etaMin": 55 },
  "openDeliveries": 1, "deliveries": [ … ], "heldReceipts": 0, "waitingAtStore": "intaglio_ink",
  "usage": { "ovi_ink": { "variancePct": 0.43, "status": "IN_BAND" }, "foil_roll": { "variancePct": 0.58, "status": "IN_BAND" } },
  "wasteBin": { "sheets": 6, "certificates": 3, "status": "BALANCED" } }

The full snapshot, banknote/line/supply, carries line, since, status, config, stores[], materials[] (per material: atPress, inStore, inTransit, inbound, consumption, coverH, coverWithInboundH, coverLow, waitingAtStore, ledger), substrate (with palletList[]), deliveries[], issuesInTransit[], usage[], wasteBin, destruction, counts, recent, hooks and timestamp.

Secure delivery — banknote/line/delivery

One message on order, on arrival at the dock and on a delay (event). For paper, containers[] lists pallets (palletId, reams, sheets, firstReam, lastReam) and advised.count is in reams; for every other material it lists {containerId, units} and the count is in containers.

{ "event": "ordered", "deliveryId": "SDL-261110-252075", "materialType": "security_paper",
  "store": "strongroom", "unit": "sheet", "supplier": "Security paper mill", "supplierClass": "paperMill",
  "lotNumber": "LOT-PAPR-20261110-252019",
  "advised": { "containers": 2, "units": 20000, "countUnit": "ream", "count": 40 },
  "containers": [ { "palletId": "SP-261110-252076", "reams": 20, "sheets": 10000,
                    "firstReam": "SP-261110-252076-R01", "lastReam": "SP-261110-252076-R20" }, … ],
  "orderedAt": "2026-11-10T08:00:00.000Z", "reason": "stockout", "stockAtOrder": 0,
  "state": "INBOUND", "eta": "2026-11-10T08:20:00.000Z", "etaMin": 20, "delayMin": 0,
  "arrivedAt": null, "receiptId": null, "holdUntil": null }

Goods receipt — banknote/line/receipt

Published at count-in. status is RECEIVED (variance 0), HELD (counted ≠ advised, bookedAt: null) or RECEIVED_WITH_VARIANCE — the same receiptId, published again when the held delivery is booked as counted, with a resolution. Consumers dedupe by id.

{ "receiptId": "GRN-261110-252087", "deliveryId": "SDL-261110-252075", "materialType": "security_paper",
  "store": "strongroom", "unit": "sheet", "supplier": "Security paper mill", "supplierClass": "paperMill",
  "lotNumber": "LOT-PAPR-20261110-252019",
  "advised": { "containers": 2, "units": 20000, "countUnit": "ream", "count": 40 },
  "counted": { "containers": 2, "units": 19000, "countUnit": "ream", "count": 38 },
  "variance": { "count": -2, "units": -1000 },
  "countedBy": [ { "role": "Vault Custodian", "name": "P. Wagner", "id": "OP-BNK-BR3" },
                 { "role": "Shift Supervisor", "name": "U. Solberg", "id": "OP-BNK-BR1" } ],
  "orderedAt": "2026-11-10T08:00:00.000Z", "arrivedAt": "2026-11-10T08:20:00.000Z", "countedAt": "2026-11-10T08:23:00.000Z",
  "status": "RECEIVED_WITH_VARIANCE", "holdUntil": "2026-11-10T08:33:00.000Z", "bookedAt": "2026-11-10T08:33:00.000Z",
  "resolution": { "bookedAs": "counted",
                  "note": "Booked as counted — 2 ream(s) (1000 sheets) short, claimed against the supplier",
                  "resolvedBy": [ … ], "resolvedAt": "2026-11-10T08:33:00.000Z" },
  "containers": [ … as counted … ], "holdsReleased": 6 }

Controlled issue — banknote/line/issue

Published once, complete, when the container is scanned in at the press (requestedAt ≤ releasedAt ≤ receivedAt). Paper carries palletId and reams[]; every other material containers[]. Its boxId and lotNumber become the press's active material when it is mounted, so the existing lot trace works unchanged.

{ "issueId": "ISS-261110-252053", "materialType": "ovi_ink", "store": "securityCage", "unit": "g",
  "station": "B030", "isSecondary": false, "quantity": 1000,
  "boxId": "OVI-261110-252012", "lotNumber": "LOT-OVI-20261110-252003", "containers": [ "OVI-261110-252012" ],
  "requestedAt": "2026-11-10T06:22:47.000Z",
  "requestedBy": { "role": "Screen Printer", "name": "B. Ostrowski", "id": "OP-BNK-B03" },
  "releasedAt": "2026-11-10T06:23:01.000Z",
  "releasedBy": [ { "role": "Vault Custodian", "name": "P. Wagner", "id": "OP-BNK-BR3" },
                  { "role": "Shift Supervisor", "name": "U. Solberg", "id": "OP-BNK-BR1" } ],
  "agv": "D", "agvTripId": "MTRIP-252001", "sealNo": "TS-815626",
  "receivedAt": "2026-11-10T06:23:20.000Z",
  "receivedBy": { "role": "Screen Printer", "name": "B. Ostrowski", "id": "OP-BNK-B03" }, "status": "RECEIVED" }

Destruction certificate — banknote/line/destruction

{ "certificateId": "DC-261110-252078", "sheets": 377, "notesEquivalent": 16965,
  "byStation": [ { "station": "B010", "sheets": 26 }, { "station": "B020", "sheets": 70 }, … ],
  "byCause": { "process": 230, "burst": 62, "inspection": 45, "fault": 40 },
  "binOpenedAt": "2026-11-10T06:01:10.000Z", "destroyedAt": "2026-11-10T08:01:10.000Z",
  "method": "Witnessed shredding and compaction on site",
  "witnesses": [ { "role": "Quality Inspector", "name": "L. Marchetti", "id": "OP-BNK-BR2" },
                 { "role": "Vault Custodian", "name": "P. Wagner", "id": "OP-BNK-BR3" } ],
  "trigger": "age" }

Σ byStation = Σ byCause = sheets; trigger is "quantity" or "age".

6Identification & traceability

ObjectFormatExample
Load ticket (100 sheets)BNK-YYYYMMDD-#######BNK-20260723-0408569
Note serial2 letters + 7 digitsGG5028123
Pack · container · sealPK-###### · CTN-##### · SL-######PK-000277 · CTN-00028 · SL-313813
Shipment (cash in transit)CIT-####CIT-0001
Intaglio platePLT-B-#### (back) · PLT-F-#### (front)PLT-B-0001
Material lot (the supplier's lot; paper-mill lot for paper)LOT-<CODE>-YYYYMMDD-###LOT-PAPR-20261110-252019
Substrate pallet (20 reams)SP-YYMMDD-######SP-261110-252076
Ream (500 sheets, R01…R20)SP-YYMMDD-######-R##SP-261110-252076-R07
Issued ream range (paper boxId)SP-YYMMDD-######-R##-##SP-261110-252001-R01-10
Container (every other boxId)OINK- · OVI- · FOIL- · IINK- · NINK- · VARN- · BNDT-YYMMDD-######OVI-261110-252066
Secure delivery (advice note)SDL-YYMMDD-######SDL-261110-252075
Goods receipt (count-in record)GRN-YYMMDD-######GRN-261110-252087
Controlled issue (store → press)ISS-YYMMDD-######ISS-261110-252055
Tamper seal (AGV-D tote of an issue)TS-######TS-831464
Destruction certificateDC-YYMMDD-######DC-261110-252078
AGV tripMTRIP-###MTRIP-252002

One serial per load, assigned at B010 and carried through every transaction and measurement. The genealogy of a load therefore contains: all ten station visits with timestamps and cycle times, sheets in, good and written off at each of them, every sampled value against its spec limits, and the material lot active at each station when the load passed — enabling descending lot trace (which loads consumed lot X) and ascending trace (which lots are in load Y). Sequence numbers are day-seeded, so restarts never reissue a serial.

Note-level trace. B060 records the note-serial range numbered on each load; every pack and container records its own range and the load tickets it was filled from. A single note serial therefore resolves to pack → container → shipment and back to its loads (GET /api/banknote/trace/<note>, status PACKED, IN_VAULT or SHIPPED).

Custody trace. All ids are upper-case; the trailing number is a 6-digit (rarely 7) sequence and YYMMDD the creation date. Lot codes: PAPR, OINK, OVI, FOIL, IINK, NINK, VARN, BAND (banding-tape lots use BAND, its containers BNDT). People are {role, name, id}, the id from the crew roster (e.g. OP-BNK-BR3). Any pallet, ream, ream range, container, lot, issue, delivery, receipt or certificate id resolves to its custody timeline with GET /api/banknote/custody/<id> (§10). Stock that was in the stores when the line started has no delivery or receipt record — it appears as opening in the ledgers and becomes traceable from its first issue.

7Quality model & process specs

Three parameters per station, Gaussian behaviour around nominal, spec = nominal ± tolerance. The three values are measured on a sample sheet of each load; spoiled sheets are written off and shredded, never reworked. SPC (Cp/Cpk) is computed downstream from the measurement stream.

StationParameterUnitNominal± Tol
B010sheetThicknessµm1158
watermarkRegistrationmm00.5
threadPositionmm00.8
B020frontBackRegisterµm040
colorDeltaEΔE0.80.6
inkFilmThicknessµm2.50.5
B030oviLayerThicknessµm183
colorShiftAngle°304
screenRegisterµm060
B040foilAdhesionN122
patchPositionµm0150
stampTemp°C1056
B050reliefHeightµm6012
platePressurekN90060
wipingResidue%1.00.8
B052inkDryness%964
stackTemp°C243
setOff%0.20.3
B054reliefHeightµm6012
platePressurekN90060
wipingResidue%1.00.8
B055printDefectsdef/sheet0.40.6
intaglioRegisterµm090
inkSetOff%0.30.3
B060numberRegisterµm080
inkDensityOD1.450.15
varnishThicknessµm3.00.6
B070defectDensitydef/sheet0.50.5
cutAccuracymm00.15
bandTensionN253

Fault reason codes follow the plant library (MECH, ELEC, TOOL, MAT, SENS, HYD, THERM, CALIB, SOFT) with station-specific weightings — tooling faults (TOOL, ~900 s recovery) dominate the intaglio presses (the planned plate change is a separate, 720 s maintenance); numbering-box jams (MECH) dominate B060; vision faults (SENS) dominate B070; at the sheet inspection B055 cameras (SENS, ~40 %) and the inspection recipe (SOFT, ~30 %) dominate, ahead of sheet transport and the reject gate (MECH, ~20 %).

8Material & AGV logistics

Lineside bins are expressed in real units — sheets, grams, metres, bands — in mes/materials/status.stations.B0xx.primary|secondary: quantity, remaining and lowThreshold in the bin's unit, plus issueId, carriedOver and staged (units staged beside the press). Paper is drawn when B010 issues a load (100 sheets, the same instant as the sheet ledger's issued); every other material is drawn per operation from the sheets that operation actually processed, banding tape from the good sheets out. B052, the drying store, and B055, the sheet inspection, hold none: no bin, no delivery.

StationMaterialLot codeUnitContainer (units)Standard per sheetLow @
B010security_paperPAPRsheetissue of 10 reams (5,000) from a pallet of 20 reams (10,000)1 — drawn 100 at load issue1,500
B020offset_inkOINKgcan (10,000)1.22,400
B030ovi_inkOVIgtin (1,000)0.35 — reconciled350
B040foil_rollFOILmroll (2,400)0.6 — reconciled720
B050intaglio_inkIINKgpail (15,000)3.04,500
B054intaglio_inkIINKgpail (15,000)3.04,500
B060numbering_ink + varnish (secondary)NINK · VARNg · gcan (1,000) · drum (25,000)0.2 · 2.0300 · 5,000
B070banding_tapeBANDbandreel (9,000)0.45 per good sheet out1,350

isLow counts staged stock; a bin at 0 with staged > 0 is not empty. quantity may exceed the container size by the carried-over residue.

Three secure stores

The stores are published as mes/materials/status.stores.banknote[materialType] — {boxes, capacity, lowAt, isLow, isEmpty} (boxes = available containers, lowAt = reorder point) plus store, container, unit, units, held — and in full in banknote/line/supply (§5). No warehouse shuttle runs for this line. mes/materials/status.vault.banknote is now the strongroom: pallets, capacity, reorderAt, receipts, lastReceipt, plus store:"strongroom", sheets, heldPallets, inbound, lastReceiptId; it moves only with paper issues and receipts.

Store keyMaterialSupplier classCapacityReorder atDelivery lot
strongroomsecurity_paperpaperMill8 pallets52
securityCageovi_inkinkMaker10 tins44
securityCagefoil_rollfoilMaker10 rolls44
securityCagenumbering_inkinkMaker8 cans33
generalStoreoffset_inkinkMaker8 cans34
generalStoreintaglio_inkinkMaker10 pails44
generalStorevarnishgeneral6 drums23
generalStorebanding_tapegeneral6 reels23

These are the values at speed factor 1. At a higher simulation speed the reorder point, lot and capacity grow — read them from inStore.capacity / reorderAt / lot, never hard-code them.

Inbound: secure delivery and count-in

At a reorder point a delivery SDL- is ordered (one open delivery per material) and runs INBOUND → COUNTING → closed, or → HELD → closed on a receipt variance. Lead times are wall-clock: paper mill 20 min, ink and foil makers 15 min, general supplier 10 min; count-in 3 min under dual control (Vault Custodian + Shift Supervisor); a variance holds the delivery 10 min, then it is booked as counted (RECEIVED_WITH_VARIANCE). eta / etaMin always point at the end of the current state.

Controlled issue on AGV-D

When a bin crosses its low threshold the press requests material and AGV-D (dedicated to the secure hall, prefix B0) executes the run: MOVING_TO_WAREHOUSE → LOADING_MATERIAL → MOVING_TO_STATION → UNLOADING_MATERIAL → RETURNING, with opportunity charging below 30 % battery. At the store two people release one container, sealed on the AGV with a tamper seal; the press operator scans it in. The complete record is published once, on banknote/line/issue, when it is scanned at the press. In the fleet snapshot materialDelivery adds issueId, sealNo, quantity, unit once picked, and waitingStore: true while AGV-D is parked at an empty store (state: "LOADING_MATERIAL", progress: 100, boxId: null) — a storeEmpty alert is raised and the press starves through the existing material gate until a delivery is counted in.

The delivered container is staged beside the press and mounted when the running one cannot cover one more load. The materialSetup transaction is emitted at mount, not at delivery, and carries the supplier lot, the container id (for paper, the ream range), the issue and the seal.

Boundary with the WMS (§1): in this environment the simulator plays the store side too — supplier deliveries, counted receipts, stock, holds. The line-side contract stays minimal and stable: a material request goes out, a sealed, lot-stamped container comes in. Lot numbers are the supplier's and are assigned on the advice note, never on the line.

Usage reconciliation, waste and cover

usage[] (OVI ink and foil): actual draw against stdPerSheet × sheets processed, over the last 20 loads (recent) and since start (sinceBoot); status is WARMING_UP (fewer than 5 loads in the window), IN_BAND or OUT_OF_BAND (beyond ±bandPct, 3 %). wasteBin and destruction: every spoiled sheet goes into the locked bin; a batch is destroyed at 600 sheets or when the oldest sheet is 120 plant-minutes old, with a certificate DC- signed by two witnesses. coverH per material = (stock at the presses + available stock in store) ÷ rate, the rate being the last 60 plant-minutes, else the average since start, else nominal; coverLow below 2 h; null when the material is not being drawn.

9Command interface

All commands are published to mes/commands/<name>; acknowledgements arrive on mes/commands/response. Relevant to this line:

CommandPayloadEffect
startLine / stopLine{"line":"banknote"}Manual line control (graceful drain on stop)
adjustSpeed{"line":"banknote","multiplier":1.5}Line-wide speed factor
triggerMaintenance / postponeMaintenance{"station":"B050"}Corrective / deferred maintenance — on a busy station the request is armed and starts at the next idle
setPlateWear{"station":"B050","pct":92}Demo: force the wear of an intaglio plate (B050 or B054), in percent of its life
changePlate{"station":"B050"}Order a plate change: 720 s maintenance under dual control, then a fresh plate
setClimate{"rh":62,"tempC":23,"durationMin":10}Demo: force a hall climate excursion (all three fields optional)
degradeStation / recoverStation{"station":"B050","rate":0.2}Demo: force / reset a defect rate
injectBadLot{"station":"B030"}Demo: the next container issued to that press carries a latent defect — it is issued at once, staged, and takes effect when it is mounted (the running container must run out first)
materialSetup{"station":"B020", …box}Operator lot change — on this line it becomes an issue request to the secure store (stock never appears from nowhere)
delaySupply{"materialType":"security_paper","minutes":60}Demo: add wall-clock minutes (1–1440) to the inbound delivery of that material; if none is inbound, the delay is armed for its next order. Both fields optional (defaults shown)
shortReceipt{"materialType":"security_paper","missing":1}Demo: the next count-in of that material finds missing (integer 1–100) reams (paper) or containers (others) short → receipt variance, held, booked as counted. Both fields optional (defaults shown)
overConsume{"materialType":"ovi_ink","pct":15,"durationMin":30}Demo: the press draws pct % more (1–100) for durationMin plant-minutes (1–240) → usage variance out of band after about 5–10 loads. materialType is ovi_ink or foil_roll; the other two fields are optional (defaults shown)
setStore{"line":"banknote","materialType":"intaglio_ink","boxes":0}Security hold: stock above boxes containers is held (counted, not issuable); raising boxes lifts holds, and the next count-in of the material lifts them all. Never creates or destroys stock; omit materialType for every material

Payloads are validated: numbers must be real JSON numbers; a rejected command answers {command, success:false, error:{code, message}} with code OUT_OF_RANGE, BAD_FIELD, BAD_PAYLOAD or BAD_MATERIAL. delaySupply and shortReceipt answer applied:"inbound" (with the deliveryId) or applied:"armed"; overConsume answers applied:"active".

Commands are subscribed ~30 s after line boot — clients should not send commands during that window (they are lost, by design there is no retained queue).

10Persistence & consuming APIs

The broker's archive group persists banknote/# (together with the mes/# plant namespace) into PostgreSQL: defaultarchive (30-day time series) and defaultlastval (last value per topic, 7-day retention). The dashboard exposes the line read-only:

EndpointServes
/api/status/banknoteLive per-station state incl. load serials
/api/banknote/statusThe whole mes/banknote/state message: loads, sheets, notes, stations, ledgers, climate, plates, drying store, finishing
/api/banknote/worksSlow detail: ledgers, climate with history, plates with change history, last packs and containers, shipments
/api/banknote/trace/<note-serial>One note → pack, container, shipment, load tickets
/api/line-summary/banknoteOEE, sheet yield, WIP, goodNotes, bottleneck — quantities in sheets
/api/stats/* ?line=banknoteProduction, OEE trend, stations, Pareto, cycle times
/api/stoppages?line=banknote · /api/gantt?line=banknoteFault events · state timeline
/api/report/<BNK-serial> · /api/line-serials/banknoteFull genealogy of a load · load browser with units and unitsSpoiled
/api/banknote/supplyThe full secure-supply snapshot (banknote/line/supply) with available, updated_at, and recent rebuilt from the archive since since: up to 20 receipts, 30 issues, 10 certificates, 20 deliveries (recentSource: archive or snapshot). {available:false, reason} when nothing was published yet
/api/banknote/custody/<id>Custody timeline of one pallet, ream, ream range, container, lot, issue, delivery, receipt or certificate over 7 days: kind, found, current, consumption[], events[], links.lotTrace. HTTP 400 on an unknown id format
/api/material/status · /api/material/history · /api/material/lot/<lot>Live lots, stores and strongroom · mount history · every load that ran on a supplier lot
/api/banknote/agvAGV-D telemetry (state, battery, mission, trips)
/api/banknote/start · /api/banknote/stop · /api/controlCommand bridge (POST → MQTT)