by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 4Bar/Linkages
Introduced first in SolidGeometry 5.1, Creation date: 2021-12-27, Last change: 2025-09-15
SGall=SGfourbarlinkageA0B0DIN912985(CPL,[wlim,R12o,PS,MM,MPL,FIX])
CPL: | [A0; B0; B1; A1; [GPLA GPLB]] to define the 4bar linkage | Nr of PS.solut | |
wlim: | angle limitatins; if empty the full intervall is used | |
R12o: | Outer an inner radius for linkage [Rout Rin]; default is R12ofCPL | |
PS: | Pose including fields CPLE | |
MM: | [metrix diameter metric length overlap; default is [2.5 6 0] | |
MPL: | Rack assembly point to add | |
FIX: | fixation method '985' or 'bush' |
SGall: | {SGC,SGE,SGS,SGG,SG0} |
CPLfourbarcontour(100,80,100,40); CPL=ans;
SGfourbarlinkageA0B0DIN912985([CPL; -50 -30; +50 -30])
SGfourbarlinkageA0B0DIN912985(CPLfourbarcontour([80,90,100,100])); SGALL=ans;
close all; SGfigure; SGplotcellmultiple(SGALL); shg;
PS=PosesampleWalk; PS=fourBarposesyntheses(PS,1,15,'','','isrot,break coll cpl0 cplw');
SGfourbarlinkageA0B0DIN912985(25,'','',PS); % Use solution 32 of PS.solut
SGfourbarlinkageA0B0DIN912985(25,'','',PS,[2.5 6 0],[-20 100; 20 100]); % Use rack points
SGfourbarlinkageA0B0DIN912985(25,'','',PS,[2.5 6 0],[-20 100; 20 100],'bush'); % Use rack points
SGfourbarlinkageA0B0DIN912985(25,'','',PS,[2.5 8 -1],[-20 100; 20 100],'985',[2.5 7 3.5]); % bearing