Root/modules/din-5.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 outline {
4    __0: vec @(-(frontx-leftx), -(depth-frontedgey))
5    __1: vec @(leftx, frontedgey)
6    rect __0 . w
7}
8
9package "DIN-SOCKET-PCB-5-45"
10unit mm
11
12set frontedgey = 2.5mm
13
14set shieldx = 5mm
15
16set shieldr = 1.5mm
17
18set factor = 1.6
19
20set leftx = 10.5mm
21
22set frontx = 21.2mm
23
24set npthy = 5mm
25
26set npthx = 15mm
27
28set npthr = 2.4mm
29
30set row1x = 15mm
31
32set row1y = 10mm
33
34set row2y = 12.5mm
35
36set r = 1.3mm
37
38set depth = 16.3mm
39
40set w = 5mil
41
42__0: vec @(0mm, frontedgey)
43__1: vec @(shieldx/2, 0mm)
44__2: vec @(-shieldx/2, 0mm)
45__3: vec __1(shieldr/2, shieldr/2)
46__4: vec __1(-shieldr/2, -shieldr/2)
47hole . __3
48__5: vec __2(shieldr/2, shieldr/2)
49__6: vec __2(-shieldr/2, -shieldr/2)
50hole . __5
51__7: vec __2(-factor*shieldr/2, factor*shieldr/2)
52__8: vec __2(factor*shieldr/2, -factor*shieldr/2)
53rpad "6" __7 .
54__9: vec __1(-factor*shieldr/2, factor*shieldr/2)
55__10: vec __1(factor*shieldr/2, -factor*shieldr/2)
56rpad "7" __9 .
57__11: vec __0(leftx, 0mm)
58__12: vec __0(-(frontx-leftx), 0mm)
59__13: vec @(0mm, -npthy)
60__14: vec .(-npthx/2, 0mm)
61__15: vec __13(npthx/2, 0mm)
62__16: vec .(npthr/2, npthr/2)
63__17: vec __15(-npthr/2, -npthr/2)
64hole . __16
65__18: vec __14(npthr/2, npthr/2)
66__19: vec __14(-npthr/2, -npthr/2)
67hole . __18
68__20: vec @(0mm, -row1y)
69__21: vec @(0mm, -row2y)
70__22: vec __20(r/2, r/2)
71__23: vec __20(-r/2, -r/2)
72hole . __22
73__24: vec __20(row1x/2, 0mm)
74__25: vec __20(-row1x/2, 0mm)
75__26: vec __21(row1y/2, 0mm)
76__27: vec __21(-row1y/2, 0mm)
77__28: vec __24(r/2, r/2)
78__29: vec __24(-r/2, -r/2)
79hole . __28
80__30: vec __25(r/2, r/2)
81__31: vec __25(-r/2, -r/2)
82hole . __30
83__32: vec __26(r/2, r/2)
84__33: vec __26(-r/2, -r/2)
85hole . __32
86__34: vec __27(-r/2, -r/2)
87__35: vec __27(r/2, r/2)
88hole __34 .
89__36: vec __24(factor*r/2, -factor*r/2)
90__37: vec __26(factor*r/2, -factor*r/2)
91__38: vec __24(-factor*r/2, factor*r/2)
92rpad "3" __36 .
93__39: vec __26(-factor*r/2, factor*r/2)
94rpad "5" __37 .
95__40: vec __20(factor*r/2, -factor*r/2)
96__41: vec __20(-factor*r/2, factor*r/2)
97rpad "2" __40 .
98__42: vec __27(-factor*r/2, factor*r/2)
99__43: vec __27(factor*r/2, -factor*r/2)
100rpad "4" . __42
101__44: vec __25(factor*r/2, -factor*r/2)
102__45: vec __25(-factor*r/2, factor*r/2)
103rpad "1" __44 .
104frame outline @
105measy __6 >> __5 shieldr/2
106measy __19 >> __18 npthr/2
107measy __31 >> __30 r/2
108measy __13 >> __1 -(leftx+0.8mm)
109measy __20 >> __1 -(leftx+1.8mm)
110measy __27 >> __1 -(leftx+row2y/2+2mm)
111meas __2 >> __1 -shieldr
112meas __25 >> __24 row1y-npthy+1.5mm
113meas __27 >> __26 factor*r/2
114meas __12 >> __11 1.6mm
115meas __0 >> __11 0.8mm
116measy __1 >> __0 -(leftx-shieldx/2+0.8mm)
117measy outline.__0 >> __11 -frontx-4mm
118

Archive Download this file

Branches:
master



interactive