4.3 What to Encode & How
Encoding is where your traceability plan turns into data that systems can trust. The choicecodes you print are the resilient anchors of whata unit's history. The key is to include—serialencode numbers, BOM revisions, lot/date codes, or line details—defines how precisely issues can be isolated later. Equally important is howonly the informationessential isdata carried:and 1Dpair barcodesthe excelcode atwith long-rangethe scansright symbology and placement for maximum readability on railsthe andfactory boxes, while compact 2D codes with error correction keep unit IDs readable through reflow, coating, and handling. Standards like GS1/ISO make codes interoperable across suppliers and customers, while human-readable text ensures audits and debugging don’t stall. Together, these decisions transform a printed mark into a reliable pointer to a unit’s full genealogy.floor.
4.3.1 The dataData dictionaryDictionary: (whatWhat everyMust codeBe should carry)Encoded
PickThe content of your code (the data dictionary) should be the smallest set of fields thatrequired meetsto meet your chosen traceability level (from Chapter 4.1). Every unnecessary character adds size and customer/contract needs, then lock it in your Labeling & Traceability spec in the Golden Data Pack.complexity.
Core Fields (Mandatory for Traceability)
These fields (mostare builds)non-negotiable for proving a unit's identity and configuration:
- SN (
serialSerialnumber)Number):—Uniqueuniqueidentifierperforunitthe(orindividualpanelunit.IDIfifpanel-levellot-level).tracking is used, this is the Panel ID. - BOM Rev / Config
IDID:—Crucialexposesforwhichaudits.bill-of-materialsThisrevisionimmediately tells theunitscannermatches. Many customers require this onand thevisibleMESlabel.system which Bill-of-Materials version was followed, allowing isolation of parts failures to a specific design release. - Work
orderOrder / Lot / DatecodeCode:—Identifiesletstheyoubatch and time frame of production, essential for quick quarantinepreciselyifwhenaneeded. Lineprocess/ Station / Shiftfault (compressed)like—ahelpsreflowtriageovenescapesissue)fast.is found.
Optional fieldsFields (addEncode onlyOnly if they earn their keep)Necessary)
- Variant / Feature
flagsFlags:(Use only if one PCB assembly serves multipleSKUs)final product SKUs (e.g., a flag for 'With Wifi' vs. 'Without Wifi'). RegulatoryRegulatory/Customer IDs: Required if contracts dictate encoding specific customer part numbers orcustomerregulatoryIDsmarks (like specific MAC addresses).
Human-Readable Lines
Always pair the machine-readable code (1D or 2D) with a clear human-readable string (ifusually contractsthe dictate)SN and the BOM Rev).
4.3.2 Symbology & Durability: 1D vsvs. 2D
The type of barcode you choose dictates how much data you can store in a small space and, crucially, how well the code survives damage (anddurability).
Symbology | Key | Ideal | Durability/Damage Resistance |
1D | Long, | Carton labels, | Low. |
2D | Compact; | PCB Unit ID | High. Built-in Error Correction allows the code to be read even if 20-30% is damaged by splatter, reflow, or etching. |
Standards and Verification
- Standards: Choose a GS1/ISO standard
flavor(likewhenGS1customersDataMatrix)wantif your product is consumer-facing or needs global consistency.PutThis ensures thechoicecodes(1Darevsinteroperable2D,acrosssymbology,differentfield order) in your label spec so scannerssupplier andMEScustomerparsesystems. - Quiet
it the same way.Rules of thumbPreferDataMatrix/QRZone:onEverythecodePCB for compact, durable unit IDs; keepCode 128for cartons/pack-out where space is abundant.Keeprequires a quiet zone—a clear, uniform margin of empty space aroundeverythecodesymbol.andFailingsizetomodulesmaintainforthisyourspacecameras;isverifythereadabilitymostincommonyourcausescanningofstepscanner failure.- Error Correction: For the PCB unit ID (
4.5).
4.3.3 Human-readable lines (for eyes and audits)Always pair machine codes withusually ahuman-readable2Dstringcode),(SN and minimal context like WO/Rev). It saves time in debug and still passes audits when a scanner fails. Put formatting examples inensure thespec and keep them consistent with whatMESexpects.4.3.4 Error correction & verification (don’t skip this)2D codesincludeerror correctionby design; pick alevelthatistolerateshigh enough to tolerate yourrealreal-world environment (soldercleaningsplatter,solvents,cleaning,handlingcoatabrasion).glare).- Add a verify step
stepto your route:print/laserPrint/Laser→$\rightarrow$scanScan to Grade – Accept/Block. WIP must be blocked if the code fails to grade→ apply/accept. Failurescorrectly.block WIP
and open a reprint flow; successes write the record via API so there’s no “shadow spreadsheet.” (Details in 4.5.)
4.3.53 Deployment: Placement and Specification
The decision is not just about the data string; it's about placing the code correctly and documenting every detail.
A. Where eachEach codeCode livesLives
Code | Placement | Purpose |
Panel | Panel Rail | Used for |
Unit ID | PCB ( |
|
Pack-Out ID | Carton/Box | Customer-facing code, often mirroring the core fields (SN + |
B. allThe ofTraceability them back to the same record in MES/ERP.
4.3.6 Put it in writing (spec template)
Specification
YourThe Labeling & Traceability specSpecification shouldis state:a mandatory part of the Golden Data Pack. It removes all ambiguity and serves as the single reference for every labeling station and scanner on the floor.
This spec must detail:
SymbologiesSymbologies:allowedList every permitted symbology (1D/2D;e.g.,GS1/ISO"Primarywhereunitrequired)IDandisdataDataMatrixfieldECCorder/lengths200").Human-readableFieldformatOrder: Define the precise order andfonts.length of the encoded fields (e.g., "SN [12 chars], followed by Rev [3 chars]").- Placement Map: Provide a drawing showing the exact placement coordinates, size (
rail vs PCB vs box)min/max), and minimumclearances/quietzones.zones for all codes. VerificationAPIstepMapping:(scannerStategradehowthreshold,thereprintscannedflow)dataandfieldsAPImapmappingdirectly to your MES/ERPobjects.objects (e.g., "The first 12 characters map to the MES object 'Unit_SN'").