// file: molex_header_2x20_2mm_90deg_thd_REV_geom.txt // // date: 4-Dec-2023 This is the REVERSE Pinout version of the // ---------------- // // Molex 2x20 2mm 90 degree THD Header // // This is the REVERSE Pinout version of the // ---------------- // of the geometry for the 40 pin 2 mm right angle // Through Hole Device Shrouded Male Header. // This geometry is directly 100% taken from that // original Normal Pinout version of the 2x20 // geometry. This Reverse version does NOT have // its own Pin/Pad Stacks. // Everything below here is 100% from the Orininal // Normal version except for: // // - Reverse Pinout // // - Mover the Pin #1 Silkscreen Indicators // // - Does NOT have its own Pin/Pad Stacks // // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // // // Molex part numbers: 87833-4020 or 87833-4021 // // These are the part numbers for the 15 u inch and 30 u inch gold // // // This layout will be all metric. // // The long axis of the pin array is horizontal. // // The Center of this geometry is in the center of its pin array. // // Overall external size: 42.65 mm in X by 8.4 mm in Y // // This geometry is written with Pin #1 in the SW corner, // pin #40 is in the NE corner. // // When placed on the edge of the DK board this connector needs // to be set back by about 7.4 mm from the edge of the card // (as an initial placement position). // // The pins closest to the board edge are about 6.4 mm from the edge. // // Molex specifies a 0.90 mm diameter hole for the pins. // They do not specify if this is the drill hole diameter // or the finished hole diameter. // // The Solder Tail of the THD pins is 2.16 mm long. // $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- // // Molex Header Pin Pad-Stack for the 2 mm headers. // // This Geom uses the Pin/Pad Stack from the // Original Normal Pinout version of the 2x20 // header Geom. // //---------------------------------------------------------------------------- // // Now the actual REVERSE 40 pin Right Angle 2 mm THD Header Geometry // $$create_component("Header_2mm_40pin_RA_Rev"); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$Header_2mm_40pin_RA_Rev'] ); $$point_mode(@vertex); $$attribute( "COMPONENT_HEIGHT", "", , @scale , , [ 8.0, 0.0 ]); $$attribute( "COMPONENT_OUTLINE_OVERHANG", "yes"); $$attribute( "COMPONENT_LAYOUT_SURFACE", "both"); // Setup the Component Placement Outline for this connector. $$initial([ 20.20, 6.00 ], , @nosnap ); $$terminal([ -20.20, 6.00 ] ); $$terminal([ -20.20, -2.20 ] ); $$terminal([ 20.20, -2.20 ] ); $$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale ); // Setup the SilkScreen for this connector. // Silkscreen on the Top Side start in NE corner and go CCW $$template_line_style( @Solid ); $$initial([ 21.33, 7.40 ], , @nosnap ); $$terminal([ 2.00, 7.40 ] ); $$terminal([ 2.00, 3.50 ] ); $$terminal([ -2.00, 3.50 ] ); $$terminal([ -2.00, 7.40 ] ); $$terminal([ -21.33, 7.40 ] ); $$terminal([ -21.33, -2.50 ] ); $$terminal([ 21.33, -2.50 ] ); $$terminal([ 21.33, 7.40 ] ); $$path( "SILKSCREEN_1", 0.20 ); // Pin #1 Arrows on the Top Side. $$initial([ 19.00, -5.30 ], , @nosnap ); $$terminal([ 20.00, -3.00 ] ); $$terminal([ 18.00, -3.00 ] ); $$terminal([ 19.00, -5.30 ] ); $$path( "SILKSCREEN_1", 0.20 ); $$initial([ 19.00, 4.30 ], , @nosnap ); $$terminal([ 20.20, 7.00 ] ); $$terminal([ 17.80, 7.00 ] ); $$terminal([ 19.00, 4.30 ] ); $$path( "SILKSCREEN_1", 0.20 ); // Reference Designator on the Top Side. $$text( "SILKSCREEN_1", "^$ref", 0.0, -7.0, 2.5, @BC, 0, 1.00, 0.20, "std", "None", 0.0, 0.0 ); // And now some silkscreen on the Bottom Side // Pin #1 Arrow on the Bottom Side. $$initial([ 19.00, -5.30 ], , @nosnap ); $$terminal([ 20.00, -3.00 ] ); $$terminal([ 18.00, -3.00 ] ); $$terminal([ 19.00, -5.30 ] ); $$path( "SILKSCREEN_2", 0.20 ); // Reference Designator on the Bottom Side. $$text( "SILKSCREEN_2", "^$ref", 0.0, 4.0, 2.5, @BC, 0, 1.00, 0.20, "std", "None", 0.0, 0.0 ); // End of Silkscreen // Now define the 40 THD Pins in this Right Angle Header $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [ 19.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "3", , @scale , , [ 17.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "3, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "5", , @scale , , [ 15.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "5, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "7", , @scale , , [ 13.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "7, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "9", , @scale , , [ 11.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "9, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "11", , @scale , , [ 9.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "11, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "13", , @scale , , [ 7.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "13, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "15", , @scale , , [ 5.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "15, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "17", , @scale , , [ 3.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "17, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "19", , @scale , , [ 1.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "19, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "21", , @scale , , [ -1.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "21, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "23", , @scale , , [ -3.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "23, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "25", , @scale , , [ -5.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "25, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "27", , @scale , , [ -7.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "27, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "29", , @scale , , [ -9.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "29, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "31", , @scale , , [ -11.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "31, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "33", , @scale , , [ -13.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "33, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "35", , @scale , , [ -15.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "35, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "37", , @scale , , [ -17.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "37, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "39", , @scale , , [ -19.00, 1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "39, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ 19.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "4", , @scale , , [ 17.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "4, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "6", , @scale , , [ 15.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "6, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "8", , @scale , , [ 13.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "8, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "10", , @scale , , [ 11.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "10, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "12", , @scale , , [ 9.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "12, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "14", , @scale , , [ 7.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "14, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "16", , @scale , , [ 5.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "16, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "18", , @scale , , [ 3.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "18, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "20", , @scale , , [ 1.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "20, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "22", , @scale , , [ -1.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "22, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "24", , @scale , , [ -3.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "24, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "26", , @scale , , [ -5.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "26, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "28", , @scale , , [ -7.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "28, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "30", , @scale , , [ -9.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "30, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "32", , @scale , , [ -11.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "32, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "34", , @scale , , [ -13.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "34, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "36", , @scale , , [ -15.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "36, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "38", , @scale , , [ -17.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "38, mm2_Signal_THD"); $$attribute( "COMPONENT_PIN_DEFINITION", "40", , @scale , , [ -19.00, -1.00 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "40, mm2_Signal_THD");