// // file: res_2512 // // date: 28-Mar-2015 // // // Geometry for the Resistor version of the 2512 component. // ---------- // // This is a 100% standard IPC 2512 resistor layout: // // The 2512 courtyard is: 8 mm in X by 4 mm in Y. // The pad width X (along the center line) is: 1.80 mm // The pad height Y is: 3.10 mm // The center to center distance between pads is: 5.60 mm // // Thus we (not IPC) call this pad 1.80 mm in X by 3.10 mm in Y. // $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- $$create_pin("res_2512_pad", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'PI$res_2512_pad'] ); $$point_mode(@vertex); $$polygon( "PAD", , [ -0.90, -1.55, 0.90, -1.55, 0.90, 1.55, -0.90, 1.55 ] ); $$polygon( "SOLDER_MASK", , [ -0.95, -1.60, 0.95, -1.60, 0.95, 1.60, -0.95, 1.60 ] ); $$polygon( "PASTE_MASK", , [ -0.90, -1.55, 0.90, -1.55, 0.90, 1.55, -0.90, 1.55 ] ); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- $$create_component("res_2512", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$res_2512'] ); $$point_mode(@vertex); $$attribute( "COMPONENT_LAYOUT_TYPE", "surface"); $$attribute( "COMPONENT_LAYOUT_SURFACE", "both"); $$attribute( "COMPONENT_HEIGHT", "", , @scale , , [0.028, 0.0]); // // Component Placement Outline for the qfn-16 // $$initial([ -4.00, -1.80 ], , @nosnap ); $$terminal([ -4.00, 1.80 ] ); $$terminal([ 4.00, 1.80 ] ); $$terminal([ 4.00, -1.80 ] ); $$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale ); $$template_line_style( @Solid ); $$path( "SILKSCREEN", 0.20, , [ -3.70, 1.90, 3.70, 1.90 ]); $$path( "SILKSCREEN", 0.20, , [ -3.70, -1.90, 3.70, -1.90 ]); // Reference Designator is on the SILKSCREEN layer. $$text( "SILKSCREEN", "^$ref", 0.0, 0.0, 1.5, @CC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 ); // // Define the two pins on the res_2512: // // pin #1 is to the left, pin #2 to the right, the axis is horizontal // $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [ -2.80, 0.0 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, res_2512_pad"); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ 2.80, 0.0 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, res_2512_pad");