Coordinate File (Centroid Data)
📢 Deep Dive: Podcast on This Topic
In the realm of printed circuit board (PCB) assembly, precision is paramount. A critical component in achieving this precision is the centroid file, also known as the pick-and-place or XY data file. This file provides automated assembly machines with the exact coordinates and orientations of surface-mount technology (SMT) components on a PCB, ensuring accurate placement during manufacturing.
Understanding the Centroid File
A centroid file is a text-based document, typically in comma-separated values (.csv) format, that details the following information for each SMT component:
- Reference Designator (RefDes): The unique identifier for each component, such as R1 for a resistor or C2 for a capacitor.
- Layer: Indicates the side of the PCB where the component is placed, either “TOP” or “BOTTOM.”
- X and Y Coordinates (LocationX, LocationY): The precise position of the component’s center on the PCB, measured from a defined origin point.
- Rotation: The orientation angle of the component, typically in degrees, indicating how the component should be rotated during placement.
An example of a centroid file entry:
RefDes,Layer,LocationX,LocationY,Rotation
C1,TOP,120.5,30.3,90
C2,TOP,119.5,45,90
R2,TOP,85.5,36.2,180
IC1,TOP,28.6,18.2,90
FID1,TOP,10,10,0
FID2,TOP,150,60,0
REFERENCE POINT ON THE BOTTOM LEFT CORNER OF PCB,,,,
Key Considerations for Centroid Files
- Origin Point (reference point): All coordinates are measured from a defined origin (0,0) on the PCB. It’s essential to specify this origin clearly, often noted at the end of the file.
- Units and Formatting: Coordinates are typically in millimeters, and the decimal separator is a period (e.g., 120.5).
- Component Orientation: The rotation value indicates the angle at which the component should be placed. Standard practice is to use counterclockwise rotation for components on the TOP layer and clockwise for the BOTTOM layer, as viewed from the TOP side.

Importance of Accurate Centroid Data
Providing precise centroid data is crucial for several reasons:
- Automated Assembly: Ensures that pick-and-place machines can accurately position components, reducing errors and improving efficiency.
- Quality Control: Facilitates inspection processes by providing exact component locations and orientations.
- Cost Efficiency: Minimizes the risk of misplacements, which can lead to costly rework or scrap.
Generating Centroid Files
Most PCB design software can generate centroid files. The process may vary depending on the software, but generally involves exporting the placement data in the required format. It’s advisable to consult your specific software’s documentation or support resources for detailed instructions.
Conclusion
In summary, the centroid file is a vital element in the PCB assembly process, providing the necessary data for precise component placement. By ensuring the accuracy of this file, manufacturers can achieve higher quality assemblies, reduce errors, and optimize production efficiency.