How To Generate The Gerber Files
How To Generate The Gerber Files
How To Generate The Gerber Files
Gerber files are the industry standard format for printed circuit board
layers, solder mask, silkscreen, drill data, and more. As a PCB designer,
layout off for production. This comprehensive guide will walk you through
different file types to setting up your layers correctly. With the right
layout data like images, coordinates, and commands. The files describe
solder mask, drill holes, etc. By separating the data into different files, PCB
fabrication process. This eliminates the need to rebuild the entire board
lines, arcs, and circles that make up tracks and outlines. This makes
Apertures – Apertures define the size and shape of the vector. They
loaded directly into PCB fabrication equipment without the need for
conversion or preprocessing. This avoids errors and keeps the data intact
Layer Types
stacked and bonded together. Gerber files are required to define the data
for each individual layer. Here are some of the most common layer types:
Copper Layers
The copper layers contain the conductive tracks, pads, and vias that make
up the circuit. There is often a top and bottom copper layer, and also inner
layers if using a multilayer board. Each copper layer has its own Gerber
file.
Solder mask is the protective coating that is applied over the copper to
prevent solder bridges. The solder mask layers are essentially negative
images that define the areas where solder mask should be absent (such as
over pads).
Silkscreen Layers
Drill Files
Drill files specify the locations and sizes of holes to be drilled in the PCB.
Assembly Drawings
Assembly files define pick and place data for population of components
on the bare PCB. This aids automated assembly and is optional for basic
fabrication.
Before you can generate proper Gerber files, the PCB project needs to be
Coordinate System
specifications:
Rotation – No rotation
Layer Stackup
The layer order and materials should follow the fabricator’s layer stackup
1. Top Silkscreen
3. Top Copper
5. Bottom Copper
7. Bottom Silkscreen
EDA tool.
Design Rules
Set your track widths, clearances, via sizes, etc. to comply with the
fabricator’s design rules for the selected PCB technology. This ensures the
layout is manufacturable.
Net Names
for power nets. Avoid changing net names mid-trace as this can confuse
fabrication data.
Output Generation
fabrication output files from your board layout. Select the appropriate
output profile that matches your board technology (e.g. “2 Layer FR-4”).
This will generate all required layer Gerber files along with drill, netlist and
Layer Checking
Thoroughly inspect each layer file to ensure the contents match the
misaligned layers, etc. Any errors can lead to costly fabrication mistakes.
File Naming
Give the output files clean, consistent names indicating the layer type and
order sequence:
TopSilkscreen.gbr
TopSolderMask.gbr
TopCopper.gbr
…
Zip/archive the complete set of Gerber files together for easier transfer.
Transferring to Manufacturer
Upload the Gerber archive to the PCB manufacturer through their website
portal or send via email. Wait for the files to be checked before proceeding
Follow these tips to avoid common mistakes and ensure your Gerber files
generate accurately:
Stay Organized – Keep your PCB layers well structured and named
Design Rule Check – Run DRC on your board layout and fix any
Double Check Layers – Verify critically that each layer matches your
revise the Gerber files after initial submission. Send the full updated
set.
first builds, analyze the cause and improve your Gerber generation
process.
them carefully for potential problems before sending them out. Here are
files and renders the visual contents for inspection. This provides the most
realistic validation of how the manufactured PCB will turn out. Some good
place.
Verify apertures are sized correctly and vector graphics render sharply
resolution issues.
Overlay the Gerber layers atop your source PCB data to compare
Even if your source file passes DRC checks, run DRC on the Gerber files
Inspect drill layers to ensure hole sizes are correct and holes align
board dimensions, and text are rendered clearly and without errors.
expensive PCB fabrication errors. Spending extra time validating can save
PCB
Drilling machine
While Gerber files define the layered 2D data of a PCB layout, drill files
specify the actual hole sizes and locations required to fabricate the board.
Excellon (.drl) is the standard format for drill data. Here is an overview of
The locations of all required holes are determined from the component
pads and vias defined in the Gerber copper layers. PCB CAM tools extract
Each pad or via has a associated finished hole size defined during PCB
layout. These hole sizes are mapped to the extracted hole locations.
To optimize the drilling process, holes are grouped into “tool lists” based
on having the same drill bit size. This minimizes tool changes.
The formatted Excellon file (.drl) is output containing tool definitions and
Additional routing attributes direct the PCB drilling machine like spindle
speeds, tool change positions, and drill cut depths for partially drilled
boards.
It is critical to validate the drill file against the source Gerber data to
ensure the proper hole sizes and locations transfer over as expected.
With an accurate drill file derived from the layout, the PCB manufacturer
can drill all holes to precisely match up with the layered circuit board data.
SolderPaste Files
Solder paste files indicate the precise solder paste distribution required to
separate layer.
Simplifying Apertures
Polarity Markings
Panelization features like tooling tabs, mouse bites, and break-off rails are
Fiducials that appear on multiple layers can provide visual cue points for
flexibility.
Conclusion
Gerber files are integral to turning your completed PCB layout into a
advanced techniques, you can generate accurate Gerber files the first time.
With clean, error-free data, you will avoid costly delays and re-spins during
creation process ultimately saves you frustration, time, and money further
information layer-by-layer.
Excellon drill files are derived from copper pad/via locations and
Gerber files are the standard format that PCB fabrication equipment
understands. The files provide the precise layered data needed to image
the conductors, solder mask, markings, drill locations, etc. without errors.
Trying to fabricate directly from CAD or source layout files would be prone
to mistakes.
accurately for high density PCB designs. The precision avoids rounding
not recommended. The ideal workflow is modifying the source PCB layout,
then regenerating clean Gerber output. Direct Gerber edits often lead to
in PCB design either hobbyist or commercial designer may have used it. It
file. The leading PCB CAD softwares are able to create gerber files as an
output of PCB design file. These softwares generally use RS-274-X Gerber
Configuration Parameters
Aperture Definitions
Drawing Commands
X/Y Coordinates
exclude from gerber output files. In RS-274-X file format one file is
The gerber files generator can be launched from (PCB editor) Tools>
However, every software has its own style of creating Gerbers files. They
The dialog box in Figure 1, produces settings for location to save output
gerber files. Almost all PCB designers know to set the folder and file path
in a desktop computer.
include in the gerber files command, if executed. The first pane makes
Higher resolution occupies more memory but have better data precision.
There are two settings: the metric (mm) system and imperial (inches)
data clarity and to be safe side, generate Gerbers in both mm and inches
format, in two separate folders with clearly mentioning their units type.
The next pane in this dialogue box is layers settings where different layers
Drill drawing and mechanical layers panes make settings about drill
used some other settings. For producing gerber files it is a good practice
The NC drill files setup produces PCB holes location and drill size
information just like the gerber files i.e., location and size of drill. This also
has the same settings and parameters as in Gerber files step. Produce the
1. Signal layers: All signal layers which are used in the PCB design or
gerber file.
2. Plane layers: Similar to signal layers all plane layers should also be
enabled to produce gerber output files. These are solid coper layers
nomenclature notes.
8. Preferably produce time and date stamped Gerber files so that they
9. Recheck and verify the file types using any gerber viewer software
tool.
Figure 4 shows the enable and disable of different layers view in gerber
4.Summary:
file format. It includes all conductive, mechanical, text and keepout layers
The RS-274-X format produces one file for each layer of PCB and is
carefully to generate files. Any confusions and wrong data may cause an
Related Posts:
https://www.raypcb.com/how-to-generate-the-gerber-files/