Registration Algorithm
Mathematical coordinate transformations allow a set of measured points to be reconciled with a nominal design grid. Automated optical inspection systems use best-fit alignment to calculate the ideal position of a component by distributing the measured offset across all leads or pads. This technique compensates for board expansion or fabrication tolerances that prevent a perfect match with the original CAD data.
The algorithm optimizes the placement based on a least squares calculation to minimize the total error across the entire land pattern.
Deviation Averaging
Distributing errors across multiple features prevents any single pad from being critically misaligned at the expense of others. When a board undergoes thermal stress during fabrication, the resulting stretch or shrinkage means no single part can perfectly align with every copper feature simultaneously. Applying best-fit alignment ensures that the center of the component is positioned where the average distance to each target pad is minimized.
This method provides the highest probability of successful solder joint formation when working with high pin count devices or fine pitch ball grid arrays.
Inspection Tolerance
Pass and fail criteria for best-fit alignment rely on the residual error after the software completes its positioning adjustment. If the remaining offset exceeds the defined limits for a specific IPC class, the assembly is flagged for review. The process ends once the software determines that no further translation or rotation can reduce the global displacement.