Drill File Problems

Alright, I’ve submitted two boards and both of them have come up with drill file issues. They passed DRC of both Protell and the bot. It was subsequently rejected with drill file problems. I can’t seem to figure out what the problem with this Drill file is… maybe someone can help?

This file was generated by Protell, I selected “remove trailing zeros” as that was the default, it was also the default of the file selection on uploading the file.

Drill File:
M72

M48

T1F00S00C0.028

%

T01

X5007Y49115

X50138

X50225Y49088

X50238Y49263

X50125Y49375

X50562Y493

X50556Y49225

X50487Y49188

X504Y49138

X506Y49097

X5069Y49075

X50643Y49325

M30

Perhaps someone can point out an obvious mistake?

As a side note, this is my first board :smiley:

Offhand, I’d say the second entry in the T01 section is missing the Y-coordinate. From what I can tell, SFE requires that every entry in the file have a full X and Y value.

I’m also experiencing the joys of drill files. Who would have thought they’d be so much fun!

Craig

I think the missing Y coord is part of the spec. it means use the previous Y coord.

Backblast,

Did you ever get your PCB issue sorted out? If not, try modifying your drill file by adding “INCHES” where I show it below.

M72

M48

INCHES

T1F00S00C0.028

%

T01

X5007Y49115

X50138

etc, etc, etc.

Let me know if this helps. Also, what version of Protel are you using?

Thanks,

PeterM

M72

M48

INCHES

T1F00S00C0.028

%

T01

X5007Y49115

X50138

etc, etc, etc.

INCHES is actually wrong… It should be just INCH

Also, you can lose the F00S00

You can also lose the M72 (which is another way of specifying INCH)

And, if you’ve removed trailing zeroes, you can

specify INCH,LZ (meaning it has leading zeroes, but not trailing zeroes)

So…

M48

INCH,LZ

T1C0.028

%

T01

X5007Y49115

X50138

etc, etc, etc.

One thing I notice about this file is that the coordinate locations are way out there, at around +50 inches. That may cause a problem.

You might want to change your origin in Protel, or ‘Reset Relative Origin’.

Sometimes using a relative origin causes the drill holes to be in different locations from the gerber data.

Steve.

I have also encountered numerous drill file problems, here is the story:

generated drill files in both Altium and Protel. When imported in GerbTool, the drill points are offset (OK I have to check the reference origin, but it is still odd). But more annoying, the graphical representation of the drill point is 10 times (1000%) too large!

I thought, humm, maybe some kind of special drill file format.

So I took the drill guide from Protel, imported in GerbTool, and had gerbtool generate an excellon file of it. It showed OK, no shift, no enlargement. I save it (from GerbTool). Shut down gerbTool, and opened this saved file. Guess what, again 10 times too big!

I also tried scaling down to 10%, save and open again to no avail.

This is driving me nuts.

These CAD programs are supposed to be top notch, now I have my doubts.

Anyone an idea what’s going on?

Help appreciated. I have been fighting with drill files for over 3 weeks now.

And how to create a mill file? Another topic maybe?

allardvanw,

I use Protel version 2.8, so my suggestions may not be applicable to your version , but here goes:

1 - When I generate Gerber files, there is a checkbox for “Center plots on film.” As I recall, when I clicked that, it caused the drill files to be offset. If you have a similar checkbox, try it both ways and see what happens.

2 - Have you looked at the Gerber file in a text editor and checked the header? I have had various drill file problems, which I pointed out in an earlier post in this thread. Steve corrected my “INCH” versus “INCHES” error, but the fact still remains that even with it saying “INCHES”, the DRC checker passed it and my PCB came out perfectly. Protel seemed to be not setting the correct info for telling the reader that the file was in inches and not millimeters. Can you post your Gerber file up to the line that says “T01”?

Thanks,

PeterM

After some work I found the problem.

If units=mm, then Protel only lets you save in 4 digits before the decimal. GerbTool does not support that (go figure!!). Hence the factor 10.

So I used inch as unit throughout, and 2:3 format, no leading zero’s. make sure every time you save a file you have to set the units and decimals and origin over and over again. Protel tends to change this.

Now everything matched up (I also used absolute origin evry time)

In order to generate proper Excellon Drill and Mill files, use the import wizard in gerbTool after having generated the NC files in Protel (note, Protel does not generate proper Excellon format). Gerbtool sorts out the tool list and generates mill and drill files. Lets see what the PCB shop makes of it.

Thanks for the tips anyway, much appreciated.