Serial Number Marking: 6 Rules on a PCB
A serial number marking gives every unit its own identity, and it is the point at which a board stops being a batch and becomes an individual. Without it, a field failure can only be traced to a lot and a date. With it, the same failure can be traced to a panel, a machine, a shift and a set of process readings.
The mark has to survive everything that follows it. It is written early, then passes through solder mask curing, assembly reflow, cleaning, coating and final test, and it still has to be readable by a scanner at the end. Choosing the method, the position and the size is therefore a process decision rather than a labelling decision.

Why a Panel Needs a Serial Number Marking
Panel serialization is what makes the rest of the quality system work. Test results, coating thickness readings, X-ray images and rework notes can all be attached to a specific unit once a serial number marking exists, and the record becomes searchable instead of theoretical.
Panel serialization also supports containment. When a defect is found, the affected serial range can be identified precisely rather than by guessing from a production date. That difference decides whether a recall touches hundreds of units or every board made in a week.
Laser, Inkjet and Label Methods Compared
Laser marking removes or alters a thin surface layer, producing a permanent mark that will not wash off or fade. It costs more per unit and needs a station, but it is the only method that reliably survives harsh cleaning and coating.
Inkjet is fast and cheap and can be applied late in the process, yet the ink can be removed by solvents and can bleed on a rough surface. Labels are the easiest to read and the easiest to apply wrongly, and a label that lifts during reflow takes the identity of the board with it.
Where to Place the Mark on the Board
The mark needs a flat area with no circuitry, no coating keepout conflict and enough contrast for a scanner. Panel edges and breakaway rails are common positions, but a rail is removed at depaneling, so a marking on the rail identifies the panel rather than the unit.
That distinction matters. Where unit level traceability is required, the serial number marking has to be on the unit itself, in a place that survives depaneling and does not interfere with the coating mask that keepout rules define.
Data Matrix Codes and Readability
A two dimensional data matrix packs far more information into a small area than a printed number, and it can often be read at a lower contrast. The trade is that it needs a scanner with the correct lighting and a module size large enough for the marking method, commonly at least 0.25 mm per module.
Readability should be verified with the same equipment used in production, not with a phone camera. Grade the code with a verifier where the customer requires it, and record the grade, because a code that reads at the marking station may fail under the lighting of the assembly line.
Marking Before or After Solder Mask
A serial number marking applied before mask is covered by the coating, which changes its appearance and can reduce contrast. Marking after mask, but before assembly, leaves a clean surface and a high contrast result, at the cost of an extra handling step and a risk of damaging finished boards.
Where the surface finish is involved, the choice becomes more complex, because the mark may sit on copper, on mask or on the finish itself. A mark on an exposed pad is not acceptable, and one close to a pad can be affected by solder during assembly, so the position should be reviewed against the fabrication drawing rather than assumed.

Verification, Scanners and Line Integration
The scanning point should be chosen so that a bad mark is caught early. Reading the traceability code at the start of assembly confirms that the panel is the one the traveler expects, and reading it again at final test closes the loop between the physical unit and its record.
Integration is what turns the code into data. The scanner should write the traceability code into the machine log automatically, because a code that has to be typed by hand will eventually be typed wrongly, and the record then links two different units without anyone noticing.
Linking the Mark to the Build Record
Every process record that applies to the unit should carry the same identifier: the placement log, the reflow profile used, the X-ray result and the coating measurement. That is what traceability means in practice, and the mark is what makes it possible.
The identifier should also appear on the shipping documentation and in the customer record, so a returned board can be matched to its history in minutes. Where the customer applies their own label, the link between that label and the internal number has to be recorded at the moment of application.
Marking Under Coating and After Assembly
A serial number marking that will be coated has to be readable before coating and must not be damaged by the coating process. Some shops mark before coating and verify afterwards, while others coat first and apply a laser mark through a window in the mask, which requires a defined keepout.
Late serial number marking, after assembly, is useful for repairs and for rework that changes the configuration of a board. Where the mark is used to record a revision, the rule should state whether the original number is kept and annotated or a new number is issued, because both practices exist and mixing them destroys the value of the record.
Standards, Customer Requirements and Records
Where a customer specification names a marking standard, the size, contrast and grade requirements come from that document rather than from the shop preference. The IPC marking and traceability standards are the usual reference, and they should be quoted with the revision on the traveler.
The shop record should log the serial number marking equipment, the settings, the verification result and any rejected marks, and retain a sample from each lot. Keeping samples serves the same purpose as sample retention in any other process, and it settles arguments about readability long after the boards have shipped.
FAQ
Does every board need a serial number marking? Not necessarily. Consumer products often use a lot code, while medical, automotive and aerospace work usually requires unit level identity. The requirement should come from the customer specification and from what the shop must prove after a failure.
Can a serial number be marked on the panel rail instead of the unit? Only if the traceability requirement is at panel level. A mark on a breakaway rail disappears when the rail is discarded, so unit level traceability requires the mark to be placed on the board itself.
What makes a data matrix code fail a scan? Low contrast, a module size below the scanner limit, damage from handling and lighting that is wrong for the surface. Grading the code with the production scanner catches all four, and the quality record should show the result for each lot.



