Root/modules/stdpass.fpd

1/* MACHINE-GENERATED ! */
2
3frame pad_r {
4    ll: vec @(0mm, -b/2)
5    x: vec .(a, 0mm)
6    y: vec ll(0mm, b)
7    pad "2" . x
8}
9
10frame pad_l {
11    ll: vec @(-a, -b/2)
12    w: vec .(a, 0mm)
13    h: vec ll(0mm, b)
14    pad "1" . w
15}
16
17frame pads {
18    left: vec @(-e/2, 0mm)
19    frame pad_l .
20    right: vec @(e/2, 0mm)
21    frame pad_r .
22}
23
24frame polarized {
25    loop if = cathode, 0
26
27    __0: vec @(Ox/2+1.5*clear, 0mm)
28    __1: vec .(0mm, Oy/2-clear/2)
29    __2: vec __0(0mm, -(Oy/2-clear/2))
30    line . __1 2*(silk+2mil)
31}
32
33frame outline {
34    ll: vec @(-Ox/2, -Oy/2)
35    ur: vec @(Ox/2, Oy/2)
36    rect ll . silk
37    frame polarized @
38}
39
40package "$name"
41unit mm
42
43table
44    { name, cathode, L, W, a, b, e, clear }
45    { "0201", 1, 0.6mm, 0.3mm, 0.28mm, 0.43mm, 0.23mm, 0.15mm }
46    { "0402", 1, 1mm, 0.5mm, 0.5mm, 0.6mm, 0.5mm, 0.15mm }
47    { "0603", 1, 1.55mm, 0.85mm, 0.7mm, 0.9mm, 0.8mm, 0.25mm }
48    { "0603P", 0, 1.55mm, 0.85mm, 0.7mm, 0.9mm, 0.8mm, 0.25mm }
49    { "0805", 1, 2mm, 1.25mm, 0.7mm, 1.3mm, 1.2mm, 0.25mm }
50    { "0805P", 0, 2mm, 1.25mm, 0.7mm, 1.3mm, 1.2mm, 0.25mm }
51    { "1008", 1, 2.5mm, 2mm, 0.85mm, 2.5mm, 1.6mm, 0.25mm }
52    { "1206", 1, 3.2mm, 1.6mm, 0.9mm, 1.7mm, 2mm, 0.25mm }
53    { "1206P", 0, 3.2mm, 1.6mm, 0.9mm, 1.7mm, 2mm, 0.25mm }
54    { "1210", 1, 3.2mm, 2.5mm, 0.9mm, 2.5mm, 2mm, 0.25mm }
55    { "1210P", 0, 3.2mm, 2.5mm, 0.9mm, 2.5mm, 2mm, 0.25mm }
56    { "1812", 1, 4.5mm, 3.2mm, 1.68mm, 3.15mm, 3.1mm, 0.25mm }
57    { "1812P", 0, 4.5mm, 3.2mm, 1.68mm, 3.15mm, 3.1mm, 0.25mm }
58    { "2010", 1, 5mm, 2.5mm, 1mm, 2.5mm, 3.6mm, 0.25mm }
59    { "2010P", 0, 5mm, 2.5mm, 1mm, 2.5mm, 3.6mm, 0.25mm }
60    { "2512", 1, 6.3mm, 3.2mm, 1mm, 3.2mm, 5mm, 0.25mm }
61    { "2512P", 0, 6.3mm, 3.2mm, 1mm, 3.2mm, 5mm, 0.25mm }
62
63set silk = 3mil
64
65set Ox = e+2*a+2*clear
66
67set Oy = b+2*clear
68
69frame pads @
70frame outline @
71measx pad_l.w >> pad_r.ll -0.3mm
72measx pad_l.ll -> pad_l.w -0.3mm
73measy pad_l.ll >> pad_l.h 0.3mm
74measx outline.ll >> outline.ur Oy+0.3mm
75measy outline.ur >> outline.ll silk
76measx pad_l.ll >> pad_r.x -0.5mm
77

Archive Download this file

Branches:
master



interactive