
//
//  File:  ten20_7211wir.txt
//
//  Date:  Original Rev.   2-Dec-2022
//                       17-July-2024   Make a 2nd version of the Pin/Pad Stack for this
//                                      component with more Plane Relief  for use on the
//                                      2  100 Volt  power input pins,  i.e. pins 1 & 2
//
//
//
//     This is the Geometry for the
//
//           TEN20-7211WIR
//          ---------------
//
//        Power Supply Module
//
//
//   This is a  100 Volt  to  5 Volt  Isolated power supply.
//
//
//   Note that the 0,0 of this geometry is in its center.
//
//   Note that this geometry has its own  "internal"
//   padstack.
//
//
//   Pins on this  100 Volt  to  5 Volt  Isolated power supply
//   are about  1.0 mm  or  about  40 mil in diameter.
//
//
//   This geometry includes 1 padstack:
//
//     term_ten20           for the 1.0 mm pins
//
//
//   The layout orientation of the geometry is with
//   its long axis horizontal and pin #1 in the NE corner.
//
//
//   NOTE:  See the notes below in the Pin List.
//
//



$abort_enable = @false;
$$lock_windows(@on) ;
$$snap_diagonal(@off) ;
$$snap_orthogonal(@off) ;


//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//
//
//   1.0 mm diameter  padstack for the Isolated Power Supply Module
//
//
//     1.60 mm  drill
//     3.50 mm  pad land
//     3.60 mm  soldermask opening
//     2.80 mm  plane relief
//
//
//     --> the pin to drill hole wall solder gap  0.30 mm
//         on each side of the pin
//
//     --> the thickness of the donut wall is     0.70 mm
//
//     --> the Plane Relief Air Gap is            0.60 mm
//         from the edge of the Drill Hole
//                  ----------------------
//


$$create_pin("term_ten20", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_ten20']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [ 1.60,  0.0]);

$$circle( "PAD",                            0.0, 0.0,  3.50,  0.0);

$$circle( "SIGNAL",                         0.0, 0.0,  3.50,  0.0);

$$circle( "SOLDER_MASK",                    0.0, 0.0,  3.60,  0.0);

$$circle( "POWER",                          0.0, 0.0,  2.80,  0.0);

//----------------------------------------------------------------------------
//----------------------------------------------------------------------------


//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//
//
//   1.0 mm diameter  padstack for the "High Voltage" Power Input Pins
//
//
//     1.60 mm  drill
//     3.50 mm  pad land
//     3.60 mm  soldermask opening
//     4.00 mm  plane relief
//
//
//     --> the pin to drill hole wall solder gap  0.30 mm
//         on each side of the pin
//
//     --> the thickness of the donut wall is     0.70 mm
//
//     --> the Plane Relief Air Gap is            1.20 mm
//         from the edge of the Drill Hole
//                  ----------------------
//


$$create_pin("term_ten20_HV", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_ten20_HV']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [ 1.60,  0.0]);

$$circle( "PAD",                            0.0, 0.0,  3.50,  0.0);

$$circle( "SIGNAL",                         0.0, 0.0,  3.50,  0.0);

$$circle( "SOLDER_MASK",                    0.0, 0.0,  3.60,  0.0);

$$circle( "POWER",                          0.0, 0.0,  4.00,  0.0);

//----------------------------------------------------------------------------
//----------------------------------------------------------------------------


//
//  Now the actual  TEN20-7211WIR  Geometry
//

$$create_component("TEN20_Power");

$$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$TEN20_Power'] );

$$point_mode(@vertex);


$$attribute( "COMPONENT_HEIGHT", "", , @scale , , [8.0, 0.0]);

$$attribute( "COMPONENT_OUTLINE_OVERHANG", "no");

$$attribute( "COMPONENT_LAYOUT_SURFACE", "both");


//
//  Component Outline
//

$$initial([   25.000,   12.500 ], , @nosnap );
$$terminal([ -25.000,   12.500 ]);
$$terminal([ -25.000,  -12.500 ]);
$$terminal([  25.000,  -12.500 ]);
$$terminal([  25.000,   12.500 ]);

$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale );



//
//  Silkscreen Outline
//

$$template_line_style( @Solid );

$$initial([   26.000,   13.500 ], , @nosnap );
$$terminal([ -26.000,   13.500 ]);
$$terminal([ -26.000,  -13.500 ]);
$$terminal([  26.000,  -13.500 ]);
$$terminal([  26.000,   13.500 ]);

$$path( "SILKSCREEN", 0.20 );

//
//    Silkscreen  End of
//



//
//  Reference Designator
//

$$text( "SILKSCREEN", "^$ref",  0.0,  16.0,  2.5, @BC, 0, 1.00, 0.20, "std", "None", 0.0, 0.0 );




//
//   Pins on the ATCA Isolated  TEN20-7211WIR  module.
//
//
//     1   Input Positive      +100 Volt
//     2   Input Negative      Return
//
//     3   Output Positive     +5 Volt
//     4   Output Voltage Trim
//     5   Output Negative     Return
//
//     6   On/Off Control wrt negative input
//


$$attribute( "COMPONENT_PIN_DEFINITION",     "1", , @scale , ,      [  10.16,    2.54 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "1,  term_ten20_HV");

$$attribute( "COMPONENT_PIN_DEFINITION",     "2", , @scale , ,      [  10.16,   -2.54 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "2,  term_ten20_HV");


$$attribute( "COMPONENT_PIN_DEFINITION",     "3", , @scale , ,      [ -10.16,   10.16 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "3,  term_ten20");

$$attribute( "COMPONENT_PIN_DEFINITION",     "4", , @scale , ,      [ -10.16,    0.00 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "4,  term_ten20");

$$attribute( "COMPONENT_PIN_DEFINITION",     "5", , @scale , ,      [ -10.16,  -10.16 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "5,  term_ten20");


$$attribute( "COMPONENT_PIN_DEFINITION",     "6", , @scale , ,      [  10.16,  -10.16 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "6,  term_ten20");



