steve/inch-flat-head-screw
Flat head (countersunk) socket cap screw, inch, ASME B18.3, #0 to 1/2 in, UNC/UNF, any length, with catalogue sizes as presets.
Hexagon socket countersunk head screw, ISO 10642 / DIN 7991, M3 to M12, any length, with catalogue sizes as presets.
| 1 | """Hexagon socket countersunk head screw, ISO 10642 (DIN 7991), M3 to M12, any length. |
| 2 | |
| 3 | Envelope model for assemblies: 90 degree countersunk head (the cone of the theoretical sharp-edge diameter dk th and |
| 4 | height k, its rim turned to the actual head diameter dk min, so it sits in a countersink exactly as the standard |
| 5 | intends), hexagon socket (key size s, depth t min) and a plain shank at the nominal thread diameter d (the thread is not |
| 6 | modelled). The head's top face is on the XY plane at the origin, the screw along -Z; `length` is the nominal length |
| 7 | l, the overall length (head included), as the standard measures it. |
| 8 | """ |
| 9 | from steve import Model |
| 10 | |
| 11 | size = "M4" # Thread size |
| 12 | length = 12 # mm Nominal length (overall, head included) |
| 13 | material = "steel" # Material |
| 14 | |
| 15 | # ISO 10642:2004, Table 1 (official preview p. 4: |
| 16 | # https://cdn.standards.iteh.ai/samples/34454/32dec7e84d974361b85f744935ab2175/ISO-10642-2004.pdf; also |
| 17 | # https://fasten.it/en/Norms/Norm/DIN%20EN%20ISO%2010642, editions 2004-06 and 2013-04). size: (thread d, head diameter dk theoretical max, head diameter dk actual min, |
| 18 | # head height k max, hexagon socket s, socket depth t min) |
| 19 | DIMENSIONS = { |
| 20 | "M3": (3.0, 6.72, 5.54, 1.86, 2.0, 1.1), |
| 21 | "M4": (4.0, 8.96, 7.53, 2.48, 2.5, 1.5), |
| 22 | "M5": (5.0, 11.2, 9.43, 3.1, 3.0, 1.9), |
| 23 | "M6": (6.0, 13.44, 11.34, 3.72, 4.0, 2.2), |
| 24 | "M8": (8.0, 17.92, 15.24, 4.96, 5.0, 3.0), |
| 25 | "M10": (10.0, 22.4, 19.22, 6.2, 6.0, 3.6), |
| 26 | "M12": (12.0, 26.88, 23.12, 7.44, 8.0, 4.3), |
| 27 | } |
| 28 | # material choice: (STEVE material library id, appearance colour) |
| 29 | MATERIALS = { |
| 30 | "steel": ("steel-generic", "#2b2d30"), # property class 8.8 / 10.9 / 12.9, black oxide finish |
| 31 | "stainless-a2": ("stainless-304", "#c9ccd0"), # ISO 3506-1 A2-70 |
| 32 | "stainless-a4": ("stainless-316", "#c9ccd0"), # ISO 3506-1 A4-70 / A4-80 |
| 33 | } |
| 34 | |
| 35 | d, dk_th, dk, k, s, t = DIMENSIONS[size] |
| 36 | material_id, colour = MATERIALS[material] |
| 37 | total = max(length, k + 0.5) |
| 38 | land = (dk_th - dk) / 2 # the 90° cone reaches dk this far under the top face |
| 39 | |
| 40 | model = Model() |
| 41 | with model.sketch("profile", on="XZ", name="Profile") as sk: |
| 42 | sk.polyline("outline", [(0, 0), (dk / 2, 0), (dk / 2, -land), (d / 2, -k), (d / 2, -total), (0, -total)]) |
| 43 | model.revolve("body", "profile", axis="Z", name="Screw") |
| 44 | with model.sketch("socket_sketch", on="XY", name="Hexagon socket") as sk: |
| 45 | sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False) |
| 46 | model.extrude("socket", "socket_sketch", distance=-t, op="cut", name="Socket") |
| 47 | model.material(material_id, color=colour) |
| 48 | result = model.result() |
| 49 |
| 1 | name = "steve/countersunk-screw" |
| 2 | version = "2.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "Hexagon socket countersunk head screw, ISO 10642 / DIN 7991, M3 to M12, any length, with catalogue sizes as presets." |
| 6 | description = """ISO 10642 (DIN 7991) hexagon socket countersunk head screw. Envelope geometry for assemblies: 90° \ |
| 7 | head (the theoretical sharp-edge cone of height k, rim at the actual head diameter dk min), hexagon socket (s, t min) and a plain shank at the nominal \ |
| 8 | thread diameter; the thread itself is not modelled. |
| 9 | |
| 10 | The head's top face is on the XY plane at the origin and the screw points along -Z; `length` is the nominal length, \ |
| 11 | overall (head included), as the standard measures it. Dimensions from ISO 10642:2004 Table 1 (see the README).""" |
| 12 | tags = ["fastener", "screw", "countersunk", "flat-head", "iso-10642", "din-7991", "metric"] |
| 13 | |
| 14 | [parameters.size] |
| 15 | type = "choice" |
| 16 | default = "M4" |
| 17 | choices = ["M3", "M4", "M5", "M6", "M8", "M10", "M12"] |
| 18 | label = "Thread size" |
| 19 | |
| 20 | [parameters.length] |
| 21 | type = "number" |
| 22 | default = 12 |
| 23 | min = 3 |
| 24 | max = 200 |
| 25 | step = 1 |
| 26 | unit = "mm" |
| 27 | label = "Length" |
| 28 | description = "Nominal length l, overall (head included). At least the head height plus 0.5 mm." |
| 29 | |
| 30 | [parameters.material] |
| 31 | type = "choice" |
| 32 | default = "steel" |
| 33 | choices = ["steel", "stainless-a2", "stainless-a4"] |
| 34 | label = "Material" |
| 35 | description = "steel: property class 8.8 to 12.9, black oxide; stainless-a2 / stainless-a4: ISO 3506-1 A2 / A4." |
| 36 |
| 1 | # Presets of this part (factory/PRESETS.md). Written by factory/gen.py. |
| 2 | |
| 3 | [[presets]] |
| 4 | id = "M3x4" |
| 5 | title = "M3 × 4" |
| 6 | params = { size = "M3", length = 4 } |
| 7 | aliases = ["ISO 10642 M3x4", "DIN 7991 M3x4", "countersunk screw M3x4", "flat head socket screw M3x4", "M3 x 4 mm"] |
| 8 | standard = "ISO 10642" |
| 9 | |
| 10 | [[presets]] |
| 11 | id = "M3x5" |
| 12 | title = "M3 × 5" |
| 13 | params = { size = "M3", length = 5 } |
| 14 | aliases = ["ISO 10642 M3x5", "DIN 7991 M3x5", "countersunk screw M3x5", "flat head socket screw M3x5", "M3 x 5 mm"] |
| 15 | standard = "ISO 10642" |
| 16 | |
| 17 | [[presets]] |
| 18 | id = "M3x6" |
| 19 | title = "M3 × 6" |
| 20 | params = { size = "M3", length = 6 } |
| 21 | aliases = ["ISO 10642 M3x6", "DIN 7991 M3x6", "countersunk screw M3x6", "flat head socket screw M3x6", "M3 countersunk socket screw", "ISO10642 M3x6"] |
| 22 | standard = "ISO 10642" |
| 23 | |
| 24 | [[presets]] |
| 25 | id = "M3x8" |
| 26 | title = "M3 × 8" |
| 27 | params = { size = "M3", length = 8 } |
| 28 | aliases = ["ISO 10642 M3x8", "DIN 7991 M3x8", "countersunk screw M3x8", "flat head socket screw M3x8", "M3 x 8 mm"] |
| 29 | standard = "ISO 10642" |
| 30 | |
| 31 | [[presets]] |
| 32 | id = "M3x10" |
| 33 | title = "M3 × 10" |
| 34 | params = { size = "M3", length = 10 } |
| 35 | aliases = ["ISO 10642 M3x10", "DIN 7991 M3x10", "countersunk screw M3x10", "flat head socket screw M3x10", "M3 countersunk socket screw", "ISO10642 M3x10"] |
| 36 | standard = "ISO 10642" |
| 37 | |
| 38 | [[presets]] |
| 39 | id = "M3x12" |
| 40 | title = "M3 × 12" |
| 41 | params = { size = "M3", length = 12 } |
| 42 | aliases = ["ISO 10642 M3x12", "DIN 7991 M3x12", "countersunk screw M3x12", "flat head socket screw M3x12", "M3 countersunk socket screw", "ISO10642 M3x12"] |
| 43 | standard = "ISO 10642" |
| 44 | |
| 45 | [[presets]] |
| 46 | id = "M3x16" |
| 47 | title = "M3 × 16" |
| 48 | params = { size = "M3", length = 16 } |
| 49 | aliases = ["ISO 10642 M3x16", "DIN 7991 M3x16", "countersunk screw M3x16", "flat head socket screw M3x16", "M3 x 16 mm"] |
| 50 | standard = "ISO 10642" |
| 51 | |
| 52 | [[presets]] |
| 53 | id = "M3x20" |
| 54 | title = "M3 × 20" |
| 55 | params = { size = "M3", length = 20 } |
| 56 | aliases = ["ISO 10642 M3x20", "DIN 7991 M3x20", "countersunk screw M3x20", "flat head socket screw M3x20", "M3 x 20 mm"] |
| 57 | standard = "ISO 10642" |
| 58 | |
| 59 | [[presets]] |
| 60 | id = "M3x25" |
| 61 | title = "M3 × 25" |
| 62 | params = { size = "M3", length = 25 } |
| 63 | aliases = ["ISO 10642 M3x25", "DIN 7991 M3x25", "countersunk screw M3x25", "flat head socket screw M3x25", "M3 x 25 mm"] |
| 64 | standard = "ISO 10642" |
| 65 | |
| 66 | [[presets]] |
| 67 | id = "M3x30" |
| 68 | title = "M3 × 30" |
| 69 | params = { size = "M3", length = 30 } |
| 70 | aliases = ["ISO 10642 M3x30", "DIN 7991 M3x30", "countersunk screw M3x30", "flat head socket screw M3x30", "M3 x 30 mm"] |
| 71 | standard = "ISO 10642" |
| 72 | |
| 73 | [[presets]] |
| 74 | id = "M3x35" |
| 75 | title = "M3 × 35" |
| 76 | params = { size = "M3", length = 35 } |
| 77 | aliases = ["ISO 10642 M3x35", "DIN 7991 M3x35", "countersunk screw M3x35", "flat head socket screw M3x35", "M3 x 35 mm"] |
| 78 | standard = "ISO 10642" |
| 79 | |
| 80 | [[presets]] |
| 81 | id = "M3x40" |
| 82 | title = "M3 × 40" |
| 83 | params = { size = "M3", length = 40 } |
| 84 | aliases = ["ISO 10642 M3x40", "DIN 7991 M3x40", "countersunk screw M3x40", "flat head socket screw M3x40", "M3 x 40 mm"] |
| 85 | standard = "ISO 10642" |
| 86 | |
| 87 | [[presets]] |
| 88 | id = "M3x50" |
| 89 | title = "M3 × 50" |
| 90 | params = { size = "M3", length = 50 } |
| 91 | aliases = ["ISO 10642 M3x50", "DIN 7991 M3x50", "countersunk screw M3x50", "flat head socket screw M3x50", "M3 x 50 mm"] |
| 92 | standard = "ISO 10642" |
| 93 | |
| 94 | [[presets]] |
| 95 | id = "M4x4" |
| 96 | title = "M4 × 4" |
| 97 | params = { size = "M4", length = 4 } |
| 98 | aliases = ["ISO 10642 M4x4", "DIN 7991 M4x4", "countersunk screw M4x4", "flat head socket screw M4x4", "M4 x 4 mm"] |
| 99 | standard = "ISO 10642" |
| 100 | |
| 101 | [[presets]] |
| 102 | id = "M4x5" |
| 103 | title = "M4 × 5" |
| 104 | params = { size = "M4", length = 5 } |
| 105 | aliases = ["ISO 10642 M4x5", "DIN 7991 M4x5", "countersunk screw M4x5", "flat head socket screw M4x5", "M4 x 5 mm"] |
| 106 | standard = "ISO 10642" |
| 107 | |
| 108 | [[presets]] |
| 109 | id = "M4x6" |
| 110 | title = "M4 × 6" |
| 111 | params = { size = "M4", length = 6 } |
| 112 | aliases = ["ISO 10642 M4x6", "DIN 7991 M4x6", "countersunk screw M4x6", "flat head socket screw M4x6", "M4 x 6 mm"] |
| 113 | standard = "ISO 10642" |
| 114 | |
| 115 | [[presets]] |
| 116 | id = "M4x8" |
| 117 | title = "M4 × 8" |
| 118 | params = { size = "M4", length = 8 } |
| 119 | aliases = ["ISO 10642 M4x8", "DIN 7991 M4x8", "countersunk screw M4x8", "flat head socket screw M4x8", "M4 x 8 mm"] |
| 120 | standard = "ISO 10642" |
| 121 | |
| 122 | [[presets]] |
| 123 | id = "M4x10" |
| 124 | title = "M4 × 10" |
| 125 | params = { size = "M4", length = 10 } |
| 126 | aliases = ["ISO 10642 M4x10", "DIN 7991 M4x10", "countersunk screw M4x10", "flat head socket screw M4x10", "M4 x 10 mm"] |
| 127 | standard = "ISO 10642" |
| 128 | |
| 129 | [[presets]] |
| 130 | id = "M4x12" |
| 131 | title = "M4 × 12" |
| 132 | params = { size = "M4", length = 12 } |
| 133 | aliases = ["ISO 10642 M4x12", "DIN 7991 M4x12", "countersunk screw M4x12", "flat head socket screw M4x12", "M4 x 12 mm"] |
| 134 | standard = "ISO 10642" |
| 135 | |
| 136 | [[presets]] |
| 137 | id = "M4x16" |
| 138 | title = "M4 × 16" |
| 139 | params = { size = "M4", length = 16 } |
| 140 | aliases = ["ISO 10642 M4x16", "DIN 7991 M4x16", "countersunk screw M4x16", "flat head socket screw M4x16", "M4 x 16 mm"] |
| 141 | standard = "ISO 10642" |
| 142 | |
| 143 | [[presets]] |
| 144 | id = "M4x20" |
| 145 | title = "M4 × 20" |
| 146 | params = { size = "M4", length = 20 } |
| 147 | aliases = ["ISO 10642 M4x20", "DIN 7991 M4x20", "countersunk screw M4x20", "flat head socket screw M4x20", "M4 x 20 mm"] |
| 148 | standard = "ISO 10642" |
| 149 | |
| 150 | [[presets]] |
| 151 | id = "M4x25" |
| 152 | title = "M4 × 25" |
| 153 | params = { size = "M4", length = 25 } |
| 154 | aliases = ["ISO 10642 M4x25", "DIN 7991 M4x25", "countersunk screw M4x25", "flat head socket screw M4x25", "M4 x 25 mm"] |
| 155 | standard = "ISO 10642" |
| 156 | |
| 157 | [[presets]] |
| 158 | id = "M4x30" |
| 159 | title = "M4 × 30" |
| 160 | params = { size = "M4", length = 30 } |
| 161 | aliases = ["ISO 10642 M4x30", "DIN 7991 M4x30", "countersunk screw M4x30", "flat head socket screw M4x30", "M4 x 30 mm"] |
| 162 | standard = "ISO 10642" |
| 163 | |
| 164 | [[presets]] |
| 165 | id = "M4x35" |
| 166 | title = "M4 × 35" |
| 167 | params = { size = "M4", length = 35 } |
| 168 | aliases = ["ISO 10642 M4x35", "DIN 7991 M4x35", "countersunk screw M4x35", "flat head socket screw M4x35", "M4 x 35 mm"] |
| 169 | standard = "ISO 10642" |
| 170 | |
| 171 | [[presets]] |
| 172 | id = "M4x40" |
| 173 | title = "M4 × 40" |
| 174 | params = { size = "M4", length = 40 } |
| 175 | aliases = ["ISO 10642 M4x40", "DIN 7991 M4x40", "countersunk screw M4x40", "flat head socket screw M4x40", "M4 x 40 mm"] |
| 176 | standard = "ISO 10642" |
| 177 | |
| 178 | [[presets]] |
| 179 | id = "M4x50" |
| 180 | title = "M4 × 50" |
| 181 | params = { size = "M4", length = 50 } |
| 182 | aliases = ["ISO 10642 M4x50", "DIN 7991 M4x50", "countersunk screw M4x50", "flat head socket screw M4x50", "M4 x 50 mm"] |
| 183 | standard = "ISO 10642" |
| 184 | |
| 185 | [[presets]] |
| 186 | id = "M5x4" |
| 187 | title = "M5 × 4" |
| 188 | params = { size = "M5", length = 4 } |
| 189 | aliases = ["ISO 10642 M5x4", "DIN 7991 M5x4", "countersunk screw M5x4", "flat head socket screw M5x4", "M5 x 4 mm"] |
| 190 | standard = "ISO 10642" |
| 191 | |
| 192 | [[presets]] |
| 193 | id = "M5x5" |
| 194 | title = "M5 × 5" |
| 195 | params = { size = "M5", length = 5 } |
| 196 | aliases = ["ISO 10642 M5x5", "DIN 7991 M5x5", "countersunk screw M5x5", "flat head socket screw M5x5", "M5 x 5 mm"] |
| 197 | standard = "ISO 10642" |
| 198 | |
| 199 | [[presets]] |
| 200 | id = "M5x6" |
| 201 | title = "M5 × 6" |
| 202 | params = { size = "M5", length = 6 } |
| 203 | aliases = ["ISO 10642 M5x6", "DIN 7991 M5x6", "countersunk screw M5x6", "flat head socket screw M5x6", "M5 x 6 mm"] |
| 204 | standard = "ISO 10642" |
| 205 | |
| 206 | [[presets]] |
| 207 | id = "M5x8" |
| 208 | title = "M5 × 8" |
| 209 | params = { size = "M5", length = 8 } |
| 210 | aliases = ["ISO 10642 M5x8", "DIN 7991 M5x8", "countersunk screw M5x8", "flat head socket screw M5x8", "M5 x 8 mm"] |
| 211 | standard = "ISO 10642" |
| 212 | |
| 213 | [[presets]] |
| 214 | id = "M5x10" |
| 215 | title = "M5 × 10" |
| 216 | params = { size = "M5", length = 10 } |
| 217 | aliases = ["ISO 10642 M5x10", "DIN 7991 M5x10", "countersunk screw M5x10", "flat head socket screw M5x10", "M5 x 10 mm"] |
| 218 | standard = "ISO 10642" |
| 219 | |
| 220 | [[presets]] |
| 221 | id = "M5x12" |
| 222 | title = "M5 × 12" |
| 223 | params = { size = "M5", length = 12 } |
| 224 | aliases = ["ISO 10642 M5x12", "DIN 7991 M5x12", "countersunk screw M5x12", "flat head socket screw M5x12", "M5 x 12 mm"] |
| 225 | standard = "ISO 10642" |
| 226 | |
| 227 | [[presets]] |
| 228 | id = "M5x16" |
| 229 | title = "M5 × 16" |
| 230 | params = { size = "M5", length = 16 } |
| 231 | aliases = ["ISO 10642 M5x16", "DIN 7991 M5x16", "countersunk screw M5x16", "flat head socket screw M5x16", "M5 x 16 mm"] |
| 232 | standard = "ISO 10642" |
| 233 | |
| 234 | [[presets]] |
| 235 | id = "M5x20" |
| 236 | title = "M5 × 20" |
| 237 | params = { size = "M5", length = 20 } |
| 238 | aliases = ["ISO 10642 M5x20", "DIN 7991 M5x20", "countersunk screw M5x20", "flat head socket screw M5x20", "M5 x 20 mm"] |
| 239 | standard = "ISO 10642" |
| 240 | |
| 241 | [[presets]] |
| 242 | id = "M5x25" |
| 243 | title = "M5 × 25" |
| 244 | params = { size = "M5", length = 25 } |
| 245 | aliases = ["ISO 10642 M5x25", "DIN 7991 M5x25", "countersunk screw M5x25", "flat head socket screw M5x25", "M5 x 25 mm"] |
| 246 | standard = "ISO 10642" |
| 247 | |
| 248 | [[presets]] |
| 249 | id = "M5x30" |
| 250 | title = "M5 × 30" |
| 251 | params = { size = "M5", length = 30 } |
| 252 | aliases = ["ISO 10642 M5x30", "DIN 7991 M5x30", "countersunk screw M5x30", "flat head socket screw M5x30", "M5 x 30 mm"] |
| 253 | standard = "ISO 10642" |
| 254 | |
| 255 | [[presets]] |
| 256 | id = "M5x35" |
| 257 | title = "M5 × 35" |
| 258 | params = { size = "M5", length = 35 } |
| 259 | aliases = ["ISO 10642 M5x35", "DIN 7991 M5x35", "countersunk screw M5x35", "flat head socket screw M5x35", "M5 x 35 mm"] |
| 260 | standard = "ISO 10642" |
| 261 | |
| 262 | [[presets]] |
| 263 | id = "M5x40" |
| 264 | title = "M5 × 40" |
| 265 | params = { size = "M5", length = 40 } |
| 266 | aliases = ["ISO 10642 M5x40", "DIN 7991 M5x40", "countersunk screw M5x40", "flat head socket screw M5x40", "M5 x 40 mm"] |
| 267 | standard = "ISO 10642" |
| 268 | |
| 269 | [[presets]] |
| 270 | id = "M5x50" |
| 271 | title = "M5 × 50" |
| 272 | params = { size = "M5", length = 50 } |
| 273 | aliases = ["ISO 10642 M5x50", "DIN 7991 M5x50", "countersunk screw M5x50", "flat head socket screw M5x50", "M5 x 50 mm"] |
| 274 | standard = "ISO 10642" |
| 275 | |
| 276 | [[presets]] |
| 277 | id = "M6x5" |
| 278 | title = "M6 × 5" |
| 279 | params = { size = "M6", length = 5 } |
| 280 | aliases = ["ISO 10642 M6x5", "DIN 7991 M6x5", "countersunk screw M6x5", "flat head socket screw M6x5", "M6 x 5 mm"] |
| 281 | standard = "ISO 10642" |
| 282 | |
| 283 | [[presets]] |
| 284 | id = "M6x6" |
| 285 | title = "M6 × 6" |
| 286 | params = { size = "M6", length = 6 } |
| 287 | aliases = ["ISO 10642 M6x6", "DIN 7991 M6x6", "countersunk screw M6x6", "flat head socket screw M6x6", "M6 x 6 mm"] |
| 288 | standard = "ISO 10642" |
| 289 | |
| 290 | [[presets]] |
| 291 | id = "M6x8" |
| 292 | title = "M6 × 8" |
| 293 | params = { size = "M6", length = 8 } |
| 294 | aliases = ["ISO 10642 M6x8", "DIN 7991 M6x8", "countersunk screw M6x8", "flat head socket screw M6x8", "M6 x 8 mm"] |
| 295 | standard = "ISO 10642" |
| 296 | |
| 297 | [[presets]] |
| 298 | id = "M6x10" |
| 299 | title = "M6 × 10" |
| 300 | params = { size = "M6", length = 10 } |
| 301 | aliases = ["ISO 10642 M6x10", "DIN 7991 M6x10", "countersunk screw M6x10", "flat head socket screw M6x10", "M6 x 10 mm"] |
| 302 | standard = "ISO 10642" |
| 303 | |
| 304 | [[presets]] |
| 305 | id = "M6x12" |
| 306 | title = "M6 × 12" |
| 307 | params = { size = "M6", length = 12 } |
| 308 | aliases = ["ISO 10642 M6x12", "DIN 7991 M6x12", "countersunk screw M6x12", "flat head socket screw M6x12", "M6 countersunk socket screw", "ISO10642 M6x12"] |
| 309 | standard = "ISO 10642" |
| 310 | |
| 311 | [[presets]] |
| 312 | id = "M6x16" |
| 313 | title = "M6 × 16" |
| 314 | params = { size = "M6", length = 16 } |
| 315 | aliases = ["ISO 10642 M6x16", "DIN 7991 M6x16", "countersunk screw M6x16", "flat head socket screw M6x16", "M6 x 16 mm"] |
| 316 | standard = "ISO 10642" |
| 317 | |
| 318 | [[presets]] |
| 319 | id = "M6x20" |
| 320 | title = "M6 × 20" |
| 321 | params = { size = "M6", length = 20 } |
| 322 | aliases = ["ISO 10642 M6x20", "DIN 7991 M6x20", "countersunk screw M6x20", "flat head socket screw M6x20", "M6 x 20 mm"] |
| 323 | standard = "ISO 10642" |
| 324 | |
| 325 | [[presets]] |
| 326 | id = "M6x25" |
| 327 | title = "M6 × 25" |
| 328 | params = { size = "M6", length = 25 } |
| 329 | aliases = ["ISO 10642 M6x25", "DIN 7991 M6x25", "countersunk screw M6x25", "flat head socket screw M6x25", "M6 x 25 mm"] |
| 330 | standard = "ISO 10642" |
| 331 | |
| 332 | [[presets]] |
| 333 | id = "M6x30" |
| 334 | title = "M6 × 30" |
| 335 | params = { size = "M6", length = 30 } |
| 336 | aliases = ["ISO 10642 M6x30", "DIN 7991 M6x30", "countersunk screw M6x30", "flat head socket screw M6x30", "M6 x 30 mm"] |
| 337 | standard = "ISO 10642" |
| 338 | |
| 339 | [[presets]] |
| 340 | id = "M6x35" |
| 341 | title = "M6 × 35" |
| 342 | params = { size = "M6", length = 35 } |
| 343 | aliases = ["ISO 10642 M6x35", "DIN 7991 M6x35", "countersunk screw M6x35", "flat head socket screw M6x35", "M6 x 35 mm"] |
| 344 | standard = "ISO 10642" |
| 345 | |
| 346 | [[presets]] |
| 347 | id = "M6x40" |
| 348 | title = "M6 × 40" |
| 349 | params = { size = "M6", length = 40 } |
| 350 | aliases = ["ISO 10642 M6x40", "DIN 7991 M6x40", "countersunk screw M6x40", "flat head socket screw M6x40", "M6 x 40 mm"] |
| 351 | standard = "ISO 10642" |
| 352 | |
| 353 | [[presets]] |
| 354 | id = "M6x50" |
| 355 | title = "M6 × 50" |
| 356 | params = { size = "M6", length = 50 } |
| 357 | aliases = ["ISO 10642 M6x50", "DIN 7991 M6x50", "countersunk screw M6x50", "flat head socket screw M6x50", "M6 x 50 mm"] |
| 358 | standard = "ISO 10642" |
| 359 | |
| 360 | [[presets]] |
| 361 | id = "M8x6" |
| 362 | title = "M8 × 6" |
| 363 | params = { size = "M8", length = 6 } |
| 364 | aliases = ["ISO 10642 M8x6", "DIN 7991 M8x6", "countersunk screw M8x6", "flat head socket screw M8x6", "M8 x 6 mm"] |
| 365 | standard = "ISO 10642" |
| 366 | |
| 367 | [[presets]] |
| 368 | id = "M8x8" |
| 369 | title = "M8 × 8" |
| 370 | params = { size = "M8", length = 8 } |
| 371 | aliases = ["ISO 10642 M8x8", "DIN 7991 M8x8", "countersunk screw M8x8", "flat head socket screw M8x8", "M8 x 8 mm"] |
| 372 | standard = "ISO 10642" |
| 373 | |
| 374 | [[presets]] |
| 375 | id = "M8x10" |
| 376 | title = "M8 × 10" |
| 377 | params = { size = "M8", length = 10 } |
| 378 | aliases = ["ISO 10642 M8x10", "DIN 7991 M8x10", "countersunk screw M8x10", "flat head socket screw M8x10", "M8 x 10 mm"] |
| 379 | standard = "ISO 10642" |
| 380 | |
| 381 | [[presets]] |
| 382 | id = "M8x12" |
| 383 | title = "M8 × 12" |
| 384 | params = { size = "M8", length = 12 } |
| 385 | aliases = ["ISO 10642 M8x12", "DIN 7991 M8x12", "countersunk screw M8x12", "flat head socket screw M8x12", "M8 x 12 mm"] |
| 386 | standard = "ISO 10642" |
| 387 | |
| 388 | [[presets]] |
| 389 | id = "M8x16" |
| 390 | title = "M8 × 16" |
| 391 | params = { size = "M8", length = 16 } |
| 392 | aliases = ["ISO 10642 M8x16", "DIN 7991 M8x16", "countersunk screw M8x16", "flat head socket screw M8x16", "M8 x 16 mm"] |
| 393 | standard = "ISO 10642" |
| 394 | |
| 395 | [[presets]] |
| 396 | id = "M8x20" |
| 397 | title = "M8 × 20" |
| 398 | params = { size = "M8", length = 20 } |
| 399 | aliases = ["ISO 10642 M8x20", "DIN 7991 M8x20", "countersunk screw M8x20", "flat head socket screw M8x20", "M8 x 20 mm"] |
| 400 | standard = "ISO 10642" |
| 401 | |
| 402 | [[presets]] |
| 403 | id = "M8x25" |
| 404 | title = "M8 × 25" |
| 405 | params = { size = "M8", length = 25 } |
| 406 | aliases = ["ISO 10642 M8x25", "DIN 7991 M8x25", "countersunk screw M8x25", "flat head socket screw M8x25", "M8 x 25 mm"] |
| 407 | standard = "ISO 10642" |
| 408 | |
| 409 | [[presets]] |
| 410 | id = "M8x30" |
| 411 | title = "M8 × 30" |
| 412 | params = { size = "M8", length = 30 } |
| 413 | aliases = ["ISO 10642 M8x30", "DIN 7991 M8x30", "countersunk screw M8x30", "flat head socket screw M8x30", "M8 x 30 mm"] |
| 414 | standard = "ISO 10642" |
| 415 | |
| 416 | [[presets]] |
| 417 | id = "M8x35" |
| 418 | title = "M8 × 35" |
| 419 | params = { size = "M8", length = 35 } |
| 420 | aliases = ["ISO 10642 M8x35", "DIN 7991 M8x35", "countersunk screw M8x35", "flat head socket screw M8x35", "M8 x 35 mm"] |
| 421 | standard = "ISO 10642" |
| 422 | |
| 423 | [[presets]] |
| 424 | id = "M8x40" |
| 425 | title = "M8 × 40" |
| 426 | params = { size = "M8", length = 40 } |
| 427 | aliases = ["ISO 10642 M8x40", "DIN 7991 M8x40", "countersunk screw M8x40", "flat head socket screw M8x40", "M8 x 40 mm"] |
| 428 | standard = "ISO 10642" |
| 429 | |
| 430 | [[presets]] |
| 431 | id = "M8x50" |
| 432 | title = "M8 × 50" |
| 433 | params = { size = "M8", length = 50 } |
| 434 | aliases = ["ISO 10642 M8x50", "DIN 7991 M8x50", "countersunk screw M8x50", "flat head socket screw M8x50", "M8 x 50 mm"] |
| 435 | standard = "ISO 10642" |
| 436 |
Hexagon socket countersunk (flat) head screw, metric coarse thread, M3 to M12, at any length. Presets cover the common catalogue sizes (M3 × 8, M5 × 16, ...).
Envelope for assemblies and countersink checks:
length is the nominal length l, measured overall (head included) as ISO 10642 does; it must be at least k + 0.5 mm.
The head's top face is on the XY plane at the origin, the screw along -Z.
| Parameter | Meaning |
|---|---|
size |
Thread size, M3 to M12 |
length |
Nominal length l, overall, mm |
material |
steel (property class 8.8 to 12.9, black oxide), stainless-a2, stainless-a4 (ISO 3506-1) |
ISO 10642:2004, Hexagon socket countersunk head screws, Table 1, p. 4: d, dk theoretical max, dk actual min, k max, s (nominal), t min, read from the official preview (https://cdn.standards.iteh.ai/samples/34454/32dec7e84d974361b85f744935ab2175/ISO-10642-2004.pdf; the M8 t is under the preview's watermark and was read from fasten.it) and checked against fasten.it's DIN EN ISO 10642 2004-06 and 2013-04 tables (https://fasten.it/en/Norms/Norm/DIN EN ISO 10642). Amendment 1:2012 changes only dk min of M20 (not offered here).
Edition note: ISO 10642:2019 (DIN EN ISO 10642:2020-02; carried into ISO 10642:2026) replaced w min by t max and, in fasten.it's reproduction of DIN EN ISO 10642:2020-02 (its only source found), lists smaller t min for M4 (1.4), M5 (1.75), M8 (2.9) and M10 (3.5). This recipe models the 2004 edition's values, which are confirmed by the official preview; every other column is the same in both.
| Size | dk th | dk min | k | s | t |
|---|---|---|---|---|---|
| M3 | 6.72 | 5.54 | 1.86 | 2.0 | 1.1 |
| M4 | 8.96 | 7.53 | 2.48 | 2.5 | 1.5 |
| M5 | 11.2 | 9.43 | 3.1 | 3.0 | 1.9 |
| M6 | 13.44 | 11.34 | 3.72 | 4.0 | 2.2 |
| M8 | 17.92 | 15.24 | 4.96 | 5.0 | 3.0 |
| M10 | 22.4 | 19.22 | 6.2 | 6.0 | 3.6 |
| M12 | 26.88 | 23.12 | 7.44 | 8.0 | 4.3 |
Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.
| 1 | # Countersunk head screw (ISO 10642 / DIN 7991) |
| 2 | |
| 3 | Hexagon socket countersunk (flat) head screw, metric coarse thread, M3 to M12, at any length. Presets cover the |
| 4 | common catalogue sizes (M3 × 8, M5 × 16, ...). |
| 5 | |
| 6 | ## Geometry |
| 7 | |
| 8 | Envelope for assemblies and countersink checks: |
| 9 | |
| 10 | - 90° countersunk head: the cone of the theoretical (sharp-edge) diameter **dk th** and height **k** = (dk th − d) / 2, |
| 11 | its rim turned to the actual head diameter **dk min** (a short cylindrical land at the top), so the cone seats in a |
| 12 | countersink exactly as the standard intends; |
| 13 | - hexagon socket, key size **s** (nominal), depth **t min**, flat bottom; |
| 14 | - plain shank at the nominal thread diameter **d**; the thread is not modelled. |
| 15 | |
| 16 | `length` is the nominal length l, measured overall (head included) as ISO 10642 does; it must be at least k + 0.5 mm. |
| 17 | The head's top face is on the XY plane at the origin, the screw along -Z. |
| 18 | |
| 19 | ## Parameters |
| 20 | |
| 21 | | Parameter | Meaning | |
| 22 | |---|---| |
| 23 | | `size` | Thread size, M3 to M12 | |
| 24 | | `length` | Nominal length l, overall, mm | |
| 25 | | `material` | `steel` (property class 8.8 to 12.9, black oxide), `stainless-a2`, `stainless-a4` (ISO 3506-1) | |
| 26 | |
| 27 | ## Source |
| 28 | |
| 29 | ISO 10642:2004, *Hexagon socket countersunk head screws*, Table 1, p. 4: d, dk theoretical max, dk actual min, k max, |
| 30 | s (nominal), t min, read from the official preview |
| 31 | (<https://cdn.standards.iteh.ai/samples/34454/32dec7e84d974361b85f744935ab2175/ISO-10642-2004.pdf>; the M8 t is |
| 32 | under the preview's watermark and was read from fasten.it) and checked against fasten.it's DIN EN ISO 10642 2004-06 |
| 33 | and 2013-04 tables (<https://fasten.it/en/Norms/Norm/DIN%20EN%20ISO%2010642>). Amendment 1:2012 changes only dk min of |
| 34 | M20 (not offered here). |
| 35 | |
| 36 | Edition note: ISO 10642:2019 (DIN EN ISO 10642:2020-02; carried into ISO 10642:2026) replaced w min by t max and, |
| 37 | in fasten.it's reproduction of DIN EN ISO 10642:2020-02 (its only source found), lists smaller t min for M4 (1.4), |
| 38 | M5 (1.75), M8 (2.9) and M10 (3.5). This recipe models the 2004 edition's values, which are confirmed by the official |
| 39 | preview; every other column is the same in both. |
| 40 | |
| 41 | | Size | dk th | dk min | k | s | t | |
| 42 | |---|---|---|---|---|---| |
| 43 | | M3 | 6.72 | 5.54 | 1.86 | 2.0 | 1.1 | |
| 44 | | M4 | 8.96 | 7.53 | 2.48 | 2.5 | 1.5 | |
| 45 | | M5 | 11.2 | 9.43 | 3.1 | 3.0 | 1.9 | |
| 46 | | M6 | 13.44 | 11.34 | 3.72 | 4.0 | 2.2 | |
| 47 | | M8 | 17.92 | 15.24 | 4.96 | 5.0 | 3.0 | |
| 48 | | M10 | 22.4 | 19.22 | 6.2 | 6.0 | 3.6 | |
| 49 | | M12 | 26.88 | 23.12 | 7.44 | 8.0 | 4.3 | |
| 50 | |
| 51 | Preset list: sizes and lengths of the step.parts catalogue (MIT), see `library/NOTICE.md`. |
| 52 |
ISO 10642 (DIN 7991) hexagon socket countersunk head screw. Envelope geometry for assemblies: 90° head (the theoretical sharp-edge cone of height k, rim at the actual head diameter dk min), hexagon socket (s, t min) and a plain shank at the nominal thread diameter; the thread itself is not modelled. The head's top face is on the XY plane at the origin and the screw points along -Z; `length` is the nominal length, overall (head included), as the standard measures it. Dimensions from ISO 10642:2004 Table 1 (see the README).
Hexagon socket countersunk (flat) head screw, metric coarse thread, M3 to M12, at any length. Presets cover the common catalogue sizes (M3 × 8, M5 × 16, ...).
Envelope for assemblies and countersink checks:
length is the nominal length l, measured overall (head included) as ISO 10642 does; it must be at least k + 0.5 mm.
The head's top face is on the XY plane at the origin, the screw along -Z.
| Parameter | Meaning |
|---|---|
size |
Thread size, M3 to M12 |
length |
Nominal length l, overall, mm |
material |
steel (property class 8.8 to 12.9, black oxide), stainless-a2, stainless-a4 (ISO 3506-1) |
ISO 10642:2004, Hexagon socket countersunk head screws, Table 1, p. 4: d, dk theoretical max, dk actual min, k max, s (nominal), t min, read from the official preview (https://cdn.standards.iteh.ai/samples/34454/32dec7e84d974361b85f744935ab2175/ISO-10642-2004.pdf; the M8 t is under the preview's watermark and was read from fasten.it) and checked against fasten.it's DIN EN ISO 10642 2004-06 and 2013-04 tables (https://fasten.it/en/Norms/Norm/DIN EN ISO 10642). Amendment 1:2012 changes only dk min of M20 (not offered here).
Edition note: ISO 10642:2019 (DIN EN ISO 10642:2020-02; carried into ISO 10642:2026) replaced w min by t max and, in fasten.it's reproduction of DIN EN ISO 10642:2020-02 (its only source found), lists smaller t min for M4 (1.4), M5 (1.75), M8 (2.9) and M10 (3.5). This recipe models the 2004 edition's values, which are confirmed by the official preview; every other column is the same in both.
| Size | dk th | dk min | k | s | t |
|---|---|---|---|---|---|
| M3 | 6.72 | 5.54 | 1.86 | 2.0 | 1.1 |
| M4 | 8.96 | 7.53 | 2.48 | 2.5 | 1.5 |
| M5 | 11.2 | 9.43 | 3.1 | 3.0 | 1.9 |
| M6 | 13.44 | 11.34 | 3.72 | 4.0 | 2.2 |
| M8 | 17.92 | 15.24 | 4.96 | 5.0 | 3.0 |
| M10 | 22.4 | 19.22 | 6.2 | 6.0 | 3.6 |
| M12 | 26.88 | 23.12 | 7.44 | 8.0 | 4.3 |
Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.
Materials and finishes: each part is made of its standard's engineering material, with its usual finish.
Flat head (countersunk) socket cap screw, inch, ASME B18.3, #0 to 1/2 in, UNC/UNF, any length, with catalogue sizes as presets.
Hexagon head screw, fully threaded, ISO 4017 / DIN 933, M1.6 to M36, any length, with catalogue sizes as presets.
Hexagon socket button head screw, ISO 7380-1, M3 to M16, any length, with catalogue sizes as presets.
Pan head screw with cross recess, ISO 7045, M2 to M8, any length.