This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
geda:pcb-quick_reference [2013/01/10 14:49] ptay [Footprint Reference] |
geda:pcb-quick_reference [2016/02/18 13:04] ptay [All Keystrokes] |
||
---|---|---|---|
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 15: | Line 25: | ||
| <key>C-S-tab</key> | far side | view: exchange the roles of front side and far side | | | <key>C-S-tab</key> | far side | view: exchange the roles of front side and far side | | ||
| <key>del</key> | delete | delete object under the mouse cursor | | | <key>del</key> | delete | delete object under the mouse cursor | | ||
+ | | <key>C-S</key> L-Mouse | delete | delete object under the mouse cursor (fast) | | ||
| <key>S-del</key> | del-sel | delete objects in selection | | | <key>S-del</key> | del-sel | delete objects in selection | | ||
| <key>backspace</key> | del-sel | delete objects in selection | | | <key>backspace</key> | del-sel | delete objects in selection | | ||
Line 69: | Line 80: | ||
| <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 115: | Line 128: | ||
===== 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 124: | Line 137: | ||
===== 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 133: | Line 146: | ||
===== 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 144: | Line 157: | ||
| 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 180: | Line 193: | ||
* **''%%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 201: | Line 217: | ||
* 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) | ||
+ |