Yahoo Groups archive

Homebrew PCBs

Index last updated: 2026-04-28 23:05 UTC

Message

Parser for RS-274X header.

2002-04-25 by Alan Marconett KM6VV

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\ufffd : millim\ufffdtre *
%FSLAX33Y33*
MOMM*
OFA0B0*
SFA1B1*
IPPOS*%
G04 d\ufffdfinition des ouvertures pour les pistes *
%ADD10C,0.318*%
G04 d\ufffdfinition des ouvertures pour les pastilles rondes *
%ADD11C,1.588X0.2*%
G04 trac\ufffd du CI *

Alan  KM6VV

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.