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/04/29 08:55]
vzh Add two shortcuts
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 117: Line 127:
 ===== 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 126: Line 136:
 ===== PCB Units ===== ===== PCB Units =====
 PCB handles metric and imperial units in the following way: 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/10,000 inch, or 0.00001 inch.+       * The base Imperial unit is the "​centimil",​ or 1/100 of a thousandth, or 1/100,000 inch, or 0.00001 inch.
        * Allowable imperial value range: ​ "​0.04"​ (0.0000004 inches) to approx. "​78740000"​ (about 78-3/​4"​)        * Allowable imperial value range: ​ "​0.04"​ (0.0000004 inches) to approx. "​78740000"​ (about 78-3/​4"​)
        * 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.
Line 135: Line 145:
  
 ===== Elements ===== ===== Elements =====
-**''​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]''​**
  
 ^    ^  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 146: 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 182: 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]%%''​**
geda/pcb-quick_reference.txt · Last modified: 2016/02/18 13:04 by ptay