Print Page | Close Window

Incorrect Rounding - Bug or Feature?

Printed From: PCB Libraries Forum
Category: PCB Footprint Expert
Forum Name: Questions & Answers
Forum Description: issues and technical support
URL: https://www.PCBLibraries.com/forum/forum_posts.asp?TID=2122
Printed Date: 07 Oct 2024 at 9:32am


Topic: Incorrect Rounding - Bug or Feature?
Posted By: jgregoire
Subject: Incorrect Rounding - Bug or Feature?
Date Posted: 27 Mar 2017 at 7:37am
I have noticed a few cases of part dimensions being truncated instead of correctly rounded up or down. I'm not so worried about a -0.01mm rounding error on Length or Width dimensions, but we are very strict about package Max Height.

I'm not sure if this is a bug, or behavior specified by the IPC standard, but it seems obvious that Max Height should never be rounded down.

For example, Vishay resistor WSL2512R0100DEA (Datasheet: http://www.mouser.com/ds/2/427/wsl-101914.pdf).

According to the datasheet, the max height for the 2512 package is 0.889mm. This should be rounded to 0.89mm. Instead, Library Expert rounds it down to 0.88mm in the footprint name (RESC710X420X88L157).

The actual height of the exported footprint in OrCAD is 0.89mm, so it's fine there.



Replies:
Posted By: Tom H
Date Posted: 27 Mar 2017 at 12:11pm
Library Expert Pro rounds to 2 decimal places (3 if necessary) for millimeters.

We opened the datasheet and the dimensions for a 2512 don’t have a reference height of 0.889 mm.

 


 

When built using these dimensions we don’t see any rounding other as described above.




-------------
Stay connected - follow us! https://twitter.com/PCBLibraries" rel="nofollow - X - http://www.linkedin.com/company/pcb-libraries-inc-/" rel="nofollow - LinkedIn


Posted By: jgregoire
Date Posted: 04 Apr 2017 at 8:57am
0.635 + 0.254 = 0.889 Max height.

Instead of rounding the height in the footprint name, Library Expert seems to floor() it.


Posted By: Tom H
Date Posted: 04 Apr 2017 at 9:10am
Library Expert only uses dimensional data that the user inserts.

So if the package Height was 0.635 +/- 0.254 = 0.889 Max height, that is the value the user would enter.

The 3D STEP model is created using the exact dimensions.



-------------
Stay connected - follow us! https://twitter.com/PCBLibraries" rel="nofollow - X - http://www.linkedin.com/company/pcb-libraries-inc-/" rel="nofollow - LinkedIn


Posted By: jgregoire
Date Posted: 07 Apr 2017 at 11:23am
We're not using the 3D Step feature.

The height I entered is "0.889". Once again, here is the name of the footprint generated by Library Expert: RESC710X420X88L157

If I enter "0.889" for max height, the generated name should be RESC710X420X89L157.

For a design with height-constrained sections, if I export a BOM from OrCAD that lists the part height as entered in our parts database, and the footprint name, the two will disagree. Whoever is reviewing the design will have to waste time investigating what appears to be an error.


Posted By: Tom H
Date Posted: 07 Apr 2017 at 11:31am
The Height entered into the Calculator should be 0.89 mm

The EIA / IPC / JEDEC naming conventions do not round-off values, rather they drop values.

Example of the EIA 1206 Chip: The body dimensions are 0.125" X 0.062"

Example of the IPC 2012 (0805) Chip: The body dimensions are 2.00 mm X 1.25 mm

In both cases, the package names should be 1306 and 2013 respectively if the numbers rounded up.



-------------
Stay connected - follow us! https://twitter.com/PCBLibraries" rel="nofollow - X - http://www.linkedin.com/company/pcb-libraries-inc-/" rel="nofollow - LinkedIn



Print Page | Close Window