Root/labsw/modules/relay.fpd

Source at commit 51106cf9b34d773e72aa00385c80a9abb76b28df created 5 years 9 months ago.
By Werner Almesberger, ircstat/ML: update for 11/2013
1/* MACHINE-GENERATED ! */
2
3frame pin {
4    __0: vec @(hole/2, hole/2)
5    __1: vec @(-hole/2, -hole/2)
6    hole . __0
7    __2: vec @(ratio*hole/2, -ratio*hole/2)
8    __3: vec @(-ratio*hole/2, ratio*hole/2)
9    rpad "$name" . __2
10}
11
12frame pins {
13    table
14        { name, dy, dx }
15        { "A1", 1, 0 }
16        { "A2", -1, 0 }
17        { "12A", 1, 6 }
18        { "12B", -1, 6 }
19        { "11A", 1, 8 }
20        { "11B", -1, 8 }
21        { "14A", 1, 10 }
22        { "14B", -1, 10 }
23
24    set x = dx*grid
25
26    set y = dy*grid*1.5
27
28    __0: vec @(x, y)
29    frame pin .
30}
31
32frame outline {
33    set x0 = -grid
34
35    set x1 = x0+29mm
36
37    set y = 2.5*grid
38
39    __1: vec @(x0, -y)
40    __0: vec @(x1, y)
41    rect __1 . w
42}
43
44package "RELAY"
45unit mm
46
47set grid = 2.52mm
48
49set hole = 1.3mm
50
51set ratio = 2.5
52
53set w = 5mil
54
55frame pins @
56frame outline @
57

Archive Download this file

Branches:
master



interactive