Root/modules/ledsmd.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 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 outline {
25    ll: vec @(-Ox/2, -Oy/2)
26    ur: vec @(Ox/2, Oy/2)
27    __0: vec @(0mm, W/2+D+clear)
28    __2: vec .(lightW/2, 0mm)
29    __1: vec .(lightS/2, -(W/2+D+clear-Oy/2))
30    line ur . w
31    line __2 . w
32    __3: vec __0(-lightW/2, 0mm)
33    line . __2 w
34    __4: vec .(-lightS/2, -(W/2+D+clear-Oy/2))
35    line . __3 w
36    __6: vec @(Ox/2, -Oy/2)
37    line ur . w
38    line . ll w
39    __7: vec @(-Ox/2, Oy/2)
40    line ll . w
41    line . __4 w
42    __12: vec @(Ox/2+2*clear, 0mm)
43    __13: vec .(0mm, Oy/2)
44    __14: vec __12(0mm, -Oy/2)
45    line __13 . w
46}
47
48package "LEDSMD-$name"
49unit auto
50
51table
52    { name, L, W, D, lightW, lightS, a, b, e, clear }
53    { "0603R", 1.6mm, 0.6mm, 0.6mm, 1.1mm, 1.2mm, 0.9mm, 1mm, 0.7mm, 0.15mm }
54
55set w = 5mil
56
57set Ox = e+2*a+2*clear
58
59set Oy = b+2*clear
60
61frame pads @
62frame outline @
63measx pad_l.w >> pad_r.ll -0.5mm
64measx pad_l.ll -> pad_l.w -0.5mm
65measy pad_l.ll >> pad_l.h 0.5mm
66measx outline.ll >> outline.ur Oy+1mm
67measy outline.ur >> outline.ll -Ox-1mm
68measx pad_l.ll >> pad_r.x -1mm
69

Archive Download this file

Branches:
master



interactive