Eagle library file format version 6.2

Aus Wiki
Wechseln zu: Navigation, Suche



The Eagle library format is in XML and nicely human readable. The format is specified in DTD format in a file called eagle.dtd in the doc folder of your Eagle installation. In the lbr folder of your installation you can find libraries in Eagle library format.

General structure

A library begins with:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
  <eagle version="6.2">

and ends with:


Schematic symbols

  • symbol
    • description
    • polygon | wire | text | dimension | pin | circle | rectangle | frame

A pin is the point, where other components may be connected the current component.


          <symbol name="MSV">
            <wire x1="0" y1="0" x2="1.27" y2="0" width="0.6096" layer="94"/>
            <text x="0" y="1.27" size="1.778" layer="96">>VALUE</text>
            <text x="2.54" y="-0.762" size="1.524" layer="95">>NAME</text>
            <pin name="MSV" x="-2.54" y="0" visible="off" length="short" direction="pas"/>

PCB footprints

  • package
    • description
    • polygon | wire | text | dimension | circle | rectangle | frame | hole | pad | smd

A <pad> is an area of copper with a hole in the middle for through-hole components. An <smd> is an area of copper without a hole for SMD components.


        <package name="VG64P">
            <description><b>EUROCARD</b>, holder, C/AC, 2.54</description>
            <wire x1="0.254" y1="-50.0126" x2="160.274" y2="-50.0126" width="0" layer="20"/>
            <rectangle x1="0.254" y1="-50.0126" x2="160.274" y2="-46.99" layer="39"/>
            <text x="165.735" y="26.67" size="1.778" layer="21" ratio="10" rot="R90">Bauform C</text>
            <pad name="C32" x="149.86" y="-39.37" drill="0.9144" diameter="1.6002" shape="octagon"/>
            <hole x="157.48" y="44.45" drill="2.794"/>

Association of symbols to footprints

An Eagle device is a list of associations between a symbol pins and a footprint pads. devices appear in devicesets, which specify one or more gates, which can be logical gates or other sorts of components.


<deviceset name="CDS4050" prefix="S">
<description><b>CDS4050, Magneto Resistive Current Sensor (I_PN=50 A) </b> <p>

Sensitec GmbH <p>

Source: <a href="http://www.sensitec.com/upload/SENSITEC/PDF_Downloads/Datenblatt/Sensitec_CDS4050_DSE_07.pdf"> Data sheet</a> bzw. <a href="http://www.sensitec.com/deutsch/produkte/strom/cds4050.html"> Product Page</a></description>
<gate name="CDS4050" symbol="CDS40XX" x="0" y="0"/>
<device name="ABC" package="CDS4050ABC">
<connect gate="CDS4050" pin="CD" pad="6"/>




Meine Werkzeuge