// // file: res_2010 // // date: 21-Dec-2015 // // // Geometry for the Resistor version of the 2010 component. // ---------- // // This is a 100% standard IPC 0805 resistor layout: // // The 2010 courtyard is: 7 mm in X by 3 mm in Y. // The center to center distance between pads is: 4.40 mm // The pad width X (along the center line) is: 1.80 mm // The pad height Y is: 2.50 mm // // Thus we (not IPC) call this pad 1.80 mm in X by 2.50 mm in Y. $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- $$create_pin("res_2010_pad", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'PI$res_2010_pad'] ); $$point_mode(@vertex); $$polygon( "PAD", , [ -0.900, -1.250, 0.900, -1.250, 0.900, 1.250, -0.900, 1.250 ] ); $$polygon( "SOLDER_MASK", , [ -0.950, -1.300, 0.950, -1.300, 0.950, 1.300, -0.950, 1.300 ] ); $$polygon( "PASTE_MASK", , [ -0.900, -1.250, 0.900, -1.250, 0.900, 1.250, -0.900, 1.250 ] ); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- $$create_component("res_2010", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$res_2010'] ); $$point_mode(@vertex); $$attribute( "COMPONENT_LAYOUT_TYPE", "surface"); $$attribute( "COMPONENT_LAYOUT_SURFACE", "both"); $$attribute( "COMPONENT_HEIGHT", "", , @scale , , [0.028, 0.0]); $$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", , @scale , , [ -3.50, 1.50, 3.50, 1.50, 3.50, -1.50, -3.50, -1.50 ]); $$template_line_style( @Solid ); $$path( "SILKSCREEN", 0.20, , [ -2.80, 1.50, 2.80, 1.50 ]); $$path( "SILKSCREEN", 0.20, , [ -2.80, -1.50, 2.80, -1.50 ]); // 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_2010: // // pin #1 is to the left, pin #2 to the right, the axis is horizontal // $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [ -2.20, 0.0 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, res_2010_pad"); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ 2.20, 0.0 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, res_2010_pad");