Syntax
[RMHL,SG]=R12ofM([M,w])
Input Parameter
M : | | Metric size of screw |
w : | | wall dimension; default is 1.25 |
Output Parameter
RMHL : | | [Radius M-screw Height Length] |
SG : | | optional solid geometry |
Examples
R12=R12ofM(2.5,1.5)
Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This function calculates the minimal dimensions of a link for a screw nut connection. It is part of the SolidGeometry library and was introduced in version 5.1.
Input Parameters
- M: Metric size of the screw. Default is 2.5 if not provided.
- w: Wall dimension. Default is 1.25 if not provided.
Output Results
- RMHL: An array containing the Radius, Metric size, Height, and Length of the screw.
- SG: Optional solid geometry object.
Algorithm Steps
- Retrieve the metric size
M
and wall dimension w
using the getfuncparams
function. Defaults are 2.5 and 1.25, respectively.
- Call
DIN985
with M
to get the thread length TL
.
- Calculate the minimum radius
Rmin
using the formula: ceil(dofn(6) * TL(3) / 2 + w)
.
- Calculate the minimum length
Lmin
as Rmin * 2 - w
.
- Calculate the minimum height
Hmin
as ceil(TL(5) + 2 * w)
.
- Store the calculated values in
RMHL
as [Rmin M Hmin Lmin]
.
- Create a circular oval profile
PL
using PLcircleoval
with radius Ro
and length L
.
- Generate the solid geometry
SG
using SGofCPLz
with profile PL
and height H
.
- Set the bottom and front transformations of
SG
using SGTset
with transformations TofPez
.
- If the number of output arguments is zero or more than one, perform the following:
- Design a DIN912DIN985 screw using
SGdesignDIN912DIN985
with parameters [M H]
.
- Subtract the designed screw from
SG
twice using SGsubtract
with alignment transformations.
- If the number of output arguments is zero, plot the solid geometry using
SGfigure
and SGplotalpha
.
Algorithm explaination created using ChatGPT on 2025-08-19 00:48. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21