Gerber format
![]() | |
Filename extension |
.gbr |
---|---|
Internet media type |
application/vnd.gerber |
Uniform Type Identifier (UTI) | com.ucamco.gerber.image |
Developed by | Ucamco |
Initial release | 27 August 1980 |
Latest release | Revision 2023.08 30 August 2023 |
Type of format | Image file format |
Standard | Gerber Format Specification |
Website | https://www.ucamco.com/en/gerber |
TheGerber formatis anopen,ASCII,vector formatforprinted circuit board(PCB) designs.[1]It is thede factostandardused by PCB industry software to describe the printed circuit board images: copper layers, solder mask, legend, drill data, etc.[2][3][4]
The standard file extension is.GBR
or.gbr
[1]though other extensions like.GB
,.geb
or.gerber
are also used. It is documented by The Gerber Layer Format Specification and some related (but less universally supported) extensions such as XNC drill files and GerberJob to convey information about the entire PCB, as opposed to single layers.
Gerber is used in PCB fabrication data.[5]PCBs are designed on a specializedelectronic design automation(EDA) or acomputer-aided design(CAD) system.[6]The CAD systems output PCB fabrication data to allow fabrication of the board. This data typically contains a Gerber file for each image layer (copper layers, solder mask,legend or silk...). Gerber is also the standard image input format for all bare board fabrication equipment needing image data, such asphotoplotters,legend printers, direct imagers orautomated optical inspection(AOI) machines and for viewing reference images in different departments. For assembly the fabrication data contains the solder paste layers and the central locations of components to create thestenciland place and bond the components.[7]
There are two major generations of Gerber format:
- Extended Gerber, or RS-274X. This is the current Gerber format. In 2014, the graphics format was extended with the option to add meta-information to the graphics objects. Files with attributes are called X2 files; those without attributes are X1 files.[8][1]
- Standard Gerber, or RS-274-D. This obsolete format was revoked.[9][10][11]
The official website contains the specification,[12]test files, notes and the Reference Gerber Viewer[13]to support users and especially developers of Gerber software.[1]
PCB fabrication data
[edit]![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Openbiosprog-spi_PCB_Kicad_0.1_%284935009830%29.png/220px-Openbiosprog-spi_PCB_Kicad_0.1_%284935009830%29.png)
PCBs are designed on a specializedelectronic design automation(EDA) or acomputer-aided design(CAD) system.[6]The CAD systems then outputsPCB fabrication datato allow fabrication of the board.[5]Fabrication data contains a Gerber file for each image layer and drill span (copper layers, solder mask,legend or silk...) (For historic reasons drill data is also transferred inNC formatsalthough Gerber files are often of better quality.)[14]Typically, all these files are "zipped"into a single archive that is sent to the PCB bare board fabrication shop. The fabricator loads them into acomputer-aided manufacturing(CAM) system to prepare data for each step of thePCB production process.[15]
The.FileFunction attribute is the standardized method to link each layer in the PCB with its corresponding Gerber file in the fabrication data.[1]: Section 5.6.3 of the 202308 release of the Gerber Layer Format Specification
If attributes are not supported, then only informal methods are available. A simple informal method is to express the file function clearly in the file name. Sometimes the file extension is abused to indicate the file function - e.g..BOT for the bottom layer rather than the standard extension.GBR.[10][16]In industry this is considered poor practice and engineers should use the appropriate X2 attribute instead.
PCB Fabrication Data must comply with a number of rules: all layers must be aligned, a profile layer must be included, etc.[17][18]
The CAD netlist can be embedded in the Gerber files.[1][19]However, for historic reasons, netlists often are described in a separate file in IPC-D-356A, an electrical test format.[20]
The material stack up, components and finishes are typically provided in informal text files or drawings.[21]In 2018 Ucamco has published a specification for an extension of the Gerber format to cover this fabrication documentation.[22]
Extended Gerber
[edit]RS-274X, extended Gerber or X-Gerber, was originally released in September 1998.[1]
It is a human readableASCIIformat.[23]It consists of a stream of commands generating an ordered stream of graphics objects. The graphics objects can be positive or negative. Superimposed in the correct order they create the final image.
A Gerber file contains the complete description of a PCB layer image without requiring any external files. It has all the imaging operators needed for a PCB image. Any aperture shape can be defined. Planes and pads can be specified without the need topaint or vector-fillas in Standard Gerber. (However some implementations still use painting, problematic for the users of those files.)[24]
Released in February 2014, Gerber X2 adds additional metadata to the image.[25]Attributes allow addingmetadatato a Gerber file. Attributes are akin to labels providing information associated with image files, or features within them. Examples of metadata conveyed by attributes are:
- The function of the file. Is the file the top solder mask, or the bottom copper layer, etc.?
- The part represented by the file. Does it represent a single PCB, an array, a coupon?
- The function of a pad. Is the flash an SMD pad, or a via pad, or a fiducial, etc.
For more information about attributes see X2 FAQ or intro video in the external links.[1][26][27][28][8]
In 2020, Gerber X3 was introduced.
Fabrication documentation such as finish, overall thickness and materials is specified in a separate Gerber Job File.[1][22]
An example of a Gerber file:
G04Short version a file taken from the Example Job 1, created by Filip Vermeire, Ucamco*
%TF.FileFunction,Copper,Bot,L4*%
%TF.FilePolarity,Positive*%
%TF.Part,Single*%
%FSLAX36Y36*%
%MOMM*%
%TA.AperFunction,Conductor*%
%ADD10C,0.15000*%
%TA.AperFunction,ViaPad*%
%ADD11C,0.75000*%
%TA.AperFunction,ComponentPad*%
%ADD12C,1.60000*%
%ADD13C,1.70000*%
G01*
G75*
%LPD*%
D10*
X76649990Y36899980D02*
X83949950D01*
X84399990Y37349990D01*
X93699990D01*
D11*
X76649990Y36899985D03*
X83599990Y18749980D03*
X98829985Y36504980D03*
D12*
X460298855Y784148855D03*
D13*
X107299765Y20629885D03*
X109839765D03*
X112379765D03*
M02*
The format specification is published at the official website.[1][12]
Standard Gerber (revoked)
[edit]Standard Gerber wasrevokedin 2014. It was already obsolete after the introduction of the much more capable Extended Gerber in 1998.[10][11]
Standard Gerber was anumerical control(NC) format designed by Gerber Systems Corp to drive their vector photo plotters for the PCB industry in the 1960s and 1970s. It was a subset of theElectronic Industries AssociationRS-274-Dspecification, a format to drive mechanical NC machines in a wide range of industries.[29]It was widely used to drive vector plotters. Standard Gerber was a simple ASCII format consisting of commands and XY coordinates.[30]An example:
D11*
X1785250Y2173980D02*
X1796650Y2177730D01*
X1785250Y2181480D01*
X1796650Y2184580D01*
D12*
X3421095Y1407208D03*
X1785250Y2173980D03*
M02*
A Standard Gerber is an NC standard but not an image description standard: essential image information such the coordinate unit and theaperturesdefinitions are not standardized. (Apertures are the basic shapes, similar to fonts in a PDF file.) They are described in a free-format sidecar text file intended for human reading, called anaperture fileor awheel file.There are no standards for wheel files. The sender and receiver have to agree on their meaning case-by-case.[1][30]
Standard Gerber supports only the simple imaging operators that a vector plotter is capable of - drawing tracks and flashing apertures. This is insufficient for efficient PCB fabrication data. Copper pours must be created bypainting(akastrokingorvector-filling) them with a vast number of tracks. All but the simplest pads are also painted because of the cost creating a corresponding physical aperture. Painting creates the intended image but results in very large files that take long time to process and need error-prone manual work in CAM.[17][24][31][32]
Standard Gerber was intended for a manual workflow using an NC machine called a vector photoplotter: the plotter operator loads the paper tape with the Standard Gerber file on the plotter, manually sets the coordinate unit on the machine console and mounts the aperture wheel described in the accompanying wheel file. (An aperture wheel is a rotating disk on which physical apertures are mounted, and by rotating the wheel the photoplotter selects the aperture to use.) Standard Gerber is not suitable for automated data transfer between PCB designers and manufacturers.
History
[edit]The Gerber file format is named afterJoseph Gerber,an entrepreneur and inventor who pioneered vector photoplotters.[33][34]
In 1980 Gerber Systems Corp.[34]published the first edition of theGerber Format: a subset of EIA RS-274-D; plot data format reference book,[35]a subset of EIA RS-274-D it used to drive their line of vector photoplotters. This format became known as Standard Gerber and was adopted by several other photoplotter vendors. Standard Gerber became the de facto standard image format for PCB fabrication.
In 1991 with the availability of the more capable raster photoplotters, the Gerber format was extended with polygon areas and "mass parameters". These allow the user to dynamically define apertures of different shapes and sizes, as well as defining polygon area fills without the need for "painting". It became a superset of RS-274-D standard Gerber. The impetus to develop mass parameters was provided by AT&T.[36]This created a family of input formats, each one dedicated to a specific Gerber plotter model.
In April 1998 Gerber Systems Corp. was taken over by Barco ETS,Barco's PCB division, which is now called Ucamco.[34][37]In September 1998 Ucamco published theRS-274X Format User's Guide,a specification which unified the family of formats to a single image format, revoking a large number of model-specific constructs. The format became known as Extended Gerber or GerberX. Extended Gerber quickly superseded Standard Gerber as thede factostandard for PCB image data. This became the de facto image standard for the PCB industry. It is sometimes called "the backbone of the electronics industry".
In the course of 2012 the format was comprehensively reviewed inthe great reform.A representative library of 10,000 files from all over the world was investigated to establish current practice. Constructs that were rarely or never used were deprecated. Constructs with unclear interpretations were clarified. The specification document was re-organized and its quality improved. This resulted in revision I1 to I4 of the specification, published from December 2012 on. The result was a simple, but powerful format, focused on the current needs of the PCB industry. This version of the Gerber format was developed by Karel Tavernier and Rik Breemeersch from Ucamco.[1][9][27][38][39]
In June 2013 Ucamco published a proposal to add three new commands to the Gerber format which allow inclusion of image attributes conveying metadata attached to the image and its components. It invited feedback from the Gerber users before committing these ideas to a firm specification. This process resulted in revision J1 in February 2014, updated with further revisions until revision 2015.07. Including metadata adds intelligence to the format. It converts a mere image description format to a full-fledged PCB data transfer format. This is calledthe second extensionand results what is known asGerber X2,Gerber X1 being the pure image format. Gerber X2 is fully backward compatible with X1, as the attributes do not affect the image. Gerber X2 was developed by Karel Tavernier, Ludek Brukner and Thomas Weyn.[1][40][41][42]
In September 2014 Ucamco revoked Standard Gerber.[1][43]
In August 2015 Ucamco published a draft specification adding nested step and repeat and block apertures to make panel descriptions more efficient, calling for comments from the user community.[44]The final specification was published in November 2016 after substantial input. This revision was developed by Karel Tavernier and Rik Breemeersch. Shortly afterwards the Cuprum Gerber viewer developed the first implementation.[45]
In July 2016 Ucamco published a draft specification to include netlist information in Gerber, calling for input from the user community.[46]After a number of revisions of the draft triggered by input from users, the draft was finalized on 2 October 2016.[1][19]
In March 2017 Ucamco published a draft specification to include fabrication documentation in Gerber calling for input from the user community.[47][48]There was a lively discussion, the draft went through seven public revisions before being finalized early April 2018.[22]
In June 2017 a free onlineReference Gerber Viewer[13]was made available by Ucamco as a complement to the specification. It is updated with new functionality from time to time.[49]
In October 2019 Ucamco published a draft specification to include component information in Gerber data, calling for comments from the user community. The proposal re-uses existing syntax and hence is backward compatible. Although it does not introduce new syntax it extends Gerber into a new domain, and the name Gerber X3 is suggested. The draft specification was developed by Karel Tavernier.[50][51][52]
Other PCB formats
[edit]Over the years there have been several attempts to replace Gerber by formats containing more information than just the layer image, e.g. netlist or component information.[34]None of these attempts have been widely accepted within the electronics manufacturing industry, probably because the formats are complex.[10]Gerber remains the most widely used data transfer format.[2][3][4]
- IPC-D-350 CPrinted Board Description in Digital Format,1989. This specification was standardized asIEC61182–1 in 1992 and withdrawn in 2001. Rarely used.
- DXFSometimes used. These are typically constructed as drawings, PCB objects (tracks and pads) are lost, which makes them very difficult to use in CAM.
- PDFSometimes used.
- DPF Format, now at v7, a CAM format from Ucamco. Sometimes used.
- TheElectronic Design Interchange Format,EDIF.Rarely used.
- ODB++,a CAM format from Mentor Graphics. Sometimes used, the prevalent non-Gerber format.[53]
- GenCAM:IPC-2511AGeneric Requirements for Implementation of Product Manufacturing Description Data and Transfer Methodology,2000. Rarely used.
- GenCAM:IPC-2511BGeneric Requirements for Implementation of Product Manufacturing Description Data and Transfer XML Schema Methodology,2002. Rarely used.
- Offspring:IPC-2581Generic Requirements for Printed Board Assembly Products Manufacturing Description Data and Transfer Methodology,2004. Rarely used, but receiving more attention recently.[54]
- STEP AP210:ISO 10303-210,Electronic assembly interconnect and packaging design,first edition 2001, second edition 2008 (to be published)
References
[edit]- ^abcdefghijklmno"Official website".
- ^abWilliams, Al (2004).Build your own printed circuit board.McGraw-Hill Professional.p. 121.ISBN978-0-07-142783-8.Retrieved2011-04-02.
- ^abSchroeder, Chris (1998).Printed circuit board design using AutoCAD.Newnes. p. 283.ISBN978-0-7506-9834-4.Retrieved2011-04-02.
- ^abBlackwell, Glenn R. (2000). "5.18".The electronic packaging handbook.CRC Press.ISBN978-0-8493-8591-9.Retrieved2011-04-02.
- ^ab"Ucamco - Downloads".Ucamco.Retrieved2017-04-11.
- ^ab"EDA: Where Electronics Begins".edac.org.Electronic Design Automation Consortium.Archived fromthe originalon 2012-04-06.Retrieved2011-12-18.
- ^Josifovic, I.; Popovic-Gerber, J.; Ferreira, J. A. (2009-05-01). "A PCB system integration concept for power electronics".2009 IEEE 6th International Power Electronics and Motion Control Conference.pp. 756–762.doi:10.1109/IPEMC.2009.5157486.ISBN978-1-4244-3556-2.S2CID23256387.
- ^ab"Gerber version 2 FAQ"(PDF).ucamco.Ucamco.Retrieved2014-12-21.
- ^ab"Ucamco Offers Latest Gerber Format Specification".ucamco.com.2013-02-19. Archived fromthe originalon 2014-12-15.Retrieved2013-02-15.
- ^abcd"Protel Layer and Gerber File Extension Key".
- ^abTavernier, Karel."Open Letter on Standard Gerber".Ucamco.Ucamco.Retrieved2014-07-07.
- ^ab"Gerber Format Specification"(PDF).Archived fromthe original(PDF)on 2020-08-01.Retrieved2020-09-04.
- ^ab"Reference Gerber Viewer".
- ^"Creating Gerber Files and Excellon Files with EAGLE 3.55".www.wellpcb.com.Retrieved2017-04-11.
- ^"PCB Layout Data".Eurocircuits.Retrieved2011-11-26.
- ^"Altium TechDocs - Online Documentation for Altium Products".Archived fromthe originalon 2019-09-14.Retrieved2019-12-27.
- ^abTavernier, Karel."PCB Fabrication Data - A Guide".Ucamco.Retrieved2015-01-08.
- ^"10 rules for better data".Eurocircuits.Retrieved2016-01-06.
- ^ab"Ucamco's Gerber Netlist Goes Live with KiCad".PCB007. 2016-11-09.Retrieved2016-11-12.
- ^"Using IPC-D-356 for Importing Net and Node".Retrieved2011-10-16.
- ^IPC-2524 PWB Fabrication Data Quality Rating System,February 1999
- ^abc"Ucamco Releases Specification for Fabrication Documentation in Gerber".PCB007.Retrieved2018-05-02.
- ^Sinclair, Ian Robertson; Dunton, John (2007-01-11).Practical electronics handbook.Elsevier.p. 543.ISBN978-0-7506-8071-4.Retrieved2011-04-02.
- ^ab"RS-274X Painting Considered Harmful.pdf"(PDF).Ucamco.June 2011.Retrieved2012-03-05.
- ^"Gerber X2: the new paradigm in CAD-to-CAM communication - Ucamco - News".
- ^"Gerber version 2 intro movie".Ucamco.Archivedfrom the original on 2021-12-22.Retrieved2014-11-20.
- ^abTavernier, Karel."A proposal to extend the Gerber format with attributes".Ucamco.Ucamco.Retrieved2013-07-12.
- ^"Gerber X2: New Paradigm in CAD-to-CAM Communication".Ucamco.PCB007. Archived fromthe originalon 2014-12-13.Retrieved2014-06-13.
- ^EIA Standard RS-274-D Interchangeable Variable Block Data Format for Positioning, Contouring, and Contouroring/Positioning Numerically Controlled Machines.Electronic Industries Association, Engineering Department, 2001 Eye Street, NW, Washington, D.C. 200006. February 1979.
- ^abDiBartolomeo, Steve (1991)."D-codes, Apertures and Gerber Files".Artwork Conversion Software, Inc.Retrieved2011-10-16.
- ^Tavernier, Karel (November 2013)."Painting Pads"(PDF).PCB Design Magazine.Retrieved2013-11-23.
- ^"PCB Layout Data".Eurocircuits. Archived fromthe originalon 2012-01-23.Retrieved2011-11-26.
- ^Gerber, David J. (2015).The Inventor's Dilemma.Yale University Press.ISBN978-0-300-12350-0.
- ^abcdBuetow, Mike (2011-06-28)."A Short History of Electronic Data Formats".Printed Circuit Design and Fab magazine.Retrieved2011-12-18.
{{cite journal}}
:Cite journal requires|journal=
(help) - ^Google book entry onGerber format: a subset of EIA RS-274-D; plot data format reference book.1991.
- ^Coombs, Clyde F. (2007-09-02).Printed circuits handbook.McGraw-Hill Professional.p. 18.11.ISBN978-0-07-146734-6.Retrieved2011-04-03.
- ^Tanghe, Jean-Pierre."Barco acquires Gerber Systems Corp".Barco.com.Barco NV.Retrieved2011-11-26.
- ^"Ucamco's Revised Gerber Format Specification Now Online".ucamco.com.2013-02-19. Archived fromthe originalon 2014-12-15.Retrieved2013-02-15.
- ^"Ucamco Enhances Gerber File Format Specification".ucamco.com.2013-11-22. Archived fromthe originalon 2014-12-15.Retrieved2013-11-22.
- ^"Gerber Grows Attributes".Printed Circuit Design & Fab. August 2013.Retrieved2012-09-05.
- ^"Gerber X2, the-new-paradigm in CAD to CAM communication".Ucamco. 2014-06-13.Retrieved2015-07-19.
- ^"Ucamco's Gerber Now Even Clearer".PCB007. 2015-07-17.Retrieved2015-07-19.
- ^"Standard Gerber declared obsolete".Ucamco. May 2014.Retrieved2015-07-19.
- ^Tavernier, Karel (August 2015)."Gerber Nested Step and Repeat - Draft".Ucamco.Retrieved2015-09-19.
- ^"Cuprum implements new Gerber tools".Printed Circuit Design and Fabrication. 22 November 2016.Retrieved15 March2021.
- ^Tavernier, Karel."Gerber Component and Netlist - Draft"(PDF).Ucamco.Ucamco.Retrieved2016-08-11.
- ^"Ucamco Seeks Comments on Including Fab Documentation in Gerber".PCB Design. 2017-03-08.Retrieved2017-03-19.
- ^Tavernier, Karel."A proposal to include fabrication documentation in Gerber - Draft"(PDF).Ucamco.Ucamco.Retrieved2017-03-19.
- ^"Ucamco Provides Free Reference File Viewer for Gerber Users".PCB Design. 2017-07-19.Retrieved2017-09-22.
- ^"Ucamco Extends Gerber into Assembly".PCB Design. 2019-11-07.Retrieved2019-11-18.
- ^"Towards Gerber X3".Ucamco. 2019-10-25.Retrieved2019-11-18.
- ^Karel Tavernier (2019-10-25)."Towards Gerber X3"(PDF).Ucamco.Retrieved2019-11-18.
- ^Santarini, Mike (2002-01-22)."ODB++ spec tapped for CAD-to-CAM data exchange".EE Times.Archived fromthe originalon 2013-01-22.Retrieved2011-09-29.
- ^IPC-2581 Panel: A Spirited Discussion on PCB Data Transfer Formats,Richard Goering, Cadence Design Systems blog, 2011-10-02
External links
[edit]- Gerber Documents- Ucamco
- Gerber File Viewer- Ucamco
- Free Gerber File Viewer Online- HQDFM