omdl  v0.9.5
OpenSCAD Mechanical Design Library
iso_4762.scad
Go to the documentation of this file.
1 //! [metric/screws] Socket cap screws; ISO 4762; DIN 912.
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 4762)
31  \amu_define group_brief ([metric/screws] Socket cap screws; ISO 4762; DIN 912.)
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 (Socket cap 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 4762 |
61  | DIN 912 |
62  | [ISO 4762] |
63  | [fasteners.eu] |
64 
65  [ISO 4762]: https://www.iso.org/standard/34460.html
66  [fasteners.eu]: https://www.fasteners.eu/standards/ISO/4762/
67 *******************************************************************************/
68 
69 //! <map> ISO 4762 fastener data table columns map.
70 //! \hideinitializer
72 [
73  ["ns", "nominal size"],
74  ["tp", "thread pitch"],
75  ["d_max", "body diameter"],
76  ["d_min", "body diameter"],
77  ["h_max", "head diameter"],
78  ["h_min", "head diameter"],
79  ["k_max", "head height"],
80  ["k_min", "head height"],
81  ["c_max", "top chamfer or radius"],
82  ["f_max", "fillet transition diameter"],
83  ["s_max", "socket size across the flats"],
84  ["s_min", "socket size across the flats"],
85  ["e_min", "socket size across the corners"],
86  ["t_min", "key engagement"],
87  ["w_min", "wall thickness"]
88 ];
89 
90 //! <table> ISO 4762 fastener data table rows.
91 //! \hideinitializer
93 [
94  ["M1.6",l_mm(0.35),l_mm( 1.60),l_mm( 1.46),l_mm( 3.14),l_mm( 2.86),l_mm( 1.60),l_mm( 1.46),l_mm(0.16),l_mm( 2.0),l_mm( 1.545),l_mm( 1.520),l_mm( 1.73),l_mm( 0.7),l_mm( 0.55)],
95  [ "M2",l_mm(0.40),l_mm( 2.00),l_mm( 1.86),l_mm( 3.98),l_mm( 3.62),l_mm( 2.00),l_mm( 1.86),l_mm(0.20),l_mm( 2.6),l_mm( 1.545),l_mm( 1.520),l_mm( 1.73),l_mm( 1.0),l_mm( 0.55)],
96  ["M2.5",l_mm(0.45),l_mm( 2.50),l_mm( 2.36),l_mm( 4.68),l_mm( 4.32),l_mm( 2.50),l_mm( 2.36),l_mm(0.25),l_mm( 3.1),l_mm( 2.045),l_mm( 2.020),l_mm( 2.30),l_mm( 1.1),l_mm( 0.85)],
97  [ "M3",l_mm(0.50),l_mm( 3.00),l_mm( 2.86),l_mm( 5.68),l_mm( 5.32),l_mm( 3.00),l_mm( 2.86),l_mm(0.30),l_mm( 3.6),l_mm( 2.560),l_mm( 2.520),l_mm( 2.87),l_mm( 1.3),l_mm( 1.15)],
98  [ "M4",l_mm(0.70),l_mm( 4.00),l_mm( 3.82),l_mm( 7.22),l_mm( 6.78),l_mm( 4.00),l_mm( 3.82),l_mm(0.40),l_mm( 4.7),l_mm( 3.071),l_mm( 3.020),l_mm( 3.44),l_mm( 2.0),l_mm( 1.40)],
99  [ "M5",l_mm(0.80),l_mm( 5.00),l_mm( 4.82),l_mm( 8.72),l_mm( 8.28),l_mm( 5.00),l_mm( 4.82),l_mm(0.50),l_mm( 5.7),l_mm( 4.084),l_mm( 4.020),l_mm( 4.58),l_mm( 2.5),l_mm( 1.90)],
100  [ "M6",l_mm(1.00),l_mm( 6.00),l_mm( 5.82),l_mm(10.22),l_mm( 9.78),l_mm( 6.00),l_mm( 5.70),l_mm(0.60),l_mm( 6.8),l_mm( 5.084),l_mm( 5.020),l_mm( 5.72),l_mm( 3.0),l_mm( 2.30)],
101  [ "M8",l_mm(1.25),l_mm( 8.00),l_mm( 7.78),l_mm(13.27),l_mm(12.73),l_mm( 8.00),l_mm( 7.64),l_mm(0.80),l_mm( 9.2),l_mm( 6.095),l_mm( 6.020),l_mm( 6.86),l_mm( 4.0),l_mm( 3.30)],
102  [ "M10",l_mm(1.50),l_mm(10.00),l_mm( 9.78),l_mm(16.27),l_mm(15.73),l_mm(10.00),l_mm( 9.64),l_mm(1.00),l_mm(11.2),l_mm( 8.115),l_mm( 8.025),l_mm( 9.15),l_mm( 5.0),l_mm( 4.00)],
103  [ "M12",l_mm(1.75),l_mm(12.00),l_mm(11.73),l_mm(18.27),l_mm(17.73),l_mm(12.00),l_mm(11.57),l_mm(1.20),l_mm(13.7),l_mm(10.115),l_mm(10.025),l_mm(11.43),l_mm( 6.0),l_mm( 4.80)],
104  [ "M16",l_mm(2.00),l_mm(16.00),l_mm(15.73),l_mm(24.33),l_mm(23.67),l_mm(16.00),l_mm(15.57),l_mm(1.60),l_mm(17.7),l_mm(14.142),l_mm(14.032),l_mm(16.00),l_mm( 8.0),l_mm( 6.80)],
105  [ "M20",l_mm(2.50),l_mm(20.00),l_mm(19.67),l_mm(30.33),l_mm(29.67),l_mm(20.00),l_mm(19.48),l_mm(2.00),l_mm(22.4),l_mm(17.230),l_mm(17.050),l_mm(19.44),l_mm(10.0),l_mm( 8.60)],
106  [ "M24",l_mm(3.00),l_mm(24.00),l_mm(23.67),l_mm(36.39),l_mm(35.61),l_mm(24.00),l_mm(23.48),l_mm(2.40),l_mm(26.4),l_mm(19.275),l_mm(19.065),l_mm(21.73),l_mm(12.0),l_mm(10.40)],
107  [ "M30",l_mm(3.50),l_mm(30.00),l_mm(29.67),l_mm(45.39),l_mm(44.61),l_mm(30.00),l_mm(29.48),l_mm(3.00),l_mm(33.4),l_mm(22.275),l_mm(22.065),l_mm(25.15),l_mm(15.5),l_mm(13.10)],
108  [ "M36",l_mm(4.00),l_mm(36.00),l_mm(35.61),l_mm(54.46),l_mm(53.54),l_mm(36.00),l_mm(35.38),l_mm(3.60),l_mm(39.4),l_mm(27.275),l_mm(27.065),l_mm(30.85),l_mm(19.0),l_mm(15.30)],
109  [ "M42",l_mm(4.50),l_mm(42.00),l_mm(41.61),l_mm(63.46),l_mm(62.54),l_mm(42.00),l_mm(41.38),l_mm(4.20),l_mm(45.6),l_mm(32.330),l_mm(32.080),l_mm(36.57),l_mm(24.0),l_mm(16.30)],
110  [ "M48",l_mm(5.00),l_mm(48.00),l_mm(47.61),l_mm(72.46),l_mm(71.54),l_mm(48.00),l_mm(47.38),l_mm(4.80),l_mm(52.6),l_mm(36.330),l_mm(36.080),l_mm(41.13),l_mm(28.0),l_mm(17.50)],
111  [ "M56",l_mm(5.50),l_mm(56.00),l_mm(55.54),l_mm(84.54),l_mm(83.46),l_mm(56.00),l_mm(55.26),l_mm(5.60),l_mm(63.0),l_mm(41.330),l_mm(41.080),l_mm(46.83),l_mm(34.0),l_mm(19.00)],
112  [ "M64",l_mm(6.00),l_mm(64.00),l_mm(63.54),l_mm(96.54),l_mm(95.46),l_mm(64.00),l_mm(63.26),l_mm(6.40),l_mm(71.0),l_mm(46.330),l_mm(46.080),l_mm(52.53),l_mm(38.0),l_mm(22.00)]
113 ];
114 
115 //! @}
116 //! @}
117 
118 //----------------------------------------------------------------------------//
119 // openscad-amu auxiliary scripts
120 //----------------------------------------------------------------------------//
121 
122 /*
123 BEGIN_SCOPE table;
124  BEGIN_OPENSCAD;
125  include <omdl-base.scad>;
126  include <database/component/fastener/iso_4762.scad>;
127 
128  // temporary override for table presentation.
129  // function l_mm(v) = round_s(length(v,"mm"), 4);
130 
131  length_unit_base = "mm";
132 
133  n = true; // number
134  hi = true; // include heading id
135  ht = true; // include heading description
136 
137  tr = dtr_fastener_metric_screws_iso_4762;
138  tc = dtc_fastener_metric_screws_iso_4762;
139 
140  table_write( tr, tc, number=n, heading_id=hi, heading_text=ht );
141 
142  // end_include
143  END_OPENSCAD;
144 
145  BEGIN_MFSCRIPT;
146  include --path "${INCLUDE_PATH}" {var_init,var_gen_term}.mfs;
147  include --path "${INCLUDE_PATH}" scr_make_mf.mfs;
148  END_MFSCRIPT;
149 END_SCOPE;
150 */
151 
152 //----------------------------------------------------------------------------//
153 // end of file
154 //----------------------------------------------------------------------------//
dtc_fastener_metric_screws_iso_4762
Definition: iso_4762.scad:275
dtr_fastener_metric_screws_iso_4762
Definition: iso_4762.scad:296
function l_mm(v)
Shorthand length conversion for millimeters.