Gerber format explained

Gerber format
Genre:Image file format
Mime:application/vnd.gerber
Uniform Type:com.ucamco.gerber.image
Owner:Ucamco
Latest Release Version:Revision 2023.08
Standard:Gerber Format Specification
Url:https://www.ucamco.com/en/gerber

The Gerber format is an open, ASCII, vector format for printed circuit board (PCB) designs.[1] It is the de facto standard used 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 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 specialized electronic design automation (EDA) or a computer-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 as photoplotters, legend printers, direct imagers or automated 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 the stencil and place and bond the components.[7]

There are two major generations of Gerber format:

The official website contains the specification,[10] test files, notes and the Reference Gerber Viewer[11] to support users and especially developers of Gerber software.

PCB fabrication data

PCBs are designed on a specialized electronic design automation (EDA) or a computer-aided design (CAD) system.[6] The CAD systems then outputs PCB fabrication data to 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 in NC formats although Gerber files are often of better quality.)[12] 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 a computer-aided manufacturing (CAM) system to prepare data for each step of the PCB production process.[13]

The .FileFunction attribute is the standardized method to link each layer in the PCB with its corresponding Gerber file in the fabrication data.[1]

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.[8] [14] 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.[15]

The CAD netlist can be embedded in the Gerber files.[1] [16] However, for historic reasons, netlists often are described in a separate file in IPC-D-356A, an electrical test format.[17]

The material stack up, components and finishes are typically provided in informal text files or drawings. In 2018 Ucamco has published a specification for an extension of the Gerber format to cover this fabrication documentation.

Extended Gerber

RS-274X, extended Gerber or X-Gerber, was originally released in September 1998.[1]

It is a human readable ASCII format.[18] 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 to paint or vector-fill as in Standard Gerber. (However some implementations still use painting, problematic for the users of those files.)[19]

Released in February 2014, Gerber X2 adds additional metadata to the image.[20] Attributes allow adding metadata to 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:

For more information about attributes see X2 FAQ or intro video in the external links.[1] [21] [22] [23] [24]

In 2020, Gerber X3 was introduced.

Fabrication documentation such as finish, overall thickness and materials is specified in a separate Gerber Job File.[1] [25]

An example of a Gerber file:The format specification is published at the official website.[1] [10]

Standard Gerber (revoked)

Standard Gerber was revoked in 2014. It was already obsolete after the introduction of the much more capable Extended Gerber in 1998.[8] [9]

Standard Gerber was a numerical 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 the Electronic Industries Association RS-274-D specification, a format to drive mechanical NC machines in a wide range of industries.[26] It was widely used to drive vector plotters. Standard Gerber was a simple ASCII format consisting of commands and XY coordinates.[27] An example:A Standard Gerber is an NC standard but not an image description standard: essential image information such the coordinate unit and the apertures definitions 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 an aperture file or a wheel file. There are no standards for wheel files. The sender and receiver have to agree on their meaning case-by-case.[1] [27]

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 by painting (aka stroking or vector-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.[28] [19] [29] [30]

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

The Gerber file format is named after Joseph Gerber, an entrepreneur and inventor who pioneered vector photoplotters.[31] [32]

In 1980 Gerber Systems Corp.[32] published the first edition of the Gerber Format: a subset of EIA RS-274-D; plot data format reference book,[33] 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.<ref name="Coombs2007">Book: Coombs . Clyde F. . Printed circuits handbook . 2011-04-03 . 2007-09-02 . . 978-0-07-146734-6 . 18.11. 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.[32] [34] In September 1998 Ucamco published the RS-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 the de facto standard 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 in the 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] [35] [22] [36] [37]

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 called the second extension and results what is known as Gerber 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] [38] [39] [40]

In September 2014 Ucamco revoked Standard Gerber.[1] [41]

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.[42] 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.[43]

In July 2016 Ucamco published a draft specification to include netlist information in Gerber, calling for input from the user community.[44] After a number of revisions of the draft triggered by input from users, the draft was finalized on 2 October 2016.[1] [16]

In March 2017 Ucamco published a draft specification to include fabrication documentation in Gerber calling for input from the user community.[45] [46] There was a lively discussion, the draft went through seven public revisions before being finalized early April 2018.[25]

In June 2017 a free online Reference Gerber Viewer[11] was made available by Ucamco as a complement to the specification. It is updated with new functionality from time to time.[47]

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.[48] [49] [50]

Other PCB formats

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.[32] None of these attempts have been widely accepted within the electronics manufacturing industry, probably because the formats are complex.[8] Gerber remains the most widely used data transfer format.[2] [3] [4]

External links

Notes and References

  1. Web site: Official website.
  2. Book: Build your own printed circuit board . Williams . Al . . 2004 . 978-0-07-142783-8 . 121 . 2011-04-02.
  3. Book: Schroeder . Chris . Printed circuit board design using AutoCAD . 2011-04-02 . 1998 . Newnes . 978-0-7506-9834-4 . 283.
  4. Book: The electronic packaging handbook . Blackwell . Glenn R. . . 2000 . 978-0-8493-8591-9 . 5.18 . 2011-04-02.
  5. Web site: Ucamco - Downloads . Ucamco . 2017-04-11.
  6. Web site: EDA: Where Electronics Begins . edac.org . . 2011-12-18 . dead . https://web.archive.org/web/20120406144126/http://www.edac.org/Video/ElectronicsBegins/electronics_begins_en.jsp . 2012-04-06.
  7. Book: Josifovic . I. . Popovic-Gerber . J. . Ferreira . J. A. . 2009 IEEE 6th International Power Electronics and Motion Control Conference . A PCB system integration concept for power electronics . 2009-05-01 . 756–762 . 10.1109/IPEMC.2009.5157486. 978-1-4244-3556-2 . 23256387 .
  8. Web site: Protel Layer and Gerber File Extension Key.
  9. Web site: Open Letter on Standard Gerber . Karel . Tavernier . . . 2014-07-07.
  10. Web site: Gerber Format Specification . https://web.archive.org/web/20200801055645/https://www.ucamco.com/files/downloads/file/81/the_gerber_file_format_specification.pdf . 2020-08-01 . 2020-09-04 . dead.
  11. Web site: Reference Gerber Viewer.
  12. Web site: Creating Gerber Files and Excellon Files with EAGLE 3.55. www.wellpcb.com. 2017-04-11.
  13. Web site: PCB Layout Data . Eurocircuits . 2011-11-26.
  14. Web site: Altium TechDocs - Online Documentation for Altium Products . 2019-12-27 . https://web.archive.org/web/20190914073343/https://techdocs.altium.com/ . 2019-09-14 . dead .
  15. Web site: 10 rules for better data . Eurocircuits . 2016-01-06.
  16. Web site: Ucamco's Gerber Netlist Goes Live with KiCad . PCB007 . 2016-11-09 . 2016-11-12.
  17. Web site: Using IPC-D-356 for Importing Net and Node . 2011-10-16.
  18. Book: Sinclair . Ian Robertson . Dunton . John . Practical electronics handbook . 2011-04-02 . 2007-01-11 . . 978-0-7506-8071-4 . 543.
  19. Web site: RS-274X Painting Considered Harmful.pdf . . June 2011 . 2012-03-05.
  20. Web site: Gerber X2: the new paradigm in CAD-to-CAM communication - Ucamco - News.
  21. Web site: Gerber version 2 intro movie . https://ghostarchive.org/varchive/youtube/20211222/Z3favHrSwq4 . 2021-12-22 . live. . 2014-11-20.
  22. Web site: Karel . Tavernier . A proposal to extend the Gerber format with attributes . . . 2013-07-12.
  23. Web site: Gerber X2: New Paradigm in CAD-to-CAM Communication . . PCB007 . 2014-06-13 . https://web.archive.org/web/20141213021345/http://www.pcb007.com/pages/zone.cgi?a=101111 . 2014-12-13 . dead .
  24. Web site: Gerber version 2 FAQ . . . 2014-12-21.
  25. Web site: Ucamco Releases Specification for Fabrication Documentation in Gerber . PCB007 . 2018-05-02.
  26. Book: 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.
  27. Web site: D-codes, Apertures and Gerber Files . 1991 . Steve . DiBartolomeo . Artwork Conversion Software, Inc. . 2011-10-16.
  28. Web site: PCB Fabrication Data - A Guide . Karel . Tavernier . . 2015-01-08.
  29. Web site: Painting Pads . Karel . Tavernier . PCB Design Magazine . November 2013 . November 2013 . 2013-11-23.
  30. Web site: PCB Layout Data . Eurocircuits . 2011-11-26 . dead . https://web.archive.org/web/20120123162828/http://www.eurocircuits.com/index.php/technology-guidelines/pcb-layout-data/116-ten-rules-to-provide-perfect-data-for-pcb-production . 2012-01-23 .
  31. Book: Gerber . David J. . The Inventor's Dilemma . 2015 . Yale University Press . 978-0-300-12350-0.
  32. A Short History of Electronic Data Formats . Printed Circuit Design and Fab magazine . Mike . Buetow . 2011-06-28 . 2011-12-18.
  33. Book: Google book entry on Gerber format: a subset of EIA RS-274-D; plot data format reference book. 1991.
  34. Web site: Tanghe . Jean-Pierre . Barco acquires Gerber Systems Corp . Barco.com . Barco NV . 2011-11-26.
  35. Web site: Ucamco Offers Latest Gerber Format Specification . ucamco.com . 2013-02-19 . 2013-02-15 . https://web.archive.org/web/20141215071903/http://www.pcb007.com/pages/zone.cgi?a=90088&artpg=1&topic=0 . 2014-12-15 . dead .
  36. Web site: Ucamco's Revised Gerber Format Specification Now Online . ucamco.com . 2013-02-19 . 2013-02-15 . https://web.archive.org/web/20141215071906/http://www.pcb007.com/pages/zone.cgi?a=91322&artpg=1&topic=0 . 2014-12-15 . dead .
  37. Web site: Ucamco Enhances Gerber File Format Specification . ucamco.com . 2013-11-22 . 2013-11-22 . https://web.archive.org/web/20141215070028/http://www.pcb007.com/pages/zone.cgi?a=96295&artpg=1&topic=0 . 2014-12-15 . dead .
  38. Web site: Gerber Grows Attributes . Printed Circuit Design & Fab . August 2013 . 2012-09-05.
  39. Web site: Gerber X2, the-new-paradigm in CAD to CAM communication . Ucamco . 2014-06-13 . 2015-07-19.
  40. Web site: Ucamco's Gerber Now Even Clearer . PCB007 . 2015-07-17 . 2015-07-19.
  41. Web site: Standard Gerber declared obsolete . Ucamco . May 2014 . 2015-07-19.
  42. Web site: Karel . Tavernier . Gerber Nested Step and Repeat - Draft . . August 2015 . 2015-09-19.
  43. Web site: Cuprum implements new Gerber tools . Printed Circuit Design and Fabrication. 22 November 2016 . 15 March 2021.
  44. Web site: Gerber Component and Netlist - Draft . Karel . Tavernier . . . 2016-08-11.
  45. Web site: Ucamco Seeks Comments on Including Fab Documentation in Gerber . PCB Design . 2017-03-08 . 2017-03-19.
  46. Web site: A proposal to include fabrication documentation in Gerber - Draft . Karel . Tavernier . . . 2017-03-19.
  47. Web site: Ucamco Provides Free Reference File Viewer for Gerber Users . PCB Design . 2017-07-19 . 2017-09-22.
  48. Web site: Ucamco Extends Gerber into Assembly . PCB Design . 2019-11-07 . 2019-11-18.
  49. Web site: Towards Gerber X3 . Ucamco . 2019-10-25 . 2019-11-18.
  50. Web site: Towards Gerber X3 . Ucamco . Karel Tavernier . 2019-10-25 . 2019-11-18.
  51. Web site: ODB++ spec tapped for CAD-to-CAM data exchange . Mike . Santarini . 2002-01-22 . 2011-09-29 . . https://archive.today/20130122154623/http://www.eetimes.com/electronics-news/4042914/ODB--spec-tapped-for-CAD-to-CAM-data-exchange . 2013-01-22 . dead .
  52. http://www.cadence.com/Community/blogs/ii/archive/2011/10/02/ipc-2581-panel-a-spirited-discussion-on-pcb-data-transfer-formats.aspx IPC-2581 Panel: A Spirited Discussion on PCB Data Transfer Formats