2015年5月7日星期四

PCB Share: Gerber Data Format

Gerber Data Format

Sourced by Erin KOU

The Gerber data format is an industry standard used for printed circuit board layouts. This type of data is used by photoplotter equipment which uses a light to "draw" a line using an aperture, or shape. The Gerber data file is an ASCII format that instructs the photoplotter with four basic pieces of information:
  • X/Y Coordinate Information
  • Aperture Selection - tool shape to chose
  • Shutter Commands - one of open, close, or flash
  • End of Line Character - typically an asterisk (*)
The official standard for Gerber format can be found at UCamco.

X/Y Coordinate Information

The X/Y coordinate information, like any numerical data in a Gerber data file, has an integer and decimal portion. However, the decimal point in not a valid character, and the decimal values are written as integers. The position of the decimal place in the integer is determined by three parameters:
  • Number of integer (whole number) digits
  • Number of decimal (precision) digits
  • Zero suppression
These parameters give rise to the "2,3" and "2,4" file format designations. The number in front of the comma (2) designates the whole number digits, and the number trailing (3 & 4 respectively) represent the number of precision digits. When written out, the decimal point of the value is removed, and the values are appended to one another.

For example, in "2,3" format, the value 12.345 becomes "12345". In the "2,4" format, the same value becomes "123450" in order to fulfill the precision requirement.
Zero suppression can be one of three types: leading, trailing, and none. Leading and trailing zero suppression remove "0" characters that are unnecessary to reduce the data file size.

For example, in "2,4" format, the value 0.0100 can benefit from zero suppression. Since 2,4 format requires 2 whole number digits (in this case 00), and four precision digits (in this case 0100), then the resulting value is converted to 00+0100, written as "000100" if there is no zero suppression.

With leading zero suppression, "000" at the front is not required, and so it is written as "100".

With trailing zero suppression, "00" at the end is not required, so it is written as "0001".
Zero suppression is only one method of reducing the size of Gerber data files. Another method is to eliminate the use of redundant data; this is referred to as Modality.

Gerber File Examples


There are two types of Gerber file formats. Refer to the Plotter Codes information for explanations on the information contained in the following data file examples:
  • RS-274D
  • RS-274X
RS-274D data files do not define apertures. Therefore, an application that lays out printed circuit boards and a photoplotter can interpret the aperture differently. To overcome this problem, an aperature file must also be included with the RS-274D file to ensure compatability - this is what the RS-274X Gerber format can solve. The RS-274X format has an aperture definition embedded in the file so that the separate aperture file is not required.
Additional Information
For additional information on Gerber files an their applications in printed circuit board layout, see the Gerber Files and Uses table.



website: www.pcbway.com/e






For PCB prototype, please feel easy contact Erin KOU (erin.kou@pcbway.com)

没有评论:

发表评论