omdl  v0.9.5
OpenSCAD Mechanical Design Library
iso_7046_1p.scad
Go to the documentation of this file.
1 //! [metric/screws] Phillips flat head machine screws; ISO 7046-1p; DIN 965.
2 /***************************************************************************//**
3  \file
4  \author Roy Allen Sutton
5  \date 2024
6 
7  \copyright
8 
9  This file is part of [omdl] (https://github.com/royasutton/omdl),
10  an OpenSCAD mechanical design library.
11 
12  The \em omdl is free software; you can redistribute it and/or modify
13  it under the terms of the [GNU Lesser General Public License]
14  (http://www.gnu.org/licenses/lgpl.html) as published by the Free
15  Software Foundation; either version 2.1 of the License, or (at
16  your option) any later version.
17 
18  The \em omdl is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  Lesser General Public License for more details.
22 
23  You should have received a copy of the GNU Lesser General Public
24  License along with the \em omdl; if not, write to the Free Software
25  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26  02110-1301, USA; or see <http://www.gnu.org/licenses/>.
27 
28  \details
29 
30  \amu_define group_name (ISO 7046-1p)
31  \amu_define group_brief ([metric/screws] Phillips flat head machine screws; ISO 7046-1p; DIN 965.)
32 
33  \amu_include (include/amu/pgid_path_pstem_pg.amu)
34  \amu_text parent (${parent}_Metric_Screws)
35 *******************************************************************************/
36 
37 //----------------------------------------------------------------------------//
38 
39 /***************************************************************************//**
40  \amu_include (include/amu/group_in_parent_start.amu)
41  \amu_include (include/amu/includes_required.amu)
42 
43  \details
44 
45  \amu_define output_scad (false)
46  \amu_define output_console (false)
47 
48  \amu_define title (Phillips flat head machine screws)
49  \amu_define notes_table ()
50 
51  \amu_include (include/amu/scope_table.amu)
52 
53  \note The measurements in the table above are shown with:
54  \c length_unit_base="mm". These measurements will
55  convert when the base units are changed. See \ref units_length
56  for more information on setting the base units.
57 
58  | References: |
59  |:----------------|
60  | ISO 7046-1p |
61  | DIN 965 |
62  | [ISO 7046-1] |
63  | [fasteners.eu] |
64 
65  [ISO 7046-1]: https://www.iso.org/standard/57373.html
66  [fasteners.eu]: https://www.fasteners.eu/standards/ISO/7046/
67 *******************************************************************************/
68 
69 //! <map> ISO 7046-1p fastener data table columns map.
70 //! \hideinitializer
72 [
73  ["ns", "nominal size"],
74  ["tp", "thread pitch"],
75  ["a_max", "head diameter"],
76  ["a_min", "head diameter"],
77  ["h_max", "head height"],
78  ["m_ref", "recess diameter"],
79  ["g_max", "recess penetration"],
80  ["g_min", "recess penetration"],
81  ["u_max", "thread runout"],
82  ["t", "phillips driver size"]
83 ];
84 
85 //! <table> ISO 7046-1p fastener data table rows.
86 //! \hideinitializer
88 [
89  ["M1.6",l_mm(0.35),l_mm( 3.00),l_mm( 2.70),l_mm(1.00),l_mm( 1.6),l_mm(0.9),l_mm(0.6),l_mm(0.7),undef],
90  [ "M2",l_mm(0.40),l_mm( 3.80),l_mm( 3.50),l_mm(1.20),l_mm( 1.9),l_mm(1.2),l_mm(0.9),l_mm(0.8),undef],
91  ["M2.5",l_mm(0.45),l_mm( 4.70),l_mm( 4.40),l_mm(1.50),l_mm( 2.9),l_mm(1.8),l_mm(1.4),l_mm(0.9), 1],
92  [ "M3",l_mm(0.50),l_mm( 5.50),l_mm( 5.20),l_mm(1.65),l_mm( 3.2),l_mm(2.1),l_mm(1.7),l_mm(1.0), 1],
93  [ "M4",l_mm(0.70),l_mm( 8.40),l_mm( 8.04),l_mm(2.70),l_mm( 4.6),l_mm(2.6),l_mm(2.1),l_mm(1.4), 2],
94  [ "M5",l_mm(0.80),l_mm( 9.30),l_mm( 8.94),l_mm(2.70),l_mm( 5.2),l_mm(3.2),l_mm(2.7),l_mm(1.6), 2],
95  [ "M6",l_mm(1.00),l_mm(11.30),l_mm(10.87),l_mm(3.30),l_mm( 6.8),l_mm(3.5),l_mm(3.0),l_mm(2.0), 3],
96  [ "M8",l_mm(1.25),l_mm(15.80),l_mm(15.37),l_mm(4.65),l_mm( 8.9),l_mm(4.6),l_mm(4.0),l_mm(2.5), 4],
97  [ "M10",l_mm(1.50),l_mm(18.30),l_mm(17.78),l_mm(5.00),l_mm(10.0),l_mm(5.7),l_mm(5.1),l_mm(3.0), 4]
98 ];
99 
100 //! @}
101 //! @}
102 
103 //----------------------------------------------------------------------------//
104 // openscad-amu auxiliary scripts
105 //----------------------------------------------------------------------------//
106 
107 /*
108 BEGIN_SCOPE table;
109  BEGIN_OPENSCAD;
110  include <omdl-base.scad>;
111  include <database/component/fastener/iso_7046_1p.scad>;
112 
113  // temporary override for table presentation.
114  // function l_mm(v) = round_s(length(v,"mm"), 4);
115 
116  length_unit_base = "mm";
117 
118  n = true; // number
119  hi = true; // include heading id
120  ht = true; // include heading description
121 
122  tr = dtr_fastener_metric_screws_iso_7046_1p;
123  tc = dtc_fastener_metric_screws_iso_7046_1p;
124 
125  table_write( tr, tc, number=n, heading_id=hi, heading_text=ht );
126 
127  // end_include
128  END_OPENSCAD;
129 
130  BEGIN_MFSCRIPT;
131  include --path "${INCLUDE_PATH}" {var_init,var_gen_term}.mfs;
132  include --path "${INCLUDE_PATH}" scr_make_mf.mfs;
133  END_MFSCRIPT;
134 END_SCOPE;
135 */
136 
137 //----------------------------------------------------------------------------//
138 // end of file
139 //----------------------------------------------------------------------------//
dtr_fastener_metric_screws_iso_7046_1p
dtc_fastener_metric_screws_iso_7046_1p
function l_mm(v)
Shorthand length conversion for millimeters.