// // file: res_1206 // // date: 2-MAR-2010 Initial draft // 2-Apr-2015 clean up just the names for Hub Module use // // // Geometry for the Resistor version of the 1206 component. // ---------- // // This is a 100% standard IPC 1206 resistor layout. // The 1206 courtyard is 5mm in X by 2mm in Y. // The center to center distance between pads is 2.80mm // The pad width (dimension along the center to center line) is 1.60mm. // The pad height is 1.50mm. // // Thus we (not IPC) call this pad 1.60mm in X by 1.50mm in Y. // $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- $$create_pin("res_1206_pad", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'PI$res_1206_pad'] ); $$point_mode(@vertex); $$polygon( "PAD", , [-0.800, -0.750, 0.800, -0.750, 0.800, 0.750, -0.800, 0.750] ); $$polygon( "SOLDER_MASK", , [-0.850, -0.800, 0.850, -0.800, 0.850, 0.800, -0.850, 0.800] ); $$polygon( "PASTE_MASK", , [-0.800, -0.750, 0.800, -0.750, 0.800, 0.750, -0.800, 0.750] ); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- $$create_component("res_1206", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$res_1206'] ); $$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 , , [-2.50, 1.00, 2.50, 1.00, 2.50, -1.00, -2.50, -1.00]); $$template_line_style( @Solid ); $$path( "SILKSCREEN", 0.20, , [-2.30, 1.10, 2.30, 1.10]); $$path( "SILKSCREEN", 0.20, , [-2.30, -1.10, 2.30, -1.10]); // 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_1206: // pin #1 is to the left, pin #2 to the right, the axis is horizontal $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [-1.400, 0.0]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1,res_1206_pad"); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ 1.400, 0.0]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2,res_1206_pad");