凸轮程序的设计资料

上传人:E**** 文档编号:107209879 上传时间:2019-10-18 格式:DOC 页数:4 大小:31KB
返回 下载 相关 举报
凸轮程序的设计资料_第1页
第1页 / 共4页
凸轮程序的设计资料_第2页
第2页 / 共4页
凸轮程序的设计资料_第3页
第3页 / 共4页
凸轮程序的设计资料_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《凸轮程序的设计资料》由会员分享,可在线阅读,更多相关《凸轮程序的设计资料(4页珍藏版)》请在金锄头文库上搜索。

1、习题4-1凸轮轮廓曲线的程序设计10级机制班 丁林森 2010001630211、 C语言程序/各字母含义 e偏距、基圆半径ro、滚子半径rt、行程h、推程运动角phi1、远休止角phis、回程、运动角phi_1,近休止角phi_s#include #include #define PI 3.1415926 void main() double e=10.0,ro=40.0,rt=10.0,h=20.0,phi1=150.0,phis=30.0,phi_1=120.0,phi_s=60; double s, alp73,x73,y73,x1,y1,xr73,yr73; double ic,ic

2、1,ic2,ic3,ic4,so,s1,cop,sip,phi,gam,bel,del=5.0,q,t; int i; gam=phi1+phis; bel=phi1+phis+phi_1; ic=(int)(360.0/del); ic1=(int)(phi1/del); ic2=(int)(gam/del); ic3=(int)(phi1+phis+phi_1/2.0)/del); ic4=(int)(bel/del); so=sqrt(ro*ro-e*e); printf( No deg x/mm y/mm X/mm Y/mm radn); for(i=0;i=ic;i+) / phi=

3、i*del*PI/180.0; cop=cos(phi); sip=sin(phi); if(i=ic1) s=h/2.0*(1.0-cos(180.0*phi/phi1); s1=h*PI*sin(180.0*phi/phi1)/2.0/phi1; x1=-(s+so)*sip+s1*cop-e*cop; y1=(s+so)*cop+s1*sip-e*sip; else if(i=ic2) s=h; s1=0; x1=-(s+so)*sip-e*cop; y1=(so+s)*cop-e*sip; else if(i=ic3) s=h-2.0*h*(phi-gam)*(phi-gam)/phi

4、_1/phi_1; s1=-4.0*h*(phi-gam)/phi_1/phi_1; x1=s1*cop-(s+so)*sip-e*cop; y1=s1*sip+(so+s)*cop-e*sip; else if(i=ic4) s=2.0*h*(bel-phi)*(bel-phi)/phi_1/phi_1; s1=-4.0*h*(bel-phi)/phi_1/phi_1; x1=s1*cop-(so+s)*sip-e*cop; y1=s1*sip+(so+s)*cop-e*sip; else s=0; s1=0; x1=-(s+so)*sip-e*cop; y1=so*cop-e*sip; t

5、=fabs(s1-e); alpi=atan2(t,(s+so); q=rt/sqrt(x1*x1+y1*y1); / xi=(s+so)*cop-e*sip; yi=(s+so)*sip+e*cop; xri=xi-q*y1; yri=yi+q*x1; phi=i*del; printf(n%2d%12.3f%12.3f%12.3f%12.3f%12.3f%12.3f,i+1,phi,xi,yi,xri,yri,alpi); 2、 计算结果No deg x/mm y/mm X/mm Y/mm rad 1 0.000 38.730 10.000 29.047 7.500 0.253 2 5.0

6、00 37.765 13.342 28.335 10.016 0.252 3 10.000 36.620 16.611 27.509 12.490 0.250 4 15.000 35.295 19.810 26.567 14.929 0.248 5 20.000 33.786 22.939 25.502 17.339 0.245 6 25.000 32.089 25.997 24.304 19.721 0.242 7 30.000 30.195 28.980 22.960 22.076 0.238 8 35.000 28.094 31.879 21.458 24.398 0.234 9 40.

7、000 25.776 34.682 19.782 26.677 0.230 10 45.000 23.230 37.372 17.919 28.899 0.226 11 50.000 20.449 39.927 15.855 31.044 0.221 12 55.000 17.426 42.321 13.581 33.090 0.216 13 60.000 14.160 44.525 11.089 35.008 0.212 14 65.000 10.652 46.506 8.379 36.768 0.207 15 70.000 6.912 48.229 5.452 38.336 0.203 1

8、6 75.000 2.953 49.658 2.318 39.678 0.198 17 80.000 -1.205 50.755 -1.008 40.757 0.194 18 85.000 -5.534 51.487 -4.504 41.540 0.190 19 90.000 -10.000 51.820 -8.142 41.994 0.187 20 95.000 -14.564 51.725 -11.887 42.090 0.184 21 100.000 -19.178 51.177 -15.700 41.802 0.181 22 105.000 -23.793 50.159 -19.534

9、 41.111 0.178 23 110.000 -28.352 48.659 -23.341 40.005 0.176 24 115.000 -32.798 46.673 -27.068 38.477 0.174 25 120.000 -37.070 44.208 -30.661 36.532 0.172 26 125.000 -41.109 41.275 -34.065 34.178 0.171 27 130.000 -44.856 37.900 -37.226 31.435 0.170 28 135.000 -48.253 34.111 -40.094 28.330 0.169 29 140.000 -51.250 29.950 -42.620 24.898 0.169 30 145.000 -53.800 25.463 -44.762 21.182 0.168 31 150.000 -55.862 20.705 -46.485 17.229 0.169 32 155.000 -57.453 15.757 -47.810 13.112 0.169 33 160.0

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号