Syntax
CPL=PLlemo([d,sl])
Input Parameter
d : | | Outer Diameter and inner diameter; default is [12 10.5] |
sl : | | slot; default is 0 |
Output Parameter
Examples
PLcircle; PL=ans;
Additional Hyperlinks
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, PLlemo, generates the contour of an insertion hole for a LEMO plug/socket. It is part of the SolidGeometry library and was introduced in version 5.2.
Input Parameters
- d: A vector containing the outer and inner diameters. The default value is [12, 10.5]. If only one diameter is provided, the inner diameter is assumed to be 1.5 mm less than the outer diameter.
- sl: Slot size, with a default value of 0. If sl is a character, it is converted using the slfit function.
- ww: An additional parameter with a default value of 0, used for rotation.
Algorithm Steps
- Retrieve the parameters d, sl, and ww using the getfuncparams function, which assigns default values if not provided.
- If d is a single value, create a vector with the inner diameter 1.5 mm less than the outer diameter.
- If sl is a character, convert it using the slfit function.
- Create a circular contour using PLcircle with a radius of d(1)/2 + sl.
- Create a rectangular contour using PLsquare with dimensions [d(2), 5*d(1)] + 2*sl.
- Intersect the circular and rectangular contours using CPLintersect to form the final contour CPL.
- If ww is not zero, rotate the contour CPL using PLtransR.
- If no output is requested, plot the contour using SGfigure and CPLplot.
Output
- CPL: The contour of the hole for the LEMO plug/socket.
Algorithm explaination created using ChatGPT on 2025-08-19 00:02. (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