rj45.fpd 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /* MACHINE-GENERATED ! */
  2. frame pShield {
  3. set rin = 1.63mm/2
  4. set rout = ratio*rin
  5. set n = i+13
  6. loop i = 0, 1
  7. __0: vec @(i*Shieldx, 0mm)
  8. __1: vec .(rin, rin)
  9. __2: vec __0(-rin, -rin)
  10. hole . __1
  11. __3: vec __0(rout, -rout)
  12. __4: vec __0(-rout, rout)
  13. rpad "$n" __3 . bare
  14. }
  15. frame hNPTH {
  16. set r = 3.18mm/2
  17. __0: vec @(r, r)
  18. __1: vec @(-r, -r)
  19. hole . __0
  20. }
  21. frame pNPTH {
  22. table
  23. { px, dx, n }
  24. { NPTHx/2, 1, 13 }
  25. { NPTHx/2, -1, 14 }
  26. __0: vec @(dx*px, 0mm)
  27. frame hNPTH .
  28. }
  29. frame pins {
  30. set rin = 0.89mm/2
  31. set rout = ratio*rin
  32. set n = i*2+1
  33. set m = i*2+2
  34. loop i = 0, 3
  35. __0: vec @(i*pitchP, 0mm)
  36. __1: vec .(rin, rin)
  37. __2: vec __0(-rin, -rin)
  38. hole . __1
  39. __3: vec __0(rout, -rout)
  40. __4: vec __0(-rout, rout)
  41. rpad "$n" . __3 bare
  42. __5: vec @(0mm, pitchP)
  43. __6: vec .(pitchP/2, 0mm)
  44. __7: vec .(i*pitchP, 0mm)
  45. __8: vec .(rin, rin)
  46. __9: vec __7(-rin, -rin)
  47. hole . __8
  48. __10: vec __7(rout, -rout)
  49. __11: vec __7(-rout, rout)
  50. rpad "$m" __10 . bare
  51. }
  52. frame pLed {
  53. set rin = 1.02mm/2
  54. set n = i+9
  55. set m = i+11
  56. set rout = ratio*rin
  57. loop i = 0, 1
  58. __0: vec @(i*pitchP, 0mm)
  59. __1: vec .(rout, -rout)
  60. __2: vec __0(rin, rin)
  61. __3: vec __0(-rin, -rin)
  62. hole . __2
  63. __4: vec __0(-rout, rout)
  64. rpad "$n" __1 . bare
  65. __5: vec @(pitchP+LEDx, 0mm)
  66. __6: vec .(i*pitchP, 0mm)
  67. __7: vec .(rin, rin)
  68. __8: vec __6(-rin, -rin)
  69. hole . __7
  70. __9: vec __6(rout, -rout)
  71. __10: vec __6(-rout, rout)
  72. rpad "$m" __9 . bare
  73. }
  74. frame outline {
  75. __0: vec @(W/2, -NPTHy)
  76. __1: vec @(-W/2, L-NPTHy)
  77. rect . __0 w
  78. }
  79. package "RJ45-8-LED"
  80. unit mm
  81. set NPTHx = 11.43mm
  82. set NPTHy = 10.8mm
  83. set L = 25.4mm
  84. set W = 16.2mm
  85. set ydiffShield = 3.3mm
  86. set Shieldx = 15.74mm
  87. set ratio = 1.6
  88. set yP1dist = 6.35mm
  89. set yShield = yP1dist-ydiffShield
  90. set pitchP = 2.54mm
  91. set ydiffLed = 7.37mm
  92. set LEDx = 5.84mm
  93. set w = 5mil
  94. __0: vec @(0mm, yP1dist)
  95. __1: vec .(-(2*pitchP-pitchP/4), 0mm)
  96. frame pins .
  97. __2: vec __0(0mm, ydiffLed)
  98. __3: vec .(-(LEDx/2+pitchP), 0mm)
  99. frame pLed .
  100. __4: vec @(0mm, yP1dist-ydiffShield)
  101. __5: vec .(-Shieldx/2, 0mm)
  102. frame pShield .
  103. frame pNPTH @
  104. frame outline @
  105. measy pNPTH.__0 >> __1 4mm
  106. measy __1 >> pins.__6 4mm
  107. measy __1 >> __3 5.3mm
  108. meas pNPTH.__0 >> pNPTH.__0 -2mm
  109. meas __5 >> pShield.__0 -6mm
  110. meas pLed.__5 >> pLed.__6 1.3mm
  111. meas pLed.__5 << pLed.__0 1.3mm
  112. meas pins.__6 -> pins.__7 1.3mm
  113. measx __1 >> pins.__6 4mm
  114. measy outline.__0 >> outline.__1 -1.5mm
  115. measx outline.__1 >> outline.__0 1.5mm
  116. measy hNPTH.__1 -> hNPTH.__0 -3.18mm-0.5mm
  117. measy pShield.__2 -> pShield.__1 -1.63mm-1mm
  118. measy pins.__2 -> pins.__1 -0.89mm-0.5mm
  119. measy pins.__9 -> pins.__8 -0.89mm-0.5mm
  120. measy pLed.__3 -> pLed.__2 -1.02mm-0.5mm