The Gerber Layer Format Specification 2021.02

The Gerber Layer Format Specification 2021.02

. The Gerber Layer Format Specification A format developed by Ucamco Revision 2021.02 Contents Contents ........................................................................................................................ 2 Preface ........................................................................................................................... 7 1 Introduction .............................................................................................................. 8 1.1 Scope and Target Audience ................................................................................ 8 1.2 Further Resources .............................................................................................. 8 1.3 Reference Gerber Viewer ................................................................................... 8 1.4 Copyright and Intellectual Property ..................................................................... 9 2 Overview ................................................................................................................. 10 2.1 File Structure ..................................................................................................... 10 2.2 Apertures ........................................................................................................... 10 2.3 Graphical objects .............................................................................................. 11 2.4 Draws and Arcs ................................................................................................. 12 2.5 Operations (D01, D02, D03) ............................................................................. 13 2.6 Graphics State .................................................................................................. 14 2.7 Polarity .............................................................................................................. 16 2.8 Blocks ................................................................................................................ 17 2.9 Attributes ........................................................................................................... 17 2.10 Commands Overview ..................................................................................... 18 2.11 Processing a Gerber File ................................................................................ 19 2.12 Glossary .......................................................................................................... 21 2.13 Annotated Example Files ................................................................................ 24 Example: Two Square Boxes ................................................................... 24 Example: Polarities and Apertures ........................................................... 26 2.14 Conformance .................................................................................................. 30 3 Syntax ..................................................................................................................... 31 3.1 Character Set .................................................................................................... 31 3.2 Grammar Syntax ............................................................................................... 31 3.3 Commands ........................................................................................................ 33 3.4 Data Types ........................................................................................................ 35 Integers ...................................................................................................... 35 Decimals ..................................................................................................... 35 Strings ........................................................................................................ 35 Fields .......................................................................................................... 36 Names ........................................................................................................ 36 3.5 Full Grammar of the Gerber Format .................................................................. 37 Copyright Ucamco NV 2 Having a question or remark about the spec? Please contact us at [email protected] 3.6 File Extension, MIME Type and UTI ................................................................. 43 4 Graphics.................................................................................................................. 44 4.1 Comment (G04) ................................................................................................ 44 4.2 Coordinate Commands ..................................................................................... 45 Unit (MO) .................................................................................................... 45 Format Specification (FS) ........................................................................... 46 4.3 Aperture Definition (AD) .................................................................................... 47 AD Command ............................................................................................. 47 Zero-size Apertures .................................................................................... 48 Examples .................................................................................................... 48 4.4 Standard Aperture Templates ........................................................................... 49 Overview..................................................................................................... 49 Circle .......................................................................................................... 49 Rectangle ................................................................................................... 51 Obround ..................................................................................................... 52 Polygon ...................................................................................................... 53 Transparency of Holes ............................................................................... 54 4.5 Aperture Macro (AM) ......................................................................................... 55 Primitives .................................................................................................... 57 Exposure Parameter................................................................................... 66 Rotation Parameter .................................................................................... 67 Macro Variables and Expressions .............................................................. 68 Examples .................................................................................................... 69 4.6 Set Current Aperture (Dnn) ............................................................................... 73 4.7 Interpolation State Commands (G01,G02,G03,G75) ........................................ 74 Linear Interpolation (G01)........................................................................... 74 Circular Interpolation (G02, G03, G75) ....................................................... 75 4.8 Operations (D01/D02/D03) ............................................................................... 79 Overview..................................................................................................... 79 Interpolate (D01)......................................................................................... 81 Move (D02) ................................................................................................. 81 Flash (D03) ................................................................................................. 81 Example ..................................................................................................... 82 4.9 Aperture Transformations (LP, LM, LR, LS) ...................................................... 83 Overview..................................................................................................... 83 Load Polarity (LP) ....................................................................................... 85 Load Mirroring (LM) .................................................................................... 85 Load Rotation (LR) ..................................................................................... 85 Load Scaling (LS) ....................................................................................... 86 Examples .................................................................................................... 86 4.10 Region Statement (G36/G37) ......................................................................... 89 Region Overview ...................................................................................... 89 Region Statement Syntax ......................................................................... 90 Copyright Ucamco NV 3 Having a question or remark about the spec? Please contact us at [email protected] Valid Contours .......................................................................................... 90 Examples .................................................................................................. 92 Power and Ground Planes ..................................................................... 108 4.11 Block Aperture (AB) .....................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    203 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us