c-smd.fpd 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* MACHINE-GENERATED ! */
  2. frame pad {
  3. __0: vec @(b/2, a/2)
  4. __1: vec @(-b/2, -a/2)
  5. pad "$pin" . __0
  6. }
  7. frame pads {
  8. table
  9. { pin, dx, dy }
  10. { 1, -1, -1 }
  11. { 2, 1, -1 }
  12. __0: vec @(dx*Gx/2, 0mm)
  13. frame pad .
  14. }
  15. frame outline_B {
  16. __0: vec @(-(B1/2-0.17*B1+w), A1/2+w)
  17. __1: vec @(-(B1/2-0.17*B1+w), -(A1/2+w))
  18. __2: vec @(B1/2+w, A1/2+w)
  19. line __0 . w
  20. __4: vec .(0mm, -(A1-a)/2)
  21. line __2 . w
  22. __3: vec @(B1/2+w, -(A1/2+w))
  23. line __1 . w
  24. __5: vec .(0mm, (A1-a)/2)
  25. line __3 . w
  26. }
  27. frame outline_slope {
  28. table
  29. { px, py, x, y }
  30. { -(B1/2+w-0.085*B1), A1/2-0.085*A1, 0.17*B1, 0.17*A1+2*w }
  31. { -(B1/2+w-0.085*B1), -(A1/2-0.085*A1), 0.17*B1, -(0.17*A1+2*w) }
  32. __0: vec @(px, py)
  33. __1: vec .(-x/2, -y/2)
  34. __2: vec __0(x/2, y/2)
  35. line . __1 w
  36. }
  37. frame outline {
  38. table
  39. { px, py, x, y }
  40. { -(B1+2*w)/2, 0.17*A1+3*w, 0mm, 0.15*A1 }
  41. { -(B1+2*w)/2, -0.17*A1-3*w, 0mm, 0.15*A1 }
  42. __0: vec @(px, py)
  43. __1: vec .(x/2, y/2)
  44. __2: vec __0(-x/2, -y/2)
  45. line . __1 w
  46. }
  47. package "c-smd-${D}x${L}"
  48. unit mm
  49. table
  50. { D, L, Gx, A1, B1, a, b, c, d }
  51. { 5mm, 6.1mm, b+c, 5.3mm, 5.3mm, 1.6mm, 3mm, 1.4mm, 2*b+c }
  52. { 6.3mm, 8mm, b+c, 6.6mm, 6.6mm, 1.6mm, 3.5mm, 2.1mm, 2*b+c }
  53. { 8mm, 10.5mm, b+c, 8.3mm, 8.3mm, 2.2mm, 4.1mm, 3mm, 2*b+c }
  54. { 10mm, 10.5mm, b+c, 10.3mm, 10.3mm, 2.2mm, 4.3mm, 4.5mm, 2*b+c }
  55. set w = 5mil
  56. frame pads @
  57. frame outline @
  58. frame outline_slope @
  59. frame outline_B @
  60. measy pad.__1 -> pad.__0 0.5mm
  61. measx pad.__1 -> pad.__0 -1mm
  62. measx pad.__0 >> pad.__1 1mm
  63. measx outline.__2 >> outline.__1 -1mm
  64. meas pads.__0 >> pads.__0 2.5mm
  65. measx outline_B.__2 << outline.__1 A1/2-1.5mm
  66. meas outline_B.__3 >> outline_B.__2 -b/2