User Tools

Site Tools


geda:pcb-quick_reference

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
geda:pcb-quick_reference [2013/01/10 12:52]
ptay [Elements]
geda:pcb-quick_reference [2016/02/10 17:50]
ptay [Examples] added three more examples
Line 1: Line 1:
 +//​Translations of this page are also available in the following languages://​ [[pcb-quick_reference.fr|Français]],​ [[pcb-quick_reference.ru|Русский]].
 +
 ====== PCB: Quick Reference ====== ====== PCB: Quick Reference ======
 +
 +===== Additional information =====
 +More information on PCB you can find in the PCB Command reference
 +(//''​refcard.pdf''//​) containing description of all PCB shortcuts
 +and in the PCB Manual (//''​pcb.pdf''//​ or //''​pcb.html''//​)
 +residing in the //''​doc/''//​ directory of your PCB installation
 +(its path may vary on various systems).
 +
  
 ===== Default Key Mapping ===== ===== Default Key Mapping =====
Line 69: Line 79:
 |            <​key>​v</​key>​ | view extents ​      | global view of working area  | |            <​key>​v</​key>​ | view extents ​      | global view of working area  |
 |          <​key>​S-v</​key>​ | via tool dia       | increase the diameter of new vias by 5 mil  | |          <​key>​S-v</​key>​ | via tool dia       | increase the diameter of new vias by 5 mil  |
 +|          <​key>​C-v</​key>​ | paste buffer ​      | paste from buffer |
 |        <​key>​C-S-v</​key>​ | via tool dia (-)   | decrease the diameter of new vias by 5 mil  | |        <​key>​C-S-v</​key>​ | via tool dia (-)   | decrease the diameter of new vias by 5 mil  |
 |          <​key>​A-v</​key>​ | via tool drill     | increase the drill diameter of new vias by 5 mil  | |          <​key>​A-v</​key>​ | via tool drill     | increase the drill diameter of new vias by 5 mil  |
 |        <​key>​S-A-v</​key>​ | via tool drill (-) | decrease the drill diameter of new vias by 5 mil  | |        <​key>​S-A-v</​key>​ | via tool drill (-) | decrease the drill diameter of new vias by 5 mil  |
 +|          <​key>​C-x</​key>​ | cut to buffer ​     | cut selection to buffer |
 |            <​key>​z</​key>​ | zoom               | view: zoom in  | |            <​key>​z</​key>​ | zoom               | view: zoom in  |
 |          <​key>​S-z</​key>​ | un-zoom ​           | view: zoom out  | |          <​key>​S-z</​key>​ | un-zoom ​           | view: zoom out  |
Line 110: Line 122:
 |  <​key>​C-A-0</​key> ​                     |  -  | toggle visibility of 20<​sup>​*</​sup> ​ | |  <​key>​C-A-0</​key> ​                     |  -  | toggle visibility of 20<​sup>​*</​sup> ​ |
 <​sup>​*</​sup>​ <​sub>​These accels are available in PCB, GTK GUI in versions after August 2011</​sub>​ <​sup>​*</​sup>​ <​sub>​These accels are available in PCB, GTK GUI in versions after August 2011</​sub>​
-====== Footprint Reference ======+====== Footprint ​Quick Reference ======
 The Master document for footprint creation is the [[http://​pcb.geda-project.org/​manual.html|PCB Manual]]. There is also Stuart Brorson’s [[http://​www.brorson.com/​gEDA/​land_patterns_20050129.pdf|Footprint Creation for the Open-Source Layout Program PCB]]. The Master document for footprint creation is the [[http://​pcb.geda-project.org/​manual.html|PCB Manual]]. There is also Stuart Brorson’s [[http://​www.brorson.com/​gEDA/​land_patterns_20050129.pdf|Footprint Creation for the Open-Source Layout Program PCB]].
  
 ===== General syntax ===== ===== General syntax =====
 A pcb footprint file may contain any of the following commands: A pcb footprint file may contain any of the following commands:
-  * **''​Element [element_flags,​ description, ​pcb-name, value, mark_x, mark_y, text_x, text_y, text_direction,​ text_scale, text_flags]''​**+  * **''​Element [element_flags,​ description, ​pcb_name, value, mark_x, mark_y, text_x, text_y, text_direction,​ text_scale, text_flags]''​**
   * **''​Pad [x1 y1 x2 y2 thickness clearance mask name pad_number flags]''​**   * **''​Pad [x1 y1 x2 y2 thickness clearance mask name pad_number flags]''​**
   * **''​Pin [x y thickness clearance mask drillholedia name number flags]''​**   * **''​Pin [x y thickness clearance mask drillholedia name number flags]''​**
Line 122: Line 134:
   * Comment lines start with the ‘**''#''​**’-sign   * Comment lines start with the ‘**''#''​**’-sign
  
-===== Elements ​===== +===== PCB Units ===== 
-**''​Element [element_flags,​ description,​ pcb-name, value, mark_x, mark_y, text_x, text_y, text_direction,​ text_scale, text_flags]''​** +PCB handles metric and imperial units in the following way: 
- +       * The base Imperial unit is the "​centimil",​ or 1/100 of a thousandth, or 1/100,000 inch, or 0.00001 inch. 
-PCB footprints can be in Imperial or Metric units.  ​ +       * Allowable imperial value range: ​ "​0.04"​ (0.0000004 inches) to approx. "​78740000"​ (about 78-3/​4"​)
-       * The base Imperial unit is the "​centimil",​ or 1/100 of a thousandth, or 1/10,000 inch, or 0.00001 inch.+
        * The base Metric unit is 1nm (one nanometer). ​ PCB parses in metric if the number has a "​mm"​ behind it.        * The base Metric unit is 1nm (one nanometer). ​ PCB parses in metric if the number has a "​mm"​ behind it.
 +       * Allowable metric value range: ​ "​0.000001mm"​ to "​2000mm"​
 +       * NOTES:
 +         * use "​mm"​ after number to specify metric
 +         * imperial and metric may be mixed within a footprint (!)
 +
 +===== Elements =====
 +**''​Element [element_flags,​ description,​ pcb_name, value, mark_x, mark_y, text_x, text_y, text_direction,​ text_scale, text_flags]''​**
  
 ^    ^  Allowed value (unit = 1e-5 inches) ^  Allowed Value (mm)  ^  explanation ​ ^  comment ​ ^ ^    ^  Allowed value (unit = 1e-5 inches) ^  Allowed Value (mm)  ^  explanation ​ ^  comment ​ ^
 |  element_flags ​ |  unsigned hex value  |  |  | |  element_flags ​ |  unsigned hex value  |  |  |
 |  description ​ |  string ​ |  |  text description of footprint ​ |  user-defined ​ | |  description ​ |  string ​ |  |  text description of footprint ​ |  user-defined ​ |
-|  ​pcb name  ​| ​ string ​ |  |  generic refdes (R?, U? etc.) |  user-defined ​  |+|  ​pcb_name ​ ​| ​ string ​ |  |  generic refdes (R?, U? etc.) |  user-defined ​  |
 |  value  |  string ​ |  |  component value (layout specific) ​ |  user-defined (blank) ​ | |  value  |  string ​ |  |  component value (layout specific) ​ |  user-defined (blank) ​ |
 |  mark_x ​ |  "​1"​ to ~ "​78740000" ​ |  "​0.000001mm"​ to "​2000mm" ​ |  (x,y) loc. of center mark  |  | |  mark_x ​ |  "​1"​ to ~ "​78740000" ​ |  "​0.000001mm"​ to "​2000mm" ​ |  (x,y) loc. of center mark  |  |
Line 138: Line 156:
 |  text_x ​ |  "​1"​ to ~ "​78740000" ​ |  "​0.000001mm"​ to "​2000mm" ​ |  (x,y) loc. of REFDES ​ |  | |  text_x ​ |  "​1"​ to ~ "​78740000" ​ |  "​0.000001mm"​ to "​2000mm" ​ |  (x,y) loc. of REFDES ​ |  |
 |  text_y ​ |  "​1"​ to ~ "​78740000" ​ |  "​0.000001mm"​ to "​2000mm" ​ |  |  | |  text_y ​ |  "​1"​ to ~ "​78740000" ​ |  "​0.000001mm"​ to "​2000mm" ​ |  |  |
-|  ​text direction ​ ​| ​ decimal integer ​ |  |  0=horiz; 1=ccw90; 2=180; 3=cw90 ​ |  |+|  ​text_direction ​ ​| ​ decimal integer ​ |  |  0=horiz; 1=ccw90; 2=180; 3=cw90 ​ |  |
 |  text_scale ​ |  decimal integer ​ |  |  |  usu. set to 100  | |  text_scale ​ |  decimal integer ​ |  |  |  usu. set to 100  |
 |  text_flags ​ |  unsigned hex  |  |  |  | |  text_flags ​ |  unsigned hex  |  |  |  |
Line 174: Line 192:
   * **''​%%Pad[-24606 14760 -19538 14760 1181 2000 3181 ""​ "​16"​ "​square"​]%%''​**   * **''​%%Pad[-24606 14760 -19538 14760 1181 2000 3181 ""​ "​16"​ "​square"​]%%''​**
   * **''​%%Pad[-14760 19538 -14760 24606 1181 2000 3181 ""​ "​17"​ "​square,​edge2"​]%%''​**   * **''​%%Pad[-14760 19538 -14760 24606 1181 2000 3181 ""​ "​17"​ "​square,​edge2"​]%%''​**
 +  * **''​%%Pad[-240.00mil 0.0000 -80.00mil 0.0000 40.00mil 20.00mil 46.00mil "​2"​ "​2"​ "​onsolder,​square"​]%%''​**
 +  * **''​%%Pad[80.00mil 0.0000 240.00mil 0.0000 40.00mil 20.00mil 46.00mil "​1"​ "​1"​ "​onsolder,​square,​edge2"​]%%''​**
   * **''​%%Pin[0 0 12000 2000 12500 6400 ""​ "​1"​ 0×00000001]%%''​**   * **''​%%Pin[0 0 12000 2000 12500 6400 ""​ "​1"​ 0×00000001]%%''​**
 +  * **''​%%Pin[0 0 11500 11800 35000 12500 ""​ "​1"​ 0x08]%%''​** ​                 <-- unplated / nonplated hole
   * **''​%%ElementArc [0 0 6800 6800 0 360 1000]%%''​**   * **''​%%ElementArc [0 0 6800 6800 0 360 1000]%%''​**
   * **''​%%ElementLine [-26696 -26696 26696 -26696 1000]%%''​**   * **''​%%ElementLine [-26696 -26696 26696 -26696 1000]%%''​**
Line 195: Line 216:
   * outline layer reference   * outline layer reference
   * physical layer how-to (outline, direct (x,y) footprint placement, part insertion)   * physical layer how-to (outline, direct (x,y) footprint placement, part insertion)
 +
geda/pcb-quick_reference.txt · Last modified: 2016/02/18 13:04 by ptay