Root/modules/sot-323.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    __0: vec @(w/2, h/2)
5    __1: vec @(-w/2, -h/2)
6    pad "$n" . __0
7}
8
9frame pads {
10    table
11        { n, x, y }
12        { 1, -e*ccw, -f/2 }
13        { 2, e*ccw, -f/2 }
14        { 3, 0mm, f/2 }
15
16    __0: vec @(x, y)
17    frame pad .
18}
19
20frame outline {
21    set lw = 5mil
22
23    set clear = lw/2+0.1mm
24
25    set s = (A-w)/2-clear
26
27    set m2 = e-w/2-clear
28
29    __0: vec @(A/2, B/2)
30    __2: vec @(-A/2, B/2)
31    __3: vec .(0mm, -B)
32    line __2 . lw
33    __1: vec __0(0mm, -B)
34    line . __0 lw
35    __4: vec __2(s, 0mm)
36    line __2 . lw
37    __5: vec __0(-s, 0mm)
38    line . __0 lw
39    __6: vec @(0mm, -B/2)
40    __7: vec .(m2, 0mm)
41    __8: vec __6(-m2, 0mm)
42    line . __7 lw
43}
44
45package "SOT-323$suffix"
46unit mm
47
48table
49    { A, B }
50    { 2.2mm, 1.35mm }
51
52set e = 0.65mm
53
54table
55    { f, h, w }
56    { 1.9mm, 0.9mm, 0.7mm }
57
58table
59    { suffix, ccw }
60    { "", 1 }
61    { "-CW", -1 }
62
63frame outline @
64frame pads @
65measx outline.__2 >> outline.__0 1.5mm
66measy outline.__3 >> outline.__2 0.5mm
67measx pads.__0 -> pads.__0 1.7mm+f/2
68measy pads.__0 >> pads.__0 1.5mm
69measy pad.__1 -> pad.__0 0.5mm
70measx pad.__1 -> pad.__0 -0.5mm
71

Archive Download this file

Branches:
master



interactive