Date:2012-05-29 12:48:52 (8 years 2 months ago)
Author:Adam Wang
Commit:9762038bbcb6a6fdc34be383419573962657a3e3
Message:to.fpd: added TO-252 package

Files: modules/to.fpd (1 diff)

Change Details

modules/to.fpd
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    set x = dx*e
5
6    set y = dy*cy/2
7
8    __2: vec @(x, y)
9    __0: vec .(index*px/2+ground*gx/2, index*py/2+ground*gy/2)
10    __1: vec __2(-(index*px/2+ground*gx/2), -(index*py/2+ground*gy/2))
11    pad "$n" . __0
12    __3: vec __2(-(index*px/2+ground*gx/2), index*py/2+ground*gy/2)
13    __4: vec __2(index*px/2+ground*gx/2, -(index*py/2+ground*gy/2))
14}
15
16frame outline {
17    __0: vec @(D/2, E/2+offset)
18    __1: vec @(D/2, -(E/2-offset))
19    line __0 . w
20    __2: vec @(-D/2, E/2+offset)
21    __3: vec @(-D/2, -(E/2-offset))
22    line . __2 w
23    __4: vec @(gx/2, 0mm)
24    __5: vec @(-gx/2, 0mm)
25}
26
27frame pads252 {
28    table
29        { n, index, ground, dx, dy }
30        { 1, 1, 0, -1, -1 }
31        { 2, 0, 0, 0, -1 }
32        { 3, 1, 0, 1, -1 }
33        { 4, 0, 1, 0, 1 }
34
35    set gx = 5.5mm
36
37    set gy = 5.7mm
38
39    frame outline @
40    frame pad @
41}
42
43package "TO-$Name"
44unit mm
45
46table
47    { Name, N, D, E, e, cy, px, py, offset }
48    { "252", 3, 6.58mm, 9.91mm, 2.285mm, 6.44mm, 1.3mm, 1.7mm, 1mm }
49
50set w = 5mil
51
52frame pads252 @
53measy outline.__3 >> outline.__2 3mm
54measx pad.__1 -> pad.__0 -1mm
55measx pad.__2 -> pad.__2 1.5mm
56measy pad.__2 >> pad.__2 3mm
57measy pad.__2 -> pad.__3 2mm
58measy pad.__4 -> pad.__2 2.5mm
59meas outline.__3 >> outline.__1 -1.5mm
60measx outline.__5 >> outline.__4 7mm

Archive Download the corresponding diff file

Branches:
master



interactive