SGdesignMotorN40horiz

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Designs
Introduced first in SolidGeometry 5.2, Creation date: 2022-04-19, Last change: 2025-09-15

Designs a subtraction solids for the N20 L-type encoder motor

Description

The default motor is a Chihai GW12-N20 Encoder

See Also: SGmotorN40horiz , SGmotorN40

Example Illustration

 missing image of SGdesignMotorN40horiz(LM,sh,sz,gb,PL)

Syntax

[Hsub,Nsub,SGM,Hadd,Nadd,AParts]=SGdesignMotorN40horiz([LM,sh,sz,gb,PL])

Input Parameter

LM: [housinh-height wall-thickness topwall-thickness rotation-angle] default is [14 1.5 2 0]
sh: Shaft Diameter and Shaft Flattening; default is [3 2.5]
sz: [maxsize-x maxsize-y length-shaft diameter shaft-socket, height shaft-socket]; default is [10 12 6.5 4 .5]
gb: gearbox [size-x size-y height motor-length Mscrews xshift yshift]; default is [18 12 10 14 1.6 5 0]
PL: Point list of screws; default is [-2.5 -4.5;-2.5 +4.5]

Output Parameter

Hsub: Head Subtraction Solid (Shaft Side)
Nsub: Nut Subtraction Solid (Motor Side)
SGM: Motor Geometry
Hadd: Head Supplement (Shaft Side)
Nadd: Nut Supplement (Motor Side)
AParts: Part list

Examples


SGdesignMotorN40horiz
[Hsub,Nsub,SGM,Hadd,Nadd,AParts]=SGdesignMotorN40horiz
A=SGbox([20,20,2]); B=A; A=SGTretain(A,'F'); B=SGTretain(B,'B'); A=SGtransP(A,[1 1 1]/1000); B=SGtransrelSG(B,A,'alignT',{'B','F'});

A=SGunion(A,Nadd,'alignT',{'C','F'}); A=SGsubtract(A,Nsub,'alignT',{'C','F'}); SGfigure; SGplotalpha(A);

B=SGunion(B,Hadd,'alignT',{'C','B'}); B=SGsubtract(B,Hsub,'alignT',{'C','B'}); SGfigure; SGplotalpha(B);

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

Last html export of this page out of FM database by TL: 2025-09-21