Root/modules/usb_a_plug_smt.fpd

Source at commit d37268a6ba7dd08f54960a03ca755dc943e3636c created 7 years 1 month ago.
By Werner Almesberger, modules/: add PAD_S_120x120; correct classification of PAD_S_150x150
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    table
5        { h, w }
6        { 2mm+2*enlarge, 1.2mm }
7
8    __0: vec @(w/2, h/2)
9    __1: vec @(-w/2, -h/2)
10    pad "$name" . __0
11}
12
13frame pads {
14    table
15        { name, x }
16        { 1, 3.5mm }
17        { 2, 1mm }
18        { 3, -1mm }
19        { 4, -3.5mm }
20
21    set enlarge = 0.1mm
22
23    __0: vec @(0mm, 2.6mm+enlarge)
24    __1: vec .(x, 0mm)
25    frame pad .
26}
27
28frame shield {
29    table
30        { name, x }
31        { 5, -B/2 }
32        { 6, B/2 }
33
34    table
35        { hi, wi }
36        { 2.5mm, 1mm }
37
38    set ratio = 2
39
40    set ho = hi*ratio
41
42    set wo = wi*ratio
43
44    __0: vec @(x, 0mm)
45    __1: vec .(wo/2, ho/2)
46    __2: vec __0(-wo/2, -ho/2)
47    rpad "$name" . __1 bare
48    __3: vec __0(wi/2, hi/2)
49    __4: vec __0(-wi/2, -hi/2)
50    hole . __3
51}
52
53frame holes {
54    set d = 1.15mm
55
56    table
57        { x }
58        { -C/2 }
59        { C/2 }
60
61    __0: vec @(x, 0mm)
62    __1: vec .(d/2, d/2)
63    __2: vec __0(-d/2, -d/2)
64    hole . __1
65}
66
67frame edge {
68    set w = 5mil
69
70    __0: vec @(0mm, -2.75mm)
71    __1: vec .(B/2, 0mm)
72    __2: vec __0(-B/2, 0mm)
73    line . __1 w
74}
75
76package "USB-A-PLUG-SMT"
77unit auto
78
79table
80    { A, B, C }
81    { 2mm, 11.4mm, 4.5mm }
82
83frame edge @
84frame holes @
85frame pads @
86frame shield @
87measx pads.__1 >> pads.__1 3mm
88measx pads.__1 -> pads.__1 2.5mm
89measx pad.__1 -> pad.__0 3mm
90measy pad.__1 -> pad.__0 0.5mm
91measx shield.__2 -> shield.__1 -2.5mm
92measy shield.__2 -> shield.__1 1.5mm
93measy shield.__4 -> shield.__3 1mm
94measx shield.__4 -> shield.__3 -2mm
95measx shield.__0 >> shield.__0 6.5mm
96measx holes.__0 >> holes.__0 -1.5mm
97measy holes.__2 -> holes.__1 1mm
98measy edge.__1 >> shield.__0 -2mm
99measy pads.__0 << shield.__0 -2mm
100

Archive Download this file

Branches:
master



interactive