Start with Data Matrix when the main requirement is a compact board identifier read by compatible production equipment. Consider QR Code when smartphone-based access or a service link is part of the workflow. In either case, choose the format only after testing the actual payload, marking process, available area, and readers.
The more important decision is what happens after the scan. A code can identify a board, but traceability depends on unique identifiers, reliable panel-to-board relationships, controlled records, and access to those records. A readable mark alone does not provide them.
The manufacturing handoff must preserve that connection. For general legend design, see PCB silkscreen.
First decide what the code identifies
Before choosing a symbology, define the object being tracked:
- Part or revision: A common code can identify the design, but every board may carry the same value.
- Fabrication lot: A shared code can associate boards with a production batch, but not distinguish individual units.
- Panel: A panel ID can connect a carrier to fabrication events. It does not automatically identify each board after separation.
- Individual board: A unique board ID can connect one unit to its fabrication, assembly, test, and service history—provided those records are captured and linked.
Write the required identification level into the drawing or purchase documentation. If the customer requires individual-board genealogy, a static code repeated in the artwork is not a substitute for serialization.
A serial number is also not authentication. A copied code may decode correctly; anti-counterfeiting or access-control requirements need a separate solution.
Data Matrix vs. QR Code: compare the workflow
| Decision | Data Matrix | QR Code |
|---|---|---|
| Common starting point | Compact industrial identification with compatible imaging readers | Workflows that include a service link or compatible smartphone reading |
| Payload | Can carry a short ID or other agreed data | Can carry a short ID, link, or other agreed data |
| Area | Size the actual encoded symbol and its required quiet zone for the chosen marking format and reader | Size the actual encoded symbol and its required quiet zone for the chosen QR variant and reader |
| Reader selection | Confirm decoding with every intended production reader | Confirm production readers and the specific phone or app if mobile access matters |
| Data handoff | Requires the same ID allocation, mapping, and record controls as QR | Requires the same controls; a link also needs a maintained destination and appropriate access |
Neither format is always smaller. Payload length, encoding, module size, quiet zone, marking resolution, and reader optics all affect the result. Generate and test candidate symbols with the real data format rather than comparing two arbitrary pictures.
A short, opaque identifier can be useful: the mark carries the key, while controlled systems hold the fabrication and assembly details. That keeps the mark focused, but it also makes record availability and access essential.
Generic symbology is not the same as a GS1 application. If a customer requires a GS1 variant or data syntax, specify that requirement explicitly; simply selecting Data Matrix or QR Code does not establish it.
Choose when and how the board is marked
The marking method affects what can be identified, when the ID becomes available, and which later processes the mark must survive. Ask the fabricator and assembler to review the actual stackup, surface, production route, and reading equipment.
| Method | Useful starting point | Handoff question to resolve |
|---|---|---|
| Fixed artwork or legend | Shared part, revision, or documentation code | Is the value intentionally common, and can the features and contrast be reproduced? |
| Variable digital or ink marking | Panel or individual-board IDs assigned during fabrication | Who supplies or generates values, checks the marks, and records their locations? |
| Laser direct marking | Variable identification without an added label | Is the selected surface suitable, and has the mark been evaluated for readability and possible damage? |
| Printed label | Identification applied at fabrication or assembly | Are the label, adhesive, print, and placement suitable for the actual process route? |
| Panel or rail mark | Tracking a carrier through early operations | When and how is the panel identity mapped to individual boards before the rail is removed? |
These are options to discuss, not a statement that every supplier offers every method. A label qualified on one material with one printed image is not automatically suitable with a different adhesive, print system, cleaner, or handling route.
If identification begins at assembly rather than fabrication, determine what information must be inherited from the bare-board lot or panel. Conversely, if the fabricator marks individual boards, the assembler needs the IDs and their parent relationships in a usable form—not just visible codes.
Reserve the mark and its quiet zone
A quiet zone is the clear area surrounding the symbol. It helps the reader distinguish the code from nearby features. For a continuous-format Data Matrix ECC 200 symbol, one module per side is a common minimum in the reader guidance used for the example below. For a QR Code Model 2 symbol, the example uses four modules per side. These assumptions do not cover every variant or marking format: for example, Micro QR and dot-matrix marks need their own applicable requirements. Confirm the symbology, marking format, reader guidance and customer-controlled requirements, then allow for production tolerances.
A hypothetical size budget
The following is arithmetic only, not a recommended PCB module size or proof of readability. Assume a module measures 0.25 mm:
| Hypothetical symbol | Symbol grid assumed for illustration | Minimum quiet zone per side | Total width including minimum quiet zone |
|---|---|---|---|
| Data Matrix ECC 200, continuous format | 18 × 18 modules | 1 × 0.25 = 0.25 mm | (18 + 2) × 0.25 = 5.00 mm |
| QR Code Model 2, Version 1 | 21 × 21 modules | 4 × 0.25 = 1.00 mm | (21 + 8) × 0.25 = 7.25 mm |
These assumed grids do not establish that both symbols can carry the same payload or be produced and read on a particular board. The actual grid must be generated from the selected data and encoding; the final area must also accommodate process tolerance and reader performance.
On the drawing, define:
- Board side and datum: Give the location relative to a controlled reference.
- Reserved boundary: State whether dimensions include the quiet zone and any additional tolerance.
- Surface and appearance: Identify the intended marking area, background, contrast or polarity, and any human-readable ID.
- Keepout: Protect the mark from nearby graphics, pads, components, tooling, fixtures, and likely depaneling damage.
- Access stage: Confirm visibility on the bare board, assembled board, and finished product where needed.
A code that is visible in the CAD layout may be inaccessible under a connector, coating, enclosure wall, or test fixture. Review the location using the intended reader and working conditions. The fabrication drawing guide can help organize these requirements for supplier review.
Qualify durability across the actual route
Do not treat “laser marked,” “ink marked,” or “high-temperature label” as a complete durability specification. A readable mark must remain usable after the processes and handling it will actually encounter.
Build a qualification plan around representative boards, materials, marks, readers, and the relevant route. Depending on the product, review readability after reflow, cleaning, coating, depaneling, handling, and service exposure. Check both the symbol and the surface: contrast, glare, residue, print damage, and physical obstruction can affect reading.
Qualification and production acceptance are different. Qualification evaluates whether the proposed materials and process are suitable for the intended route. Production acceptance applies the agreed checks to delivered product. A successful qualification sample does not automatically accept every later mark; a production scan does not by itself establish long-term durability.
Agree in advance on what triggers requalification—for example, a change in marking material, board surface, cleaning process, reader, or location.
Make the panel-to-board data handoff explicit
A production panel, a delivery panel, and an individual board can each have different identities. If a panel is divided or its rail is removed, the relationship must be captured before that happens. The panel mark alone does not preserve individual-board genealogy after separation; a controlled mapping and a reliable way to identify each unit are also needed.
The following manifest is hypothetical. It illustrates the data relationship, not a particular supplier’s service:
| Production panel | Delivery panel | Position | Board ID | Disposition |
|---|---|---|---|---|
P1042 |
D1042-1 |
01 | B000581 |
Shipped |
P1042 |
D1042-1 |
02 | B000582 |
Scrapped |
P1042 |
D1042-1 |
03 | B000583 |
Shipped |
The position field needs a defined orientation and numbering convention; “position 01” is not useful if the parties view the panel from different sides. The manifest should also associate the appropriate lot, part number, revision, and order with each shipped ID.
For rejected positions and status changes, coordinate this mapping with the panel X-out plan. The assembly inspection report addresses how the applicable unit or panel population is identified in inspection records.
Manufacturing handoff matrix
| Decision or event | Agree before fabrication | Evidence or handoff to retain |
|---|---|---|
| ID allocation | OEM or supplier issues IDs; define uniqueness scope, characters, ranges, and reorder rules | Allocated range or issued-ID list and owner |
| Mark and read-back | Define marking stage, expected value, reader, and handling of a mismatch | Board ID, decoded value, result, and applicable location |
| Panel mapping | Define production-panel, delivery-panel, and position relationships | Mapping that survives panel division and rail removal |
| Scrap and extras | Decide whether gaps are allowed and how unused or rejected units are recorded | Disposition by ID; distinguish shipped from non-shipped units |
| Assembly and test | Define when the assembler receives and scans IDs and what events it appends | Assembly lot, inspection, test, and rework links as applicable |
| Records and access | Name the master-record owner, file format, transfer channel, retention period, and authorized users | Receipt confirmation and a tested lookup from board ID to records |
The assembler should reconcile the received boards against the manifest. An end-to-end trial should scan a real board, find its fabrication relationship, and add an assembly event. This tests more than a scanner: it tests whether the right people can retrieve and update the right record.
Plan exceptions before they occur
Specify duplicate prevention and what happens when a mark cannot be read, a board is scrapped, or a unit is replaced. Define whether an ID can ever be reused; a conservative contract can prohibit reuse and preserve the disposition of every issued ID.
For an approved re-mark, retain the original and replacement relationship rather than silently overwriting history. If a parent panel mark is damaged before mapping is captured, define who contains the affected material, investigates, and authorizes its disposition. Do not reconstruct genealogy from an assumed panel position without an agreed, reliable method.
Scan checks are not graded verification
A scan check answers a practical question: did a specified reader decode this mark under these conditions? Compare the decoded data with the expected ID, record no-reads and mismatches, and test representative lighting, angle, distance, speed, and production stages.
A successful scan does not prove that the symbol meets a graded quality requirement. It also does not prove that the ID is unique, that the database contains the correct board, or that an authorized user can access its history.
Verification, when required, is a controlled measurement and grading process. ISO/IEC 15415 addresses two-dimensional symbol print quality; ISO/IEC 29158 addresses direct-part-mark quality methodology. Select the applicable method and edition with the customer and marking supplier using the controlled documents and application requirements. Do not assume one universal grade for all PCB marks.
The agreement should cover the verifier and calibration, illumination, aperture and angle as applicable, required grade, sampling plan, measurement stage, report, and corrective action. Keep three results distinct:
- Production-reader check: Can the intended equipment decode the correct value?
- Graded verification: Does the measured symbol meet the specified quality criteria?
- Traceability check: Does the value retrieve the correct, accessible records?
All three may be necessary, but one is not evidence of the other two.
PCB marking RFQ checklist
Include these points with the fabrication package or request for quotation:
- Purpose: Identify part, lot, panel, or individual board; specify where readings are needed.
- Code and data: Symbology, required syntax, example payload, character rules, and human-readable text if needed.
- Serialization: Issuer, uniqueness scope, allocation ranges, reorder rules, and duplicate prevention.
- Drawing: Board side, datum, marking surface, reserved area including quiet zone, contrast, keepout, and access after assembly.
- Process: Proposed marking stage and method; downstream thermal, cleaning, coating, handling, and service exposures.
- Reader acceptance: Intended equipment, scan conditions, expected-value comparison, sampling, and no-read response.
- Verification, if required: Applicable standard and edition, grade, equipment settings, calibration, sampling, and report.
- Data delivery: Panel and board fields, position convention, file format, channel, timing, ownership, retention, and access.
- Exceptions: Scrap, gaps, extras, duplicates, re-marking, replacement, damaged panel IDs, and corrective action.
- Approval: Qualification samples, production acceptance criteria, and change-control responsibilities.
Use the quote request to submit the requirements for review, or contact the team to discuss the intended handoff. Confirm the marking options and deliverables available for the specific order before releasing the design.
FAQ
Is Data Matrix always smaller than QR Code on a PCB?
No. Compare generated symbols for the actual payload and encoding, then include the required quiet zone and the module size needed by the marking process and reader.
Can a panel code provide individual-board traceability?
Not by itself. Individual traceability requires a way to identify each board and a reliable mapping to relevant panel and production records, including after depaneling. Agree when and how each unit acquires its identifier.
Does a phone scan prove that a PCB code passes verification?
No. It shows that a particular phone or app decoded the mark under those conditions. Graded verification requires the specified measurement method and acceptance criteria.
Should the board ID contain the full manufacturing history?
Usually the ID can act as a key to controlled records instead. Decide who maintains those records, who can access them, and how long they remain available; the mark alone does not guarantee access.
What should happen if a serialized mark is unreadable?
Follow the agreed containment and disposition procedure. If re-marking is authorized, preserve the relationship between the original and replacement IDs and verify that downstream records remain linked.
