Root/modules/sod.fpd

Source at commit 083e2b094358d94feaa99ed882b7718ac6e8ebe6 created 5 years 5 months ago.
By Werner Almesberger, modules/sod.fpd: added SOD-323
1/* MACHINE-GENERATED ! */
2
3frame pads {
4    table
5        { n, dx }
6        { 1, -1 }
7        { 2, 1 }
8
9    set x = dx*Cx/2
10
11    __0: vec @(x, 0mm)
12    __1: vec .(Px/2, Py/2)
13    __2: vec __0(-Px/2, -Py/2)
14    pad "$n" . __1
15}
16
17frame outline {
18    set _ = 0
19
20    loop i = 0, 1
21
22    __0: vec @(-H/2, B*(i-0.5))
23    __1: vec .(H, 0mm)
24    line __0 . w
25}
26
27frame symbol {
28    set s = B/2-w*2
29
30    __0: vec @(-s, s)
31    __1: vec @(-s, -s)
32    line . __0 w
33    __2: vec @(s, 0mm)
34    line __0 . w
35    line __1 . w
36    __3: vec .(0mm, s)
37    __4: vec __2(0mm, -s)
38    line __3 . w
39}
40
41package "SOD-$name"
42unit mm
43
44table
45    { name, B, H, Cx, Px, Py, C }
46    { "323", 1.3mm, 1.7mm, 2.4mm, 0.6mm, 0.6mm, 2.4mm }
47
48set w = 5mil
49
50frame pads @
51frame outline @
52frame symbol @
53measy outline.__0 >> outline.__0 1mm
54measx outline.__1 << outline.__0 0.5mm
55measx pads.__0 >> pads.__0 -B/2-0.5mm
56measy pads.__2 -> pads.__1 0.2mm
57measx pads.__2 -> pads.__1 -0.2mm
58measx pads.__1 >> pads.__2 (B-Py)/2+0.7mm
59measx pads.__2 >> pads.__1 -(B-Py)/2-0.7mm
60

Archive Download this file

Branches:
master



interactive