Archive of the former Yahoo!Groups mailing list: Homebrew PCBs

previous by date index next by date
  topic list next in topic

Subject: Parser for RS-274X header.

From: Alan Marconett KM6VV <KM6VV@...>
Date: 2002-04-25

Hi to the Lists,

I generated this demo RS-274X (Gerber) file header from Tci, a French
PCB program (pardon my french). I've had some of the parms explained
before, and I have the Gerber spec, so I have some Idea of their use.
What's not obvious to me is how they expect one to go about parsing it.
I know it's in MM. The '∗' are always end-of-block, which is fine. I
see '%' characters bracketing SOME of the blocks, but some at start and
some at end (suggests several blocks are "together"?). And This header
seems to use G04 (delay) as a comment?

I have a parser for Gcode, but this header stuff doesn't fit too good
(parser wise)!

It looks like "ADD 10 C 0.318" (spaces added) sets aperture #10 to a
circular pad, and "ADD 11 C 1.588 X 0.2" is for the traces. I can work
through it from the CAD PCB layout to get the numbers right, But this
all seems rather haphazard, IMO.

Any comments?

G04 format : xxx.xxx unité : millimètre ∗
%FSLAX33Y33∗
MOMM∗
OFA0B0∗
SFA1B1∗
IPPOS∗%
G04 définition des ouvertures pour les pistes ∗
%ADD10C,0.318∗%
G04 définition des ouvertures pour les pastilles rondes ∗
%ADD11C,1.588X0.2∗%
G04 tracé du CI ∗

Alan KM6VV