The Gerber File Format Specification

Total Page:16

File Type:pdf, Size:1020Kb

The Gerber File Format Specification The Gerber Format Specification A format developed by Ucamco Revision 2016.01 Table of Contents Preface ......................................................................................................................... 8 1 Introduction ............................................................................................................ 9 1.1 About this document .......................................................................................... 9 Scope and Target Audience ........................................................................ 9 Questions and Feedback ............................................................................ 9 References ................................................................................................. 9 1.2 Copyright and Intellectual Property .................................................................. 10 1.3 History of the Gerber File Format .................................................................... 11 Standard Gerber ....................................................................................... 11 Extended Gerber....................................................................................... 11 The Great Reform ..................................................................................... 11 The Second Extension .............................................................................. 12 Standard Gerber Revoked ........................................................................ 12 Further Clarification ................................................................................... 12 1.4 Record of Revisions ........................................................................................ 13 Revision 2016.01 ...................................................................................... 13 Revision 2015.10 ...................................................................................... 13 Revision 2015.07 ...................................................................................... 13 Revision 2015.06 ...................................................................................... 13 Revision J4 ............................................................................................... 14 Revision J3 ............................................................................................... 14 Revision J2 ............................................................................................... 14 Revision J1 ............................................................................................... 14 Revision I4 ................................................................................................ 14 Revision I3 .............................................................................................. 14 Revision I2 .............................................................................................. 14 Revision I1 .............................................................................................. 14 1.5 About Ucamco ................................................................................................. 16 2 Overview of the Gerber Format ........................................................................... 17 2.1 File Structure ................................................................................................... 17 2.2 Processing Gerber File .................................................................................... 18 2.3 Graphics Objects ............................................................................................. 20 2.4 Apertures ......................................................................................................... 21 2.5 Draw and Arc Objects ...................................................................................... 22 2.6 Contours .......................................................................................................... 23 2.7 Operation Codes ............................................................................................. 24 2.8 Graphics State ................................................................................................. 25 Copyright Ucamco NV ii Having a question or remark about the spec? Please contact us at [email protected] 2.9 Dark and Clear Polarity ................................................................................... 28 2.10 Attributes ....................................................................................................... 29 2.11 Processing Gerber File with Attributes .......................................................... 30 2.12 Conformance ................................................................................................ 32 2.13 Example Files ............................................................................................... 33 Example: Two Square Boxes .................................................................. 33 Example: Use of Levels and Various Apertures ...................................... 34 Example: A Drill File ................................................................................ 38 2.14 Glossary ........................................................................................................ 41 3 Syntax ................................................................................................................... 45 3.1 Conventions for Syntax Rules.......................................................................... 45 3.2 File Extension, MIME Type and UTI ................................................................ 46 3.3 Character Set .................................................................................................. 47 3.4 Data Blocks ..................................................................................................... 48 3.5 Commands ...................................................................................................... 49 Commands Overview ................................................................................ 49 Function Code Commands ....................................................................... 51 Extended Code Commands ...................................................................... 52 3.6 Data Types ...................................................................................................... 54 Integers ..................................................................................................... 54 Decimals ................................................................................................... 54 Coordinate Number ................................................................................... 54 Hexadecimal Number................................................................................ 54 Names ...................................................................................................... 54 Strings ...................................................................................................... 54 4 Graphics ............................................................................................................... 56 4.1 Graphics Overview .......................................................................................... 56 4.2 Operations (D01/D02/D03) .............................................................................. 59 Coordinate Data Syntax ............................................................................ 60 D01 Command .......................................................................................... 61 D02 Command .......................................................................................... 62 D03 Command .......................................................................................... 62 Example .................................................................................................... 63 4.3 Current Aperture (Dnn) .................................................................................... 64 4.4 Linear Interpolation Mode (G01) ...................................................................... 65 G01 Command ......................................................................................... 65 D01 Command .......................................................................................... 65 4.5 Circular Interpolation (G02/G03) and Quadrant Modes (G74/G75) .................. 66 Circular Arc Overview ............................................................................... 66 Circular Arc Definition ............................................................................... 67 G02 Command ......................................................................................... 68 Copyright Ucamco NV iii Having a question or remark about the spec? Please contact us at [email protected] G03 Command ......................................................................................... 68 G74 Command ......................................................................................... 68 G75 Command ......................................................................................... 69 D01 Command .......................................................................................... 69 Example: Single Quadrant Mode .............................................................. 71 Example: Multi Quadrant Mode ................................................................. 72 Numerical Instability in Multi
Recommended publications
  • Release Notes: Desktop Edition
    Release Notes: Desktop Edition AutoVue 19.2c2: November 30, 2007 Installation • Please make sure you have AutoVue 19.2c1 installed before upgrading to AutoVue 19.2c2. Note: If you have an older version of AutoVue installed (e.g. AutoVue 19.2), please uninstall it before installing AutoVue 19.2c1 and upgrading to AutoVue 19.2c2. MCAD Formats • Added font substitution for missing native fonts: • CATIA 4 and CATIA 5 • Pro/ENGINEER • Unigraphics • Added support for Unigraphics NX5. • Performed bugs fixes for Unigraphics and CATIA 5. EDA Formats • Added font substitution for missing native fonts: • Altium Protel • OrCAD Layout • Cadence Allegro Layout • Cadence Allegro IPF • Cadence Allegro Extract • Mentor Board Station • Mentor PADS • Zuken CADSTAR • P-CAD • PDIF AEC Formats • Added font substitution for missing native fonts: • AutoCAD • MicroStation 7 and MicroStation 8 • Performed bug fixes for AutoCAD. Release Notes - AutoVue Desktop Edition - 1 - November 30, 2007 AutoVue 19.2c1: September 30, 2007 Packaging and Licensing • Introduced separate installers for the following product packages: • AutoVue Office • AutoVue 2D, AutoVue 2D Professional • AutoVue 3D Professional-SME, AutoVue 3D Advanced, AutoVue 3D Professional Advanced • AutoVue EDA Professional • AutoVue Electro-Mechanical Professional • AutoVue DEMO • Customers are no longer required to enter license keys to install and run the product. • To install 19.2c1, users are required to first uninstall 19.2. MCAD Formats • General bug fixes for CATIA 5 EDA Formats • Performed maintenance and bug fixes for Allegro files. General • Enabled interface for customized resource resolution DLL to give integrators more flexibility on how to locate external resources. Sample source code and DLL is located in the integrat\VisualC\reslocate directory.
    [Show full text]
  • The Gerber Guide (PCB Design Magazine) (Pdf)
    article The Gerber Guide by Karel Tavernier fabrication partners clearly and simply, using an uCaMCo unequivocal yet versatile language that enables you and them to get the very best out of your It is clearly possible to fabricate PCBs from the design data. Each month we will look at a dif- fabrication data sets currently being used—it’s ferent aspect of the design-to-fabrication data being done innumerable times every day all over transfer process. the globe. But is it being done in an efficient, re- liable, automated and standardized manner? At This column has been excerpted from the guide, this moment in time, the honest answer is no, PCB Fabrication Data: Design-to-Fabrication Data because there is plenty of room for improvement Transfer. in the way in which PCB fabrication data is cur- rently transferred from design to fabrication. Chapter 1: How PCB Design Data This is not about the format, which for over is used by the Fabricator 90% of the world’s PCB production is Gerber: In this first article of the series, we’ll be lo- There are very rarely problems with Gerber files oking at what happens to the designer’s data themselves. They allow images to be transferred once it reaches the fabricator. This is not just a without a hitch. In fact, the Gerber format is nice add-on, because for designers to construct part of the solution, given that it is the most re- truly valid PCB data sets, they must have a clear liable option in this field.
    [Show full text]
  • Importing and Exporting Designs
    Advanced Design System 2011.01 - Importing and Exporting Designs Advanced Design System 2011.01 Feburary 2011 Importing and Exporting Designs 1 Advanced Design System 2011.01 - Importing and Exporting Designs © Agilent Technologies, Inc. 2000-2011 5301 Stevens Creek Blvd., Santa Clara, CA 95052 USA No part of this documentation may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from Agilent Technologies, Inc. as governed by United States and international copyright laws. Acknowledgments Mentor Graphics is a trademark of Mentor Graphics Corporation in the U.S. and other countries. Mentor products and processes are registered trademarks of Mentor Graphics Corporation. * Calibre is a trademark of Mentor Graphics Corporation in the US and other countries. "Microsoft®, Windows®, MS Windows®, Windows NT®, Windows 2000® and Windows Internet Explorer® are U.S. registered trademarks of Microsoft Corporation. Pentium® is a U.S. registered trademark of Intel Corporation. PostScript® and Acrobat® are trademarks of Adobe Systems Incorporated. UNIX® is a registered trademark of the Open Group. Oracle and Java and registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. SystemC® is a registered trademark of Open SystemC Initiative, Inc. in the United States and other countries and is used with permission. MATLAB® is a U.S. registered trademark of The Math Works, Inc.. HiSIM2 source code, and all copyrights, trade secrets or other intellectual property rights in and to the source code in its entirety, is owned by Hiroshima University and STARC.
    [Show full text]
  • Manufacturing Data (NC Drill, Gerber, IPC Netlist, ODB++)
    A Parallel Systems Technical Note Manufacturing data (output files). Introduction To create an output package suitable for PCB Manufacturers you can create the files individually so that you have Gerber, NC drill and an IPC netlist or you can create one zipped file (called an ODB++) file which contains all the information required to manufacture a bare printed circuit board. You can also generate an IPC2581 which is a new file format that generates all the data in a single xml file that can be sent to fabricators, assemblers, test houses. This technical note describes how to generate all output files using PCB Editor required for bare board manufacture, either as separate files (RS274X Gerber, NC Drill and an IPC netlist), as one output file (ODB++ format) or using the IPC2581 export. NC Legend To generate the relevant NC Drill files using PCB Editor you need to do the following. If required you can create a drill table which will display the drill size, qty, type as specified in the Padstack defaults. To generate the drill table, use Manufacture > Create Drill table (OrCAD) or Manufacture > NC > Drill Legend (Allegro). The following GUI (default shown) gives the user the opportunity to define how the drill table will be displayed. Template File - Indicates the template to use to create the drill legend. Click the browse button to locate existing templates. Output Unit - Outputs the drill legend data in units that differ from those in the design. Library - Lets you view template files that are available via the NCDPATH variable that you set in User Preferences > Paths > Config.
    [Show full text]
  • Photoplotter FP 3000
    Photoplotter FP 3000 Instruction manual Note: Any inquiries related to photoplotter hardware or software should be addressed to an authorized distributor. Photoplotter software is subject to copyright. All the information here enclosed is subject to change due to constant innovation of the product. Date of the last change in this document: September 20, 2001. 1. Brief description: Photoplotter FP-3000 is a small, raster, low cost plotter which draws image on film by means of laser diode light. Film itself is fixed to the outer surface of rotating drum by means of masking tape. The source of laser diode light moves step by step along the rotating drum. Photoplotter is controlled by software installed on PC attached via its parallel port (PC is not a part of the photoplotter supply). An external, universal power unit is used to supply needed power (1x 110-240V/28V-2A for L model, 2 x 110-240V/24V-2.5A for XL model). There are two models of the photoplotter available – standard (drum diameter around 120mm) and XL (drum diameter around 150mm). The photoplotter software allows to read input files, to set output resolution and type of image (reverse, mirror, etc.) drawn on the film. When working with Gerber files, it is possible to check and modify used apertures (D-codes) and make simple film panelization for Gerber data and associated drill data. Viewing of Gerber files and conversion of various types of aparture files is possible in freeware program ViewMate (made by Lavenir), which is attached to the photoplotter software for your convenience (otherwise it may be downloaded from Lavenir‘s web page: www.lavenir.com).
    [Show full text]
  • Craftr Project WHITE PAPER
    CraftR Project WHITE PAPER LAST UPDATE: 29 JULY 2018 Summary • Introduction • Vision • Benefits • Features • Products Management • Reward System • Payment System & Versioning • IDE • Token Details • Distribution • Roadmap • Risk Matrix • Organization • Partners • Resources Types • Links SUMMARY Introduction The project was born to bring the e-commerce of creative assets to the Web 3.0 world through a decentralized platform, featuring token payments and storage of digital resources made available by freelancers. This initiative will let the customers to purchase their desired product through the CRAFTR payment system. The platform is targeted to freelancers and developers that want to get involved in a new form of global e- commerce – that is secure, smart and easy-to-use platform, and completely disrupting the way customers buy and sell digital goods. Vendors will offer their products made from their skills to customers that will be in search of the missing piece to proceed in a stuck point, or simply to learn about new skills. The marketplace will offer a wide range of assets like graphic design elements, sound design components or script files. The final product is targeted to be released in at least 5 months from the beginning of the process and we will find a way to encourage users to use our product through new interesting strategies. Within the web revolution, we want to contribute to its growth and this will take more foot in the near future. The blockchain is enabling us to bring old projects from Web 2.0 to the new world of 3.0 and restore their values. As long as the store is not released, interested parties will be able to participate in extra earnings through the Proof-Of-Stake.
    [Show full text]
  • Formats Support Document
    Synergis Software 18 South Fifth Street, Quakertown, PA 18951 +1 215.302.3000, 800.836.5440 www.SynergisSoftware.com Adept 2015 Viewer Formats ADEPT VIEWER: SUPPORTED FILE FORMATS The following tables summarize the hundreds of document types supported by Oracle AutoVue solutions. These include technical document types such as 2-D/3-D Computer Aided Design (CAD) and Electronic Design Automation (EDA), as well as business documents such as Office and Graphics. The tables are organized by the industries in which these document types are typically used. Each section is arranged by Vendor name, and by Product name or File format within each vendor section. For Desktop/Office, Graphics and Other document types which are used across all industries, please refer to these respective tables which appear after the Industry sections. Engineering & Construction / Utilities / Energy Vendor Product / File File Type Extensions Versions Adept Adept Format Viewer Pro-Viewer Autodesk 2014, 2013, 2012, 2011, Drawing, 2010, 2009, 2008, 2007, AutoCAD Drawing 2006, 2005, 2004, 2002, DWG, DXF Exchange 2000i, 2000, 14, 13c4, 13c3, 13c2, 13c1, 12 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, AutoCAD 3-D 2-D* DWG 2006, 2005, 2004, 2002, 2000i, 2000 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, Drawing, AutoCAD DXB 2006, 2005, 2004, 2002, Binary Exchange 2000i, 2000, 14, 13c4, 13c3, 13c2, 13c1, 12 2014, 2013,2012, 2011,2010, 2009, 2008, AutoCAD Mechanical Drawing DWG 2007, 2006, 2005, 2004 DX, 2-D 2004, 6(2002), 5(2000i), 4(2000) 2009, 2008, 2007, 2006,
    [Show full text]
  • NI Ultiboard: Exporting Gerber Files
    Exporting Gerber Files from NI Ultiboard Overview When the design of a printed circuit board (PCB) is complete, the design needs to be sent to a PCB manufacturer to be physically fabricated. Rather than send the entire design file, manufacturers require an industry standard file format to be used in their fabrication process. The standard format is called a Gerber file. NI Ultiboard exports to the Gerber format. Gerber files effectively break down a board into its various layers providing computer controlled fabrication machines the exact design patterns to be drawn upon the fabricated board. The Gerber file contains information (on a layer-by-layer basis) of the board outline, land patterns (footprints), drilled holes, vias, copper routes, and any other information that is required by the board manufacturer to create a board. This article dicusses how to export a Gerber file from NI Ultiboard, and investigate the various options in the export dialog box. Introduction Exporting a file refers to taking a CAD representation of a PCB (as can be seen in your Ultiboard file) and producing an output in a format that can be understood by the fabrication equipment at the board manufacturer. There are many different manufacturing techniques used to produce PCBs and Ultiboard can produce a wide variety of outputs to meet these needs. Export and Manufacturing It is important to talk to your production house and identify all the files and formatting information they need to support their manufacturing process. You can export a file in the following formats: • Gerber photoplotter 274X or 274D • DXF • 3D DXF • 3D IGES • IPC-D-356A Netlist • NC drill • SVG (Scalable Vector Graphics) You can also export text files that contain: • Board Statistics • Part Centroids • Bill of Materials You can also create reports on: • Copper Amounts • Test Points • Layer Stackup ©National Instruments.
    [Show full text]
  • Oracle Autovue Supported File Formats, Windows and Linux
    Oracle AutoVue 21.0.1.6 Supported File Formats Windows and Linux Platforms E84707-06 To remain competitive, organizations must effectively address the asset information management challenge. A framework that delivers engineering, asset, and product information throughout the entire enterprise, in a variety of applications and business processes, allows information to be synthesized and visually presented to all enterprise users—in the business context they need to make effective technical and business decisions. Oracle’s AutoVue Enterprise Visualization solutions are designed to meet all of your visualization requirements. By delivering a framework that enables asset and product information to flow freely throughout the enterprise, AutoVue allows you to capitalize on existing information assets contained within all your enterprise systems, vastly improving business processes and workforce productivity. This document lists all the file formats supported by the AutoVue 21.0.1 family of products on Windows and Linux platforms. July 2018 Supported File Formats 2 Contents Engineering & Construction / Energy / Utilities ............................................................................................. 3 Autodesk ............................................................................................................................................................................. 3 Bentley Systems ................................................................................................................................................................
    [Show full text]
  • Alternatives to Gerber Rs-274X
    ALTERNATIVES TO GERBER RS-274X Gerber RS-274X is the defacto standard format for printed circuit board design software. It’s utilized for fabricating about 90% of all PCBs designed today worldwide. Yet despite its popularity, Gerber comes with a number of practical limitations, which can lead to a variety of problems throughout the fabrication process. Fortunately, there are solutions. The open standards Gerber X2 and IPC-2581 were developed to address the problems inherent in RS-274X. What can X2 and IPC-2581 do that RS-274X can’t? Let’s take a closer look at these formats, in order to understand the advantages they provide over the industry standard. A BRIEF HISTORY OF GERBER FORMAT The Gerber file format was developed by the Gerber Systems Corporation (now Ucamco) in the 1960s. A leading provider of early Numerical Control (NC) photoplotter systems, they developed their first input format to support their vector-based photo plotters. The format was based on a subset of a numerical control standard of the day, known as EIA RS-274-D. In 1980, Gerber Systems published a specification titled “Gerber Format: a subset of EIA RS-274-D; plot data format reference book”. This format, commonly known as Gerber RS-274D, or Standard Gerber, was soon widely adopted and became the de-facto standard format for vector photo plotters. Figure 1 - Location of Templates, Libraries, and Examples. However, during the 1980s, vector photo plotters began being replaced by raster scan plotters. The newer bitmap based plotters required a completely different data format than that of the earlier, NC based vector photoplotters.
    [Show full text]
  • PCB Fabrication Data
    PCB Fabrication Data Design to Fabrication Data Transfer Karel Tavernier © V6 September 2015 1. Table of Contents 1. Table of Contents ......................................................................................... 2 2. Preface .......................................................................................................... 4 3. Synopsis ....................................................................................................... 5 4. What does a PCB fabricator do with CAD fabrication data? .................... 7 5. Coordinates: alignment, registration, mirroring ...................................... 10 6. The PCB profile (or outline) ....................................................................... 13 7. Output drill files in Gerber rather than in an NC format.......................... 17 8. The layer structure ..................................................................................... 20 9. Drill file structure ....................................................................................... 22 10. Junk, or the difference between data and drawings ......................... 25 11. Always include the netlist ................................................................... 27 12. Pads on copper layers......................................................................... 29 13. Drawings are no substitute for data ................................................... 32 14. Use Gerber format only for your image data ..................................... 33 15. Non-image data ...................................................................................
    [Show full text]
  • The Gerber File Format Specification Revision 2020.09.Docx
    . The Gerber Format Specification A format developed by Ucamco Revision 2020.09 Contents Contents ........................................................................................................................ 2 Preface ........................................................................................................................... 8 1 Introduction .............................................................................................................. 9 1.1 Scope and Target Audience ............................................................................... 9 1.2 Further Resources .............................................................................................. 9 1.3 Reference Gerber Viewer ................................................................................... 9 1.4 Questions ............................................................................................................ 9 1.5 Copyright and Intellectual Property ................................................................... 10 1.6 About Ucamco .................................................................................................. 10 2 Overview ................................................................................................................. 11 2.1 File Structure ..................................................................................................... 11 2.2 Apertures .......................................................................................................... 11 2.3
    [Show full text]