Root/modules/rca-3-ra.fpd

Source at commit 5ed16708597ccf77aca40505ca75716a6518b49e created 7 years 4 months ago.
By Werner Almesberger, modules/: add measurementes to DIP-4/6-300mil; add to catalog and Makefile
1/* MACHINE-GENERATED ! */
2
3frame base {
4    table
5        { dx }
6        { -1 }
7        { 1 }
8
9    __0: vec @(dx*(pitch+pin2base), 0mm)
10    __1: vec .(brx/2, bry/2)
11    __2: vec __0(-brx/2, -bry/2)
12    hole . __1
13}
14
15frame gnds {
16    table
17        { n, dx }
18        { 1, -1 }
19        { 3, 0 }
20        { 5, 1 }
21
22    __0: vec @(dx*pitch, 0mm)
23    __1: vec .(grx/2, gry/2)
24    __2: vec __0(-grx/2, -gry/2)
25    hole . __1
26    __3: vec __0(factor*grx/2, -factor*gry/2)
27    __4: vec __0(-factor*grx/2, factor*gry/2)
28    rpad "$n" . __3
29}
30
31frame pins {
32    table
33        { n, dx }
34        { 2, -1 }
35        { 4, 0 }
36        { 6, 1 }
37
38    __0: vec @(dx*pitch, 0mm)
39    __1: vec .(prx/2, pry/2)
40    __2: vec __0(-prx/2, -pry/2)
41    hole . __1
42    __3: vec __0(factor*prx/2, -factor*pry/2)
43    __4: vec __0(-factor*prx/2, factor*pry/2)
44    rpad "$n" . __3
45}
46
47frame outline {
48    loop i = -1, 1
49
50    __0: vec @(-L/2, -(W-pin2front))
51    __1: vec @(L/2, pin2front)
52    rect __0 . w
53    __2: vec @(0mm, pin2front)
54    __3: vec .(0mm, ringgapy)
55    __4: vec __2(-pitch, 0mm)
56    __5: vec __2(pitch, 0mm)
57    __6: vec __3(pitch, 0mm)
58    __7: vec __3(-pitch, 0mm)
59    __8: vec __5(ringgapx/2, 0mm)
60    __9: vec __6(ringgapx/2, 0mm)
61    line . __8 w
62    __10: vec __6(-ringgapx/2, 0mm)
63    line __9 . w
64    __11: vec __5(-ringgapx/2, 0mm)
65    line __10 . w
66    __12: vec __2(ringgapx/2, 0mm)
67    __13: vec __3(ringgapx/2, 0mm)
68    line . __12 w
69    __14: vec __3(-ringgapx/2, 0mm)
70    line __13 . w
71    __15: vec __2(-ringgapx/2, 0mm)
72    line __14 . w
73    __16: vec __4(-ringgapx/2, 0mm)
74    __17: vec __7(-ringgapx/2, 0mm)
75    line . __16 w
76    __18: vec __7(ringgapx/2, 0mm)
77    line . __17 w
78    __19: vec __4(ringgapx/2, 0mm)
79    line __18 . w
80    __20: vec __7(outletx/2, outlety)
81    __21: vec __3(outletx/2, outlety)
82    __22: vec __6(outletx/2, outlety)
83    __23: vec __3(-outletx/2, 0mm)
84    rect . __21 w
85    __24: vec __7(-outletx/2, 0mm)
86    rect . __20 w
87    __25: vec __6(-outletx/2, 0mm)
88    rect . __22 w
89}
90
91package "RCA-3-RA"
92unit mm
93
94set gap = 4.5mm
95
96set pin2front = 5.2mm
97
98set pitch = 15mm
99
100set pin2base = 6.5mm
101
102set factor = 1.6
103
104set grx = 2.5mm
105
106set gry = 1.2mm
107
108set prx = 1mm
109
110set pry = 2.5mm
111
112set brx = 2mm
113
114set bry = 3.7mm
115
116set w = 5mil
117
118set L = 45mm
119
120set W = gap+pin2front+factor*pry/2+w
121
122set ringgapy = 1.3mm
123
124set ringgapx = 11.6mm
125
126set outlety = 7mm
127
128set outletx = 8.3mm
129
130__0: vec @(0mm, gap)
131frame gnds .
132frame base .
133frame outline .
134frame pins @
135measy pins.__2 -> pins.__1 factor*prx/2+0.5mm
136measx pins.__2 -> pins.__1 -factor*pry/2
137measy gnds.__2 -> gnds.__1 factor*grx/2+0.5mm
138measx gnds.__2 -> gnds.__1 -factor*gry/2
139measy base.__2 -> base.__1 brx/2
140measx base.__2 -> base.__1 -bry/2
141measy __0 << pins.__0 -(pin2base+brx/2+0.5mm)
142meas gnds.__0 >> __0 3.5mm
143meas __0 >> gnds.__0 3.5mm
144measx base.__0 -> gnds.__0 3.5mm
145measx outline.__0 >> outline.__1 -1.5mm
146measy outline.__0 >> outline.__1 2mm
147meas outline.__16 >> outline.__17 3.7mm
148measx outline.__24 >> outline.__20 outlety+1mm
149meas outline.__17 >> outline.__18 outlety+2mm
150measy outline.__9 >> outline.__22 -1mm
151

Archive Download this file

Branches:
master



interactive