Component Footprint Rotation

Before we (or any old assembly house) go about putting surface mount parts on a board, we need to program our assembly robots. I’m oversimplifying, but essentially, the machine program needs to know the X / Y coordinates, relative to the board origin (which is the lower left-hand corner), the part rotation, and the side of the board.

In years past, we needed a centroid file (AKA pick-and-place file) containing all of that information. In some cases, we still need the centroid, but not always. Today, we can get the same information from ASCII CAD files, ODB++ CAD files or Eagle .brd files. You only need a centroid if you send us your board files in Gerber format.

If you do send us a centroid file, you no longer need to worry about rotation. The IPC has defined the zero degree orientation, as well as proper rotation direction, but too many part footprints set the zero degree at different angles. We can’t rely on the data.

While we have to ignore rotation and figure it out with other means, we still do strongly recommend that you follow IPC standards when you make your own footprints. The illustrations below show how footprints are supposed to be oriented.

Duane Benson
There’s no earthly way of knowing
which direction we are going
There’s no knowing where we’re rowing

Package origins

Passives orientation r2

Chip rotation

Quad and BGA

Three-pin parts

ODB++ Plus, Plus, Plus

I wrote a bit about ODB++ back in October. Nothing has really changed much since then. I’m just clarifying a few things.

First, I want to put more emphasis on the use of ODB++. In addition to being beneficial to the manufacturing process, it can make your job a little easier. If you send ODB++, you do not need to send either the centroid or Gerber files. The ODB++ replaces both.

Eagle CAD does not have an ODB++ export. However, the Eagle .brd file will work too. You can send the .brd instead of the centroid and Gerber files.

If you can’t send either of those formats, we as an EMS still need the centroid and Gerbers (top copper, bottom copper, solder paste stencil, silkscreen and solder mask layers).

Duane Benson

Number Six
I am not a number, I am a free man!

http://blog.screamingcircuits.com/

CAD Data Files

I’ve spent a fair amount of time researching and writing about the centroid file and about CAD library footprints. One of the challenges in this industry is that somethings that are “standard” really aren’t all that standard. That’s why we emphasize following IPC guidelines when creating library components.

Well, a few things have changed since we started doing this a decade ago. For one, some of the enhanced manufacturing file formats (as opposed to the 1970’s vintage Gerber format) have become more prevelent. Those new formats are a very good thing.

Most CAD packages can now output either ASCII formatted CAD data or ODB++ format data. Those file formats have all of the data that would otherwise be found in the centroid and Gerber files. They also have more accurate data. If you can get one of those formats out, go ahead and send it to us. We can also take plain old Eagle CAD .brd files. If in doubt send one of these newer files along with the centroid and Gerbers. We’ll use the file with the best data and, we may be able to simplify the file preparation you have to do with future jobs.

And speaking of the Centroid, don’t worry so much about the rotation column in the Centroid file. You can consider rotation to be optional now. You don’t need to check the rotation, nor do you need to remove it.

Duane Benson
Who will win? Godzilla or Centroid? Maybe the Smog Monster?

Electrolytic Ambiguity

I’ve written about ambiguity a few times before, like this post about fiducials. But I’m not talking about the PCB today. I’m talking parts. More specifically, I’m talking about silkscreen markings for your parts on the PCB.

Diodes have a lot of opportunity for ambiguity, as you can read here. There are many ways to mark parts, but fewer ways to clearly mark them. Take a typical electrolytic capacitor. It can be through-hole, SMT metal can, tantalum, or a few other form factors. The capacitor manufacturers aren’t doing any of us any favors insofar as “markation” is concerned.

Check out the image at the right. Yikes! In all cases shown here, I’ve oriented positive on the left, which, according to IPC is pin 1. This is also the zero degree rotation for the centroid value. But, isn’t it nice of those component manufacturers to put the identification bar on the positive side for tantalum capacitors and on the negative side for metal can electrolytics? Not!

So, how should you mark this in the silkscreen on your PCB? For an electrolytic capacitor, the best approach is to mark the positive sided with a plus (+) sign. If you mark pin 1 with the number 1, it can easily be mistaken for the minus sign. If you mark the negative side with a minus sign, it can easily be mistaken for pin 1.

For a metal can capacitor, it is also acceptable to put the notched outline in silkscreen. We still recommend that you place the plus (+) sign on there too.

Duane Benson
I’m just positive I put the negative right on the left

http://blog.screamingcircuits.com/

And Another Footprint Thing

 When you are creating a footprint in your favorite CAD program, or reusing someone else’s footprint, double check the zero orientation. This post discusses the IPC-7351 specified zero rotation orientation.

This picture on the left shows a library component with the improper zero rotation orientation. Your centroid file will never be correct if you start from the wrong point.

IPC-7351 states that the LED should be oriented horizontally and the cathode (pin 1) should be to the left. Obviously, vertical and cathode up is not the same thing as horizontal and cathode left. If it’s obvious, why do I feel the need to state it? I don’t know. I just do.

Duane Benson
Red is gray and Yellow white
But IPC decides which is right

http://blog.screamingcircuits.com/

Centroid/XYRLS/Pick-and-Place

Call it what you may, but surface mount assembly robots need this magic file to determine where to place your components and how to orient them. We call it a centroid. Others may call it something else, but it’s all basically the same. In our case, the basic format is comma delimited, in mils:

Ref designator,     Layer,     LocationX,     LocationY,     Rotation
C1 ,                       Top ,           0.5750  ,       2.1000  ,           90

That’s not too difficult. Most CAD programs will automatically create this file for you. Eagle doesn’t natively, but we have a ULP to do it for you in Eagle (downloaded here). Again, no problems here. Mostly…

I say mostly because, at this point, you are at the mercy of the person who created the CAD library part. Provided they center the origin and follow the IPC for orientation, everything should come out just fine. Unfortunately, we do find parts that don’t follow those rules. We’ll do our best to catch and correct such things here, but for maximum reliability, check you library components to make sure. We find the problem crops up most commonly with passives.

IPC says that zero orientation for two pin passives is horizontal, with pin one on the left. For polarized capacitors, pin one is (+). For diodes, pin one is the cathode. They note that pin one is always the polarity mark pin or cathode. Pin one is also on the left for resistors, inductors and non-polarized capacitors, but left vs. right doesn’t matter so much with non-polarized things. The most common orientation error we see is to have the “zero rotation” 270 degrees off from the IPC standard.

Every now and then we’ll find that someone assumes that since usually the anode on a diode tends to be on the positive side, that the anode should be pin one. Nope. Nope. Nope.

Duane Benson
Is it pulling electrons of pushing holes?

http://blog.screamingcircuits.com/