Last month a buyer sent our Dongguan team a one-page sampling test plan for a CCD-automated laser marking machine. Bad marks were already reaching his customers. We rebuilt it.
A sampling test plan for a CCD-automated laser marking machine defines test goals, real production samples, measurable standards for recognition accuracy, speed, position deviation and mark quality, a continuous-run simulation, and recorded evidence. It combines 100% CCD checks with risk-based sampling and a failure reaction plan.
That sounds like a lot. It is not. Below I walk through each part in the order we actually use it on our own line, from the first written goal to the final data report.
What Should I Include in a CCD Laser Marking Sampling Test Plan?
Our engineers learned one lesson the hard way: a plan that skips test goals produces arguments later. So we now write the five sections below before any trial run.
A CCD laser marking sampling test plan should include clear test goals, real production samples in every specification, written acceptance standards, a simulated continuous production run, failure modes with severity levels, a reaction plan, and recorded evidence such as test videos and data reports.

A sampling test plan is not "inspect a few parts." It is a risk-based system. It says what the camera checks, how often parts are pulled, what counts as a pass, and what the operator does when a part fails. I build ours in five steps.
The five steps we never skip
- Define the test goals. We write down the marking material, the product size, the pattern or code content, and the precision requirement. If a buyer sends a stainless medical tool and a PVC cable tag, those are two separate goals.
- Prepare real test samples. We ask for genuine production material 1 in every specification the line will see. Coupons cut from a different alloy or finish tell us very little. NASA's laser-marking specification makes the same point: use representative material.
- Set the test standards. Recognition accuracy, marking speed, position deviation, and the visual result each get a number or a limit sample. This is where ISO 15415 symbol grading belongs for 2D Data Matrix verification, and ISO/IEC 15416 for 1D barcodes.
- Simulate continuous production. We run CCD recognition, auto positioning, and marking for a full shift, not ten parts. Long runs expose lens heating, fixture wear, and software handshake delays.
- Record everything. We supply the test video, the data report, and a written improvement plan for every issue found. A buyer should expect this before paying a deposit.
The written plan itself
Below is the template we attach to every Factory Acceptance Test (FAT). It also doubles as the production document once the machine ships.
| Plan element | What we write down |
|---|---|
| Product and part number | Drawing revision, material, geometry, finish |
| Marking technology | Fiber, MOPA, UV, or CO2; annealing, ablation, engraving |
| Laser recipe | Power, speed, frequency, pulse width, focus, passes |
| CCD recipe | Lens, field of view, exposure, lighting, thresholds |
| Inspection characteristics | Content, presence, position, size, contrast, code grade |
| Measurement method | Camera, verifier, microscope, gauge |
| Specification | Tolerance, minimum grade, limit samples |
| Sample size and frequency | Per startup, per hour, per event, per lot |
| Acceptance and rejection numbers | From the chosen standard and level |
| Reaction plan | Stop, segregate, trace, correct, release |
| Responsible role | Operator, QC, engineer |
| Record retention | Images, values, serial links, approval signatures |
For automotive, aerospace, or medical work, the customer drawing and the applicable traceability standards control the limits. Our internal "good enough" never overrides them.
How Do I Determine the Right Sample Size for Testing My Laser Marking Machine?
Every week we weigh the same trade-off at our factory: more samples cost more test time, but fewer samples let defects escape. Neither extreme serves the buyer.
Determine sample size from defect severity, lot size, process capability, and customer requirements. Use 100% CCD inspection for identity and presence, add event-driven samples after setup or maintenance, and apply ANSI/ASQ Z1.4 or ISO 2859-1 tables when formal lot acceptance is required.

There is no single correct number. There are four strategies, and most mature lines mix at least two of them.
| Strategy | How it works | Best for | Weakness |
|---|---|---|---|
| 100% automated inspection | CCD checks every part right after marking | Serialized, safety, or recall-risk marks | A failed camera can pass everything |
| Fixed-interval sampling | Operator pulls a set number at startup, hourly, end of lot | Stable, low-risk processes | Misses short failures between checks |
| Risk-based sampling | Frequency rises with new material, new recipe, or recent failures | Mixed-product lines | Needs documented switching rules |
| Statistical acceptance sampling 2 | Sample size and accept/reject numbers from ANSI/ASQ Z1.4 or ISO 2859-1 | Lot disposition with a customer | Lots with defects can still pass |
Define the lot first
A sample needs a population. The lot can be one batch, one shift, one coil or bar, one machine setup, or one laser recipe. We keep it small enough to contain a failure and large enough to mean something. When the recipe, fixture, lens, or material changes, the next segment becomes a new inspection condition.
Pull samples randomly, and after every event
Samples should not always come from the first tray or the easiest reach. We pick across the lot. We also pull extra parts after warm-up, fixture adjustment, laser-window cleaning, recipe change, maintenance, camera recalibration, and any long stoppage.
A worked example for a medium-risk line
Here is the structure we proposed for a 2,000-part lot of hardware tools. Treat the numbers as an example, not a rule.
- First-off approval: five consecutive parts after setup or recipe change.
- In-process check: three to five random parts every hour.
- Event-driven check: five parts after any of the events listed above.
- Continuous CCD check: every part for presence, content, position, and basic legibility.
- Periodic calibrated verification: a standards-based verifier once per shift or once per lot.
- End-of-lot: confirm the data records are complete.
The AQL objection
Buyers often tell me "we accept AQL 1.0, so one percent defects is fine." That is a misreading. The Acceptable Quality Limit (AQL) 3 is a lot-decision tool. It is not permission for the process to run at that defect rate. For critical traceability marks, a Zero Acceptance Number plan with c=0 is the safer choice: any failing sample rejects the lot. Even then, acceptance sampling never replaces process capability. We use capability data for prevention and the sampling table only for lot disposition.
Also run a run-at-rate trial. Cycle time must include camera acquisition and the data handshake, not just the laser pass.
Which Defects Should I Check for During CCD Vision Positioning Tests?
A project manager in Germany once asked me why his camera passed a code his customer's scanner rejected. That question shaped the defect list we test today.
Check for wrong recipe or serial number, missing or incomplete marks, low contrast or overburn, distorted Data Matrix cells, position and rotation error, parts seated wrongly in fixtures, camera focus or lighting drift, dirty lenses, laser power drift, and marks that fade after downstream processes.

We build the defect list from a PFMEA, then sort each failure by severity. Severity decides the response: line stop, containment, more sampling, or routine correction.
Defects by severity
| Severity | Typical defects | Default response |
|---|---|---|
| Critical | Wrong recipe loaded, wrong or duplicated serial number, missing mark, transposed data, mark outside location tolerance | Stop line, segregate since last good part |
| Major | Low contrast, overburn, distorted Data Matrix cells, uneven depth, heat-affected cracking, glare-induced decode failure | Hold lot, increase sampling, correct cause |
| Minor | Slight cosmetic variation, small burrs, minor edge roughness within limit samples | Record, trend, correct at next opportunity |
Process failures versus inspection-system failures
The German buyer's problem was not the laser. It was the camera. Machine vision inspection can give false confidence. A code can decode on the line while having poor contrast and uneven cells, and then fail a different reader downstream. The reverse also happens: an overly strict setup rejects good parts because of glare or small reflectivity shifts.
So we test the inspection system as its own failure source:
- Camera out of focus or Z-axis drift. We sample parts at both extremes of the height tolerance to prove the focal compensation works.
- Dirty lens or protective window.
- Lighting degradation and ambient light shifts. We run the same parts under simulated morning and night shop lighting.
- Calibration drift in pixel scale or distortion correction.
- Communication loss between marking controller, CCD, and the MES.
If the camera stops reporting, parts are not automatically good just because the laser kept firing.
Three sample sets that expose the truth
We never qualify a camera on perfect parts alone. We use golden samples, borderline-acceptable samples, and known-defective samples. We also inject synthetic defects on purpose: a shallow pass, a shifted fixture, a smudged surface. This calibrates sensitivity and cuts false rejects.
Scanner or verifier?
Buyers ask whether a handheld scanner is enough. A scanner confirms decode. A verifier grades the symbol under controlled lighting, aperture, and angle, as ISO/IEC 15415:2024 requires for 2D codes. For Direct Part Marking (DPM) 4 on titanium or brass, surface finish changes the result a lot. If the customer specifies a grade, a scanner cannot prove it. We recommend the verifier for periodic checks and the in-line camera for every part.
How Can I Validate Marking Accuracy and Consistency Before Mass Production?
During a long trial on aluminum battery covers, our line ran a full shift with the camera logging every part. The first contrast dip appeared late in the run.
Validate marking accuracy by qualifying laser parameters with a DOE, running IQ/OQ/PQ, performing a Gage R&R on the CCD system, simulating continuous production at full rate, grading codes under ISO 15415, tracking results with SPC charts, and requiring videos, data reports, and improvement plans.

That contrast dip was a slowly warming protective window. A ten-part demo would never have shown it. This is why validation comes before sampling, never instead of it. Sampling only works when the process is already understood and stable.
The validation sequence we follow
- Laser and material qualification. We run a Design of Experiments 5 across power, speed, frequency, pulse width, focus, hatch spacing, and passes on the buyer's real material. The goal is the best balance of speed, contrast, and depth, plus a worst-case check at the minimum and maximum material variation.
- Fixture and camera qualification. We measure seating repeatability and set field of view, lens, exposure, and thresholds against the golden and borderline samples.
- IQ/OQ/PQ. Installation Qualification proves the machine is built as specified. Operational Qualification proves each function works across its range. Performance Qualification (PQ) proves the system holds accuracy under full production throughput for a defined period.
- Measurement-system study. A Gage R&R on mark position and character height shows whether results repeat across operators and shifts. For pass/fail decisions we compare the camera against an expert reference on a mixed set of good and bad parts, and we record the false-accept and false-reject rates.
- Durability check. We test marks after washing, coating, heat exposure, or sterilization where the product sees them, not only straight off the laser.
- Beam health baseline. We record spot size and M² at qualification so later drift can be predicted rather than discovered on parts.
Evidence we hand over
| Stage | Evidence delivered |
|---|---|
| DOE and material study | Parameter table, limit samples, photos |
| Fixture and camera setup | Calibration record, threshold list, reference images |
| PQ and continuous run | Full-shift test video, cycle-time log, reject log |
| Gage R&R | Repeatability and reproducibility results |
| Code quality | ISO 15415 grade report from a calibrated verifier |
| Open issues | Written improvement plan with owner and date |
Watch trends, not just pass/fail
Statistical process control (SPC) charts for contrast, OCR confidence, position error, and lowest code grade per hour reveal drift before a hard failure. One objection I hear is "our spec limit is the control limit." It is not. Control limits come from process variation; spec limits come from the customer. A process can be stable and still incapable.
Automated decisions versus human review
Automated Optical Inspection (AOI) is consistent and fast. Humans still help with unusual surfaces and borderline parts. Our plan names who may override, when, and how the override is logged. The first result always stays in the record. A retest never erases a failure.
When a critical failure does occur: stop, segregate back to the last known good part, decide whether the cause is data, mechanical, optical, software, or material, recheck with a reference sample, correct, reinspect the quarantine, and release only after a set number of consecutive good parts.
Conclusion
A thin plan lets wrong marks escape and costs you customers. Build the plan above, test real samples, and ask us for the video and data report.
Footnotes
1. NASA technical standards portal for hardware identification and marking requirements in aerospace. ↩︎
2. International standard for attribute sampling plans used in quality control and inspection. ↩︎
3. ASQ resource explaining sampling plans and the use of Acceptable Quality Limits. ↩︎
4. Official ISO standard for quality grading of direct part marks on various surfaces. ↩︎
5. Authoritative NIST Engineering Statistics Handbook chapter on Design of Experiments (DOE) for process improvement. ↩︎


