Gerber format

From Wikipedia, the free encyclopedia
  (Redirected from Gerber Format)
Jump to: navigation, search

The Gerber format is an open 2D bi-level vector image file format.[1] It is the de facto standard used by printed circuit board (PCB) industry software to describe the printed circuit board images: copper layers, solder mask, legend, drill holes, etc.[2][3][4]

The Gerber file format was originally developed by the Gerber Systems Corp., a division of Gerber Scientific, founded by Joseph Gerber.[5] The Gerber file format is now owned by Ucamco through its acquisition of Barco ETS, a company that previously acquired Gerber Systems Corp.[6][7] Ucamco brings out revisions of the specification from time to time.[8][9][10]

The Gerber file format specification is currently J1 from February 2014, extending the format with attributes conveying PCB meta-information such as the layer the file represents.[11] The specification can be freely downloaded from the Ucamco download page.[1]

There are two versions:

  • Extended Gerber, or RS-274X, is commonly used today.
  • Standard Gerber, or RS-274-D, is deprecated; it is superseded by RS-274X.[10][12]

The standard file extension is .GBR.[1]

Usage[edit]

One usage is the transfer of PCB design data from design to manufacturing. PCBs are typically designed on a specialized Electronic Design Automation (EDA) or a computer-aided design (CAD) system.[13] The CAD systems output Gerber files which are sent to PCB fabricators to transfer the design information. The fabricator loads them into his computer-aided manufacturing (CAM) system to prepare data for each step of the PCB production process. Gerber files are also used to transfer drilled hole information, however, for historic reasons Excellon files are used more often for this.[14] [7][15]

Another usage is to transfer a single image. An example is where a CAM system outputs a Gerber file to drive a photo plotter. Another is the use of Gerber viewers to visualize PCB layers.

Once the bare board is fabricated the Gerber file plays no role in the final assembly of components onto the board.

Exchanging PCB design information[edit]

A PCB design is described by a number of Gerber files and files in other formats. Typically, all these files are "zipped" into a single archive that is sent to the PCB fabrication shop.

A Gerber file defines a single conductor or mask layer image. It does not specify which PCB layer the file represents. A simple method to specify the file function is to express it clearly in the file name. Sometimes, however, cryptic file names are used and then documented in a free-format text file. This means that the manufacturer has to browse all the files in the data set to find the file function. Sometimes the function is even indicated by abusing the file extension - e.g. instead of using the standard extension .GBR using .BOT to express the file is the bottom layer; the manufacturer then cannot even know which format a file is in without opening it.[12]

Pads are sometimes represented by painting them with small strokes rather than by a single flash. This technique is known as painting or stroking. Painting produces the desired image but the location and shape of the pads is lost. The fabricator needs pad locations, e.g. to perform an electrical test. When the fabricator receives painted files he must laboriously recover the pads from the mass of painted strokes, a time-consuming and error-prone process. Use flashed pads rather than painted pads in design to fabrication data transfer. Some claim painting is somehow intrinsic to the Gerber format. This is a fallacy. Painting is simply poor implementation of the Gerber output.[16][17][18]

Drill data can be viewed as an image. Gerber files can therefore specify the drill data. However, for historic reasons, IPC-NC-349 or Excellon format is more often used for this although the use of another format often leads to registration problems.

A Gerber file cannot represent the netlist; the netlist is usually specified using the IPC standard IPC-D-356.[19]

Layer functions, the material stack up, components and meta-information are typically provided in informal text files or drawings.[20] Ucamco recommends using a subset of IPC-2581 for this non-image information.[12][21]

In December 2013 Ucamco published a draft specification extending the Gerber format with attributes transferring meta-information. Ucamco requests feedback from the PCB community before committing this to the specification.[11]

RS-274X extended Gerber[edit]

The RS-274X Gerber format, also known as extended Gerber or X-Gerber, is a 2D bi-level vector image description format.[1]

It is a human readable ASCII format.[22] It consists of a sequence of commands and coordinates. Its imaging primitives are line draw, flash (display) predefined shapes at a given location and outline fill. Positive and negative graphics objects can be combined.

An example of an extended Gerber file:

G04 Shorter version of Gerber X2 Example Job 1, created by Filip Vermeire, Ucamco*
%TF.FileFunction,Copper,L4*%
%TF.Part,Single*%
%FSLAX35Y35*%
%MOMM*%
%TA.AperFunction,Conductor,NotC*%
%ADD10C,0.15000*%
%TA.AperFunction,ViaPad*%
%ADD11C,0.75000*%
%TA.AperFunction,ComponentPad*%
%ADD12C,1.60000*%
%ADD13C,1.70000*%
%SRX1Y1I0.00000J0.00000*%
G75*
%LPD*%
D10*
X7664999Y3689998D02*
X8394995D01*
X8439999Y3734999D01*
X9369999D01*
D11*
X7664999Y3689998D03*
X8359999Y1874998D03*
X9882998Y3650498D03*
D12*
X4602988Y7841488D03*
D13*
X10729976Y2062988D03*
X10983976D03*
X11237976D03*
M02*

An RS-274X 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. Positive and negative objects can be combined. Planes and pads can be specified without the need to "paint" or "vector-fill".[16][17]

RS-274X is a complete, powerful and unambiguous standard to describe a PCB layer. It can be input and processed fully automatically. This makes it well suited for fast and secure data transfer and for reliable and automated workflows.

The format specification is published.[1]

RS-274-D standard Gerber[edit]

Standard Gerber is superseded by extended Gerber. It is a subset of the Electronic Industries Association RS-274-D specification,[23] a format to drive mechanical NC machines in a wide range of industries. Standard Gerber was used to drive vector photoplotters, which indeed were 2D NC machines. The term RS-274-D, without the qualifying "Gerber" postfix, is sometimes used informally for the standard Gerber subset rather than full RS-274-D.

RS-274-D standard Gerber is a simple ASCII format consisting of commands and XY coordinates.[24] An example:

D11*
X1785250Y2173980D02*
X1796650Y2177730D01*
X1785250Y2181480D01*
X1796650Y2184580D01*
D12*
X3421095Y1407208D03*
X1785250Y2173980D03*
M02*

Standard Gerber was designed in the 1960s and 1970s to drive numerical controlled machines such as vector photoplotters, machines now all replaced by raster-photoplotters. Standard Gerber was well-suited to drive vector plotters but was constrained by the technology then available. It was designed for a manual workflow. It is not suitable for fully automated data transfer between PCB designers and manufacturers.

A Standard Gerber file on its own is not an image description because it does not contain all information: the coordinate unit and the definitions of the apertures are not defined in the RS-274-D file. (Apertures are the basic shapes, similar to fonts in a PDF file.) The coordinate units set manually by the operator of the plotter. They were described in a free-format text file, called an aperture file or a wheel file, intended for human reading. It was called a wheel file because the apertures were mounted on a rotating wheel and the operator defined the apertures by selecting a wheel and mounting it on the plotter. There are no standards for wheel files. The designer and the plotter operator had to agree on these case-by-case. Therefore standard Gerber is an NC standard but not an image definition standard.[1][24]

Standard Gerber supports only the few simple imaging operators supported by vector plotters. To work around this limitation all but the simplest shapes were created by stroking the shape with a large number of small vectors. This method is known as stroking, painting of vector-fill. This does create the desired image, but such file are very hard to work with in PCB CAM because the original shape is lost.[16]

RS-274-D has been deprecated by Ucamco.[12]

History[edit]

  • On 27-Aug-1980 the first edition of the Gerber Format: a subset of EIA RS-274-D; plot data format reference book[25] was published by Gerber Systems Corporation. Gerber Scientific Corporation used a subset of EIA RS-274-D to drive their line of photoplotters. At this time the photoplotter had a limited set of fixed apertures of different shapes (typically round, rectangular and a few others) and in different sizes. An aperture could be exposed at a specific coordinate using a “flash” aperture, or the head could be moved from one coordinate to another with the shutter open to generate line or circular arc segments using a “draw” aperture. There was no uniform position for the apertures. Each was a small cut-out in a glass or film substrate. Before a design could be plotted the plotter operator needed a set of instructions from the designer (the aperture list) to tell him where to install each aperture before running the plot. The machine had a certain number of available aperture position numbers that were not consecutive, and usually not all were used for any given board plot. The person generating the plot file was responsible for ensuring that the aperture list used positions that were actually available and matched the plot file.
  • In 1986 the Gerber format was extended to support apertures with variable sizes to produce rectangles of arbitrary sizes within a given range and tapered lines. This functionality is not in practical use any more.
  • In the 1980s the Gerber format was adopted by several other photoplotter vendors and also CAM systems for PCB manufacturing. It had by now become the de facto standard.
  • On 26-Apr-1991 with the availability of raster scan capability the Gerber format was extended for polygon areas and Extended Mass Parameters. It becomes a superset of RS-274-D standard Gerber. 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". The impetus to develop the Extended Mass Parameters was provided by AT&T.[26]
  • On 16-Aug-1994 the last edition of the Gerber Format Guide was published by Gerber Systems Corporation.
  • In April 1998 Gerber Systems Corporation was taken over by and integrated in Barco, Belgium. Barco's PCB division is now called Ucamco (former Barco ETS).
  • On 21-Sep-1998 the RS-274X Format User's Guide was published by Barco - Gerber Systems Corporation.
  • In February 2010 the Gerber Format Specification was updated to revision F.
  • In December 2010 the Gerber Format Specification was updated to revision G.[8]
  • In January 2012 the Gerber Format Specification was updated to revision H.[9]
  • In February 2013 the Gerber Format Specification was updated to revision I1.[10]
  • In April 2013 the Gerber Format Specification was updated to revision I2.[27]
  • In June 2013 the Gerber Format Specification was updated to revision I3.
  • In June 2013 a proposal to extend the Gerber format with attributes is published.[11]
  • In November 2013 the Gerber Format Specification was updated to revision I4.[28]

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

  • IPC-D-350 C Printed Board Description in Digital Format, 1989. This specification was standardized as IEC 61182-1 in 1992 and withdrawn in 2001. Rarely, if ever, used.
  • DXF Sometimes used. These are typically constructed as drawings, PCB objects (tracks and pads) are lost, which makes them very difficult to use in CAM.
  • PDF Rarely used. Very impractical to work with because PCB objects (tracks and pads) are lost.
  • DPF Format, now at v7, a CAM format from Ucamco. Sometimes used.
  • The Electronic Design Interchange Format, EDIF. Rarely, if ever, used.
  • ODB++, a CAM format from Mentor Graphics. Sometimes used, the prevalent non-Gerber format.[29]
  • GenCAM: IPC-2511A Generic Requirements for Implementation of Product Manufacturing Description Data and Transfer Methodology, 2000. Rarely, if ever, used.
  • GenCAM: IPC-2511B Generic Requirements for Implementation of Product Manufacturing Description Data and Transfer XML Schema Methodology, 2002. Rarely, if ever, used.
  • Offspring: IPC-2581 Generic Requirements for Printed Board Assembly Products Manufacturing Description Data and Transfer Methodology, 2004. Rarely, if ever, used, but receiving more attention recently.[30]
  • STEP AP210: ISO 10303-210, Electronic assembly interconnect and packaging design, first edition 2001, second edition 2008 (to be published)
  • Fujiko: JPCA-EB02,[31] based on work by Prof. Tomokage of Fukuoka University. A new standard in Japan. Rarely, if ever used.[citation needed]

References[edit]

  1. ^ a b c d e f "Gerber File Format Specification.pdf". Ucamco. February 2013. Retrieved 21 December 2012. 
  2. ^ a b Williams, Al (2004). Build your own printed circuit board. McGraw-Hill Professional. p. 121. ISBN 978-0-07-142783-8. Retrieved April 2, 2011. 
  3. ^ a b Schroeder, Chris (1998). Printed circuit board design using AutoCAD. Newnes. p. 283. ISBN 978-0-7506-9834-4. Retrieved April 2, 2011. 
  4. ^ a b Blackwell, Glenn R. (2000). The electronic packaging handbook. 5.18: CRC Press. ISBN 978-0-8493-8591-9. Retrieved April 2, 2011. 
  5. ^ "Gerber Scientific Instrument Company Records, 1911-1998". 
  6. ^ Tanghe, Jean-Pierre. "Barco acquires Gerber Systems Corp". Barco.com. Barco NV. Retrieved 26 November 2011. 
  7. ^ a b c Mike Buetow (28 June 2011). A Short History of Electronic Data Formats. Printed Circuit Design and Fab magazine. Retrieved December 18, 2011. 
  8. ^ a b "Ucamco announce a revision of the industry standard RS-274X Format Specification". ucamco.com. December 9, 2010. Retrieved February 15, 2013. 
  9. ^ a b "New Gerber Format Specification free at www.ucamco.com". ucamco.com. January 27, 2012. Retrieved February 15, 2013. 
  10. ^ a b c "Ucamco Offers Latest Gerber Format Specification". ucamco.com. February 19, 2013. Retrieved February 15, 2013. 
  11. ^ a b c "Gerber Grows Attributes". Printed Circuit Design & Fab. August 2013. Retrieved 5 September 2012. 
  12. ^ a b c d e Karel Tavernier (2011/2Q). "Improving CAD to CAM Data Transfer: A Practical Approach". Journal of the HKPCA (40). Retrieved 2 October 2011. "Use of RS-274-D: Do not use it." 
  13. ^ "EDA: Where Electronics Begins". edac.org. Electronic Design Automation Consortium. Retrieved December 18, 2011. 
  14. ^ "PCBexpress Printed Circuit Board Tutorial". PCBexpress.com. Retrieved December 18, 2011. 
  15. ^ "PCB Layout Data". Eurocircuits. Retrieved 26 November 2011. 
  16. ^ a b c "RS-274X Painting Considered Harmful.pdf". Ucamco. June 2011. Retrieved 5 March 2012. 
  17. ^ a b Karel Tavernier (November 2013). "Painting Pads". PCB Design Magazine (November 2013). Retrieved 23 November 2013. 
  18. ^ "PCB Layout Data". Eurocircuits. Retrieved 26 November 2011. 
  19. ^ "Using IPC-D-356 for Importing Net and Node". Retrieved 16 October 2011. 
  20. ^ IPC-2524 PWB Fabrication Data Quality Rating System, February 1999.
  21. ^ Karel Tavernier (January 2013). "IPC-2581 meets Gerber". PCB Design Magazine (January 2013). Retrieved 19 February 2013. 
  22. ^ Sinclair, Ian Robertson; Dunton, John (January 11, 2007). Practical electronics handbook. Elsevier. p. 543. ISBN 978-0-7506-8071-4. Retrieved April 2, 2011. 
  23. ^ EIA Standard RS-274-D Interchangeable Variable Block Data Format for Positioning, Contouring, and Contouring/Positioning Numerically Controlled Machines. Electronic Industries Association, Engineering Department, 2001 Eye Street, NW, Washington, D.C. 200006. February 1979. 
  24. ^ a b Steve DiBartolomeo (1991). "D-codes, Apertures and Gerber Files". Artwork Conversion Software, Inc. Retrieved 16 October 2011. 
  25. ^ Google book entry on Gerber format: a subset of EIA RS-274-D ; plot data format reference book. 
  26. ^ Coombs, Clyde F. (September 2, 2007). Printed circuits handbook. McGraw-Hill Professional. p. 18.11. ISBN 978-0-07-146734-6. Retrieved April 3, 2011. 
  27. ^ "Ucamco's Revised Gerber Format Specification Now Online". ucamco.com. February 19, 2013. Retrieved February 15, 2013. 
  28. ^ "Ucamco Enhances Gerber File Format Specification". ucamco.com. November 22, 2013. Retrieved November 22, 2013. 
  29. ^ Mike Santarini (1/22/2002 2:33 PM EST). "ODB++ spec tapped for CAD-to-CAM data exchange". EE Times. Retrieved 29 September 2011. 
  30. ^ IPC-2581 Panel: A Spirited Discussion on PCB Data Transfer Formats, Richard Goering, Cadence Design Systems blog, October 2, 2011
  31. ^ "JPCA Standards". 

External links[edit]