4.5 Scanning, Databases & MES Links
Scanning and data integration are where physical marks become actionable traceability.traceability. ReadersThis onis the linedigital capturebackbone everythat ID,transforms whilea APIs stitch those scansbarcode into an audit trail. By wiring readers directly to your MES and(Manufacturing ERP,Execution creatingSystem), you create a continuous threadrecord from the raw panel to the final shipped box.box—turning Aan minimalRMA setinto a quick database lookup instead of well-placed scan gates—panel-in, marking, depanel, test, and pack-out—ensures genealogy builds itself without slowing production. With a cleancostly dataphysical model and guardrails against duplicates or mis-sequenced scans, every unit’s story is preserved in seconds, not spreadsheets. The result is a calm, predictable line and instant visibility when returns or audits strike.investigation.
4.5.1 The Scan Gate Lineup: Where to Collect Data
You don't need a scanner at every machine, but you must have scanners at the minimum points required to bind the product's identity to its key process events.
A. Reader lineupLineup (what lives where)Hardware)
- Fixed-
mountMount 2DimagersImagers: Use these at automated stations (like stencil print or pick-and-place inflow) thatmustdemandneverspeedmissand(panelconsistency. They capture the Panel or Unit IDininstantlyatasSMT;theunitboardSN after laser/label).passes. - Handheld 1D/2D Scanners: Ideal for
flexiblemanualspotsprocesses (rework cells, debug benches, final pack-outout).exceptions). In-processTheyverifiersoffernearflexibilityprinters/markers togradefreshly printed/lasered codes and block bad ones. All readers should speakwhere thesameoperatorsymbologiescontrolsyouthefroze in 4.3 and write results straight intotiming.MES/ERPvia API.
4.5.2B. WhereMinimal toScan scan in the routePoints (minimalThe butRequired sufficient)
Gates)
Wire these scan points into the MES route/operations/WIP statesroute so the system forces the right code is requiredaction at the right moment.time:
SMTScanpanelPointItem
in:ScannedPurpose
Panel-In (Start of SMT)
Panel
scanBarcodepanel barcode(on the rail)railsStarts Genealogy: Binds the Work Order (stable, easyWO) tohit)the physical panel.After Marking (Laser/Label)
Unit 2D Code
Binds Identity: Verifies the new Unit SN is readable and writes the first critical record to
startthegenealogy.database.AfterDepanel/BreakawayPanel
markingID,(laser/label):then individual Unit SNsSplits the Record:
scan/verifyunit 2Dto bind SN ↔ panel/WO/BOM rev and writeCreates therecord."Panel(Ties$\rightarrow$toUnits"4.2–4.4.)Depanel:splitscanrecordpanel ID then eachunit SNto createin the database.panel→units splitrecord.Test (ICT/FCT)
:Unit SN
Records Verdict:
stationWritesreadstheSNat start,writes resultsat end (pass/fail, test limits, and firmwarerev).versionFailurestoauto-the unit’s record. Fails automatically open repairtickets.tickets.Final
pack-out:Pack-OutUnit SN – Box Label
Closes the Loop:
scanLinksunittheSNindividual→ print/scanbox label→ postshipment recordthat links box↔unit(s) to the final customer shipping ID/Box ID.4.5.2 Data Architecture: MES, APIs, and the Core Model
Traceability only works if the scanned data instantly updates a central system (MES/ERP). This
“closesrequires a clean, simple relational database model and clear communication protocols.A. The Few Tables That Matter
Your system needs to be relational, linking every event back to the
loop”singlesosourceaofreturntruth:canthejumpUnitstraightSerialto its full build/test history.
4.5.3 Data modelNumber (the few tables that matter)SN)
Keep it simple and relational; these keys unlock fast RMAs and clean audits..
Object | Primary | Joins |
|
| SN |
|
|
Panel | PanelID | WO, Units | Bridges line scans before |
ScanEvent | (SN/PanelID, | Unit/Panel |
|
TestResult | (SN, | Unit |
|
MaterialLot | LotID | Unit |
|
B. API Patterns (How Stations Talk)
DashboardsAutomated stations and alertsscanners readcommunicate fromwith thesethe sameMES/ERP tablesusing clear, lightweight commands (APIs) to watchensure earlydata lotsis after changes.
4.5.4 API patterns (how stations talk to systems)
You don’t need a complex bus—just clear callsconsistent and webhooks:sequenced correctly:
- POST /scan {code,
type,station, op, timestamp}:→The basic log event. MESvalidatesuses this to validate theopstation andadvancesadvanceWIP;therejectsWorkwrongIncodes.Progress (WIP). - POST /test-result {sn, station, verdict, params}:
→Logslogstesttoresults and, on a 'FAIL' verdict,TestResultand (on FAIL)auto-opens a repair ticket.for the unit in the repair loop. - GET /label-data?sn=
…...:→Returnsreturnsthe customer-facing fields (SN, BOMrev,rev)config)from the ERP for printing final boxlabels;ERP linkadds ship-to/order info. Webhook: unit-ready→ pack-out printers subscribe and print labels only for good units.
labels.
4.5.53 Guardrails and Closure: Making Bad Data Hard
Traceability systems are useless if the data is faulty. You must build quality checks (makeguardrails) into the system to prevent bad data hard)from being logged.
A. Data Guardrails
- Grade
beforeBeforeaccept:Accept: The markingstationsstation mustverifygrade the code qualityand(Chapter 4.4). If the grade is poor, the MES must block WIPonuntilfailurea(yourclean4.4codegate).is applied. - Duplicate &
formatFormatchecks:Checks: MESrejectsmust reject reused SNs, wrongrevs,BOM revisions, or scans that are out of sequence based on the activeoperation.production operation (e.g., rejecting a 'Depanel' scan if the unit hasn't passed 'Test' yet). - Store-and-
forward:Forward:readersScanners must buffer data if the network connection temporarily drops, then replay the logs once the connection returns. This prevents operators from resorting to paper or shadow spreadsheets when the networkblips, then replay; no side spreadsheets.blips. Operator feedback:short, coloredstation banners/alertshelp leads react fast to scan/test spikes.
4.5.6B. “"Board to box”Box" Proof (Closing the Loop)
The ultimate proof (whatof a clean recordtraceability lookssystem like)
is Giventhe anability SN,to youinstantaneously shouldgenerate pulla incomplete seconds:
WO/line/shift, panel ID & depanel mapping,every scan event, ICT/FCT logs, rework/repair records, andbox/shipmentdata—one storyhistory from thefirst rail scan to thefinal shipping label.That’s- Given a customer return (SN or Box ID), the
definitionsystem should be able to pull, in seconds: the WO, the SMT line, every test log (ICT/FCT), any rework/repair notes, and the final box/shipment data. - This means the MES and ERP are successfully linked: the ERP handled the shipment, but the MES provided the entire build and test history. This instantaneous lookup is the fundamental ROI of
closingyourthetraceabilityloop.
system.- Given a customer return (SN or Box ID), the
4.5.7 Release checklist (print this)
Readers placed atpanel-in,mark verify,depanel,ICT/FCT,pack-out.MES route/ops/WIPrequire the right scan at each step.APIs live:/scan,/test-result,/label-data; ERP link for shipments.Repair ticketsauto-open on test fails; dashboards watch early lots.Panel rails reserved for codes; scanners can hit them fast.