資源描述:
《機(jī)械原理大作業(yè)(二)-凸輪機(jī)構(gòu)設(shè)計(jì).doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、機(jī)械原理大作業(yè)(二)凸輪機(jī)構(gòu)設(shè)計(jì)(題號(hào):1—B)班級(jí):05020402姓名:學(xué)號(hào):時(shí)間:2006/12/4一、題目及原始數(shù)據(jù):凸輪機(jī)構(gòu)的推桿在近休,推程,遠(yuǎn)休及冋程段的凸輪轉(zhuǎn)角近休:0——45°推程:45。一210。遠(yuǎn)休:210°—260°回程:260°—360°偏置直動(dòng)滾子推桿盤行凸輪機(jī)構(gòu)已知參數(shù)基圓半徑r0=20mm偏距e=+10mm滾子半徑rl=14mm推桿彳亍程h=30nun許用壓力角a1=30°a2=75°許用最小曲率半徑P=0.3*14mm二、推桿運(yùn)動(dòng)規(guī)律及凸輪輪廓曲線方程:推程:(等加速等減速運(yùn)動(dòng))加
2、速期:s-2h678;減速期:S=h-2h(6-80)7802回程:(余弦加速度運(yùn)動(dòng))s二h[l+cos(n5/807)]/2輪廓線方程:x=(s0+s)*sin6+e*cos6;y=(s0+s)*cos5-e*sin5;sO^sqrt(r*r-e*e);三、計(jì)算源程序:#include"stdio.h"#include"math.h"#definen120#definepi3.1415926#defineapi/180.()main(){intr0,rl,h,e,i;doubleangle0,angle1,ang
3、le2,angle3,angle4,angle口ngleO1,angle02,angle03,angle1m,angle2m,angle3m,angle0ml,angle0m2jm,「3j4j,s,sO,mjnI;floatr2,xll,yll,b;doublex,xl,x2,y,y1,y2,t,t0,t1,t2;r()=20;rl=14;h=30;e=10;r4=10000;angle1=45*a;angle2=165*a;angle3=50*a;angle4=1OO*a;angleO1=30*a;angle02
4、=75*a;r=l;rm=4.2;angleOm1=-l000;angIe0m2=-1000;b=3.1415926*2/n;fp=fopen(,'zf.txt",,'wH);for(i=0;iangle1)&&(angle<(angle1+angle2/2))){s=2*h*(angle-anglel)*(angle-anglel)/(angle2*angl
5、e2);m=4*h*(angle-angle1)/(angle2*angle2);mI=4*h/(angle2*angle2);}elseif((angle<=angle1+angle2)&&(angle>=(angle1+angle2/2))){s=h-2*h*(angle(a
6、ngle1+angle2)&&angle<=(angle1+angle2+angle3)){s=h;m=0;ml=0;}訐(angle>(angle1+angle2+angle3)&&angle<=(angle1+angle2+angle3+angle4))ml=h*(l-3.1415926/angle4*3?1415926/angle4*cos(3」415926*(angle-angle1-angle2-angle3)/angle4))2}x=(sO+s)*sin(angle)+e*cos(angle);y=(s
7、O+s)*cos(angle)-e*sin(angle);x1=(m-e)*sin(angle)+(sO+s)*cos(angle);y1=(m-e)*cos(angle)-(sO+s)*sin(angle);x11=(m1-s0-s)*sin(angle)+(2*m-e)*cos(angle);yll=(ml-sO-s)*cos(angle)-(m1+m-e)*sin(angle);tO=sqrt(xl*xl+yl*yl);tl=xl/tO;t2=-yl/tO;x2=x-rl*t2;y2=y-rl*tl;fpri
8、ntf(fp「X=%8f,Y=%8f,XJ%8f,Y』%8frrAxyx2,y2,angle);angleO=atan(fabs((m-e))/(sO+s));if(angleO>angleO2){rO=rO+r;i=0;continue;)else{if(angle0>angle0m2){angle0m2=angle0;angle2m=angle;}}