// // file: atca_handle_switch // // date: 29-Mar-2015 original version // // 11-Jun-2016 Change from 0.90 mm to 1.00 mm // rear location pin drill hole // // 29-Jun-2016 Change Geometry name to ATCA_HNDL_SWCH // // // // Geometry for the ATCA Handle Switch // ------------------ // // // This is the ATCA handle switch that is used to coordinate // the card Hot Swap operation. // // This part is C&K basic part number SDS00x with x // in the range 1:5 where the different versions cover such // options as N.O. vs N.C. and Ag vs Au. // // This geometry includes 2 types of SMD pads. // // This geometry is built with the long plunger axis of the // switch horizontal and the plunger to the right. // // Pins 1 and 2 are the switch contacts, pins 3 and 4 are // for mechanical mounting and make no electrical connection. // // This switch uses 2 mechanical through holes to located it // and help hold it in position. The back holes is an oval // but in this initial virsion will just be a circular holes. // // This switch is 2.0 mm thick and it mounts on Side 2 of // the ATCA PCB. // // The electrical pads at the front of the switch are // 1.0 mm in X by 1.2 mm in Y. // // The mechanical pads at the back of the switch are // 1.3 mm in X by 1.1 mm in Y. // // The center of this geometry is vertically in the center // (i.e. along the long plunger axis of the switch) and // horizontally it is right where the plunger enters the // body of the switch. // // $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- $$create_pin("atca_swtch_frnt_pad", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'PI$atca_swtch_frnt_pad' ]); $$point_mode(@vertex); $$polygon( "PAD", , [ -0.50, -0.60, 0.50, -0.60, 0.50, 0.60, -0.50, 0.60 ] ); $$polygon( "SOLDER_MASK", , [ -0.55, -0.65, 0.55, -0.65, 0.55, 0.65, -0.55, 0.65 ] ); $$polygon( "PASTE_MASK", , [ -0.50, -0.60, 0.50, -0.60, 0.50, 0.60, -0.50, 0.60 ] ); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- $$create_pin("atca_swtch_back_pad", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'PI$atca_swtch_back_pad' ]); $$point_mode(@vertex); $$polygon( "PAD", , [ -0.65, -0.55, 0.65, -0.55, 0.65, 0.55, -0.65, 0.55 ] ); $$polygon( "SOLDER_MASK", , [ -0.70, -0.60, 0.70, -0.60, 0.70, 0.60, -0.70, 0.60 ] ); $$polygon( "PASTE_MASK", , [ -0.65, -0.55, 0.65, -0.55, 0.65, 0.55, -0.65, 0.55 ] ); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- $$create_component("ATCA_HNDL_SWCH", @replace); $$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$ATCA_HNDL_SWCH'] ); $$point_mode(@vertex); $$attribute( "COMPONENT_LAYOUT_TYPE", "surface"); $$attribute( "COMPONENT_LAYOUT_SURFACE", "both"); $$attribute( "COMPONENT_HEIGHT", "", , @scale , , [ 2.0, 0.0 ]); // // Component Placement Outline for the qfn-16 // $$initial([ -4.60, -3.50 ], , @nosnap ); $$terminal([ -4.60, 3.50 ] ); $$terminal([ 0.00, 3.50 ] ); $$terminal([ 0.00, -3.50 ] ); $$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale ); // // Silkscreen // $$template_line_style( @Solid ); // Body Horz Lines $$path( "SILKSCREEN", 0.20, , [ -5.70, 2.50, -4.70, 2.50 ]); $$path( "SILKSCREEN", 0.20, , [ -5.70, -2.50, -4.70, -2.50 ]); $$path( "SILKSCREEN", 0.20, , [ -2.70, 2.50, -1.60, 2.50 ]); $$path( "SILKSCREEN", 0.20, , [ -2.70, -2.50, -1.60, -2.50 ]); $$path( "SILKSCREEN", 0.20, , [ 0.10, 2.50, 0.40, 2.50 ]); $$path( "SILKSCREEN", 0.20, , [ 0.10, -2.50, 0.40, -2.50 ]); // Body Vert Lines $$path( "SILKSCREEN", 0.20, , [ 0.40, -2.50, 0.40, 2.50 ]); $$path( "SILKSCREEN", 0.20, , [ -5.70, -2.50, -5.70, 2.50 ]); // Plunger Lines $$path( "SILKSCREEN", 0.20, , [ 0.40, 0.60, 2.30, 0.60 ]); $$path( "SILKSCREEN", 0.20, , [ 0.40, -0.60, 2.30, -0.60 ]); $$path( "SILKSCREEN", 0.20, , [ 2.30, 0.60, 2.50, 0.40 ]); $$path( "SILKSCREEN", 0.20, , [ 2.50, 0.40, 2.50, -0.40 ]); $$path( "SILKSCREEN", 0.20, , [ 2.50, -0.40, 2.30, -0.60 ]); // Plunger - switch state and full in positions $$path( "SILKSCREEN", 0.20, , [ 2.10, 0.60, 2.10, 0.40 ]); $$path( "SILKSCREEN", 0.20, , [ 2.10, 0.10, 2.10, -0.10 ]); $$path( "SILKSCREEN", 0.20, , [ 2.10, -0.40, 2.10, -0.60 ]); $$path( "SILKSCREEN", 0.20, , [ 0.60, 0.60, 0.60, 0.40 ]); $$path( "SILKSCREEN", 0.20, , [ 0.60, 0.10, 0.60, -0.10 ]); $$path( "SILKSCREEN", 0.20, , [ 0.60, -0.40, 0.60, -0.60 ]); // // End of Silk // // // Drill Holes for the 2 plastic mounting posts // // - The front hole is a 0.90 mm circular hole // // - The rear hole is actual an oval. This oval is // made wih a 0.9 mm drill the center of which // moves by 0.35 mm in moving from one focus to // the other of the oval. // // - Note that on the part both of these are just // plastic pins 0.80 mm in diameter spaced // 3.0 mm apart. // // - For now I will make the front hole with a 0.90 mm drill // and I will make the rear hole with a 1.00 mm drill // to let the rear pin float around a little which must // be the point of the fancy oval hole specified by C&K. // // Front Hole $$attribute( "DRILL_DEFINITION_UNPLATED", "0.90", , @scale , , [ -1.25, 0.00 ]); $$circle( "POWER", -1.25, 0.00, 1.20, 0.0); // Rear Hole $$attribute( "DRILL_DEFINITION_UNPLATED", "1.00", , @scale , , [ -4.25, 0.00 ]); $$circle( "POWER", -4.25, 0.00, 1.30, 0.0); // // 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 four pins on the ATCA Handle Switch // // the electrical pins at the front of the switch // pin #1 is to the top and pin #2 to the bottom. // $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [ -0.75, 2.70 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, atca_swtch_frnt_pad"); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ -0.75, -2.70 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, atca_swtch_frnt_pad"); // the mechanical pins at the back of the switch // pin #3 is to the top and pin #4 to the bottom. // $$attribute( "COMPONENT_PIN_DEFINITION", "3", , @scale , , [ -3.70, 2.65 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "3, atca_swtch_back_pad"); $$attribute( "COMPONENT_PIN_DEFINITION", "4", , @scale , , [ -3.70, -2.65 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "4, atca_swtch_back_pad");