You are on page 1of 15

PROJECT GERBER PARSER

Sahil Sanjeev - 1PI05CS085


Vineeth Athreyesh - 1PI05CS113
- Done at Samsung Electro-Mechanics Company
(SEMCO)
Background
In the PCB manuIacturing industry,
thorough knowledge oI the Gerber Format
is needed to generate the artwork produced
by the photoplotter.
At SEMCO, using our parser, the artwork
can be produced without going into details
oI the Gerber Format.
hat we planned to achieve ?
Analysis oI the gerber RS-274X
Iormat.
Creation oI gerber Iiles.
Implementation oI a simple gerber
parser.
Tools and language used
Language used is C
Turbo C Compiler
Gerb Magic Tool / ECAM
MicrosoIt indows
Analysis oI the gerber RS-274X
Iormat
RS274X includes many high level
commands and controls that let the creator oI
the erber data speciIy the photoplot very
precisely.
Necessary to understand the intricacies oI
each command to enable the successIul
implementation oI the parser.
This is the current Iormat used in the
industry worldwide.
FSLAX35Y35*
LNEXAMPLE*
LPC*
ADD13C,4X3*
ADD22R,2X1*
G54D22*
X100000Y400000D03*
X200000Y400000D03*
X55000Y37000D02*
X55000Y365000D01*
G54D13*
X255000Y365000D01*
X55000Y205000D02*
G11X235000Y205000D01*
M02*
Example Of A erber File
Sample output oI a gerber Iile
Photoplotter Schematic
Plotter Operation
Creation oI Gerber Files
Manual creation oI gerber Iiles using
the RS274X Iormat.
The extension oI the Iiles is *.gbr
The output oI the gerber Iiles can be
veriIied and viewed using tools such as
Gerb Magic Tool, ECAM etc.
The Gerber Parser
Parsing is done in accordance with the rules oI the
RS274X speciIication
The Output oI the Parser contains
1. No. of Layers
2. Layer Name
2.1 What is Layer Polarity
2.2 No. of Aperture
2.2.1 No. of Flashes
2.2.2 No. of Lines
2.2.3 Aperture Type
2.2.4 What are the values for that
apertures
2.2.4.1 Flash Start X and Start Y
2.2.4.2 Line START X and Start Y and
End X and End Y
2.3 No. Jf Polygon
2.3.1 No. of Flashes
2.3.2 No. of Lines
2.3.1.1 Flash Start X and Start Y
2.3.2.1 Line START X and Start Y and
End X and End Y
Feedback
Our work was well-appreciated by the
managers at SEMCO.
e got a special word oI praise Irom the
proIessionals in the PCB manuIacturing
industry as well.
%ANK YOU

You might also like