一、凸轮机构
1. 程序设计(基于 matlab):
function tulun()
clear;clc;close all;
r0=60; e=10; h=10;
%基圆半径 %偏心距 %升程
sy=1;hy=2; %1:为余弦;%2:为等加速;%升程运动规律 %回程运动规律
scyx=60; hcc=150; hcjx=240;
%升程结束角 %回程起始角 %近休止
scc=0;%升程起始角
rg=6;%滚子半径
scc=0;
x11=((scc):scyx/2-1);
x12=((scc)+scyx/2:scyx-1);
x21=(0:(hcjx-hcc)/2-1);
x22=((hcjx-hcc)/2:(hcjx-hcc)-1);
x3=(scyx:round((hcc))-1);
x4=((hcjx):360).*0;
b_she=deg2rad(scyx-scc);
b_hui=deg2rad(hcjx-hcc);
switch(sy)
case 1,
x1=deg2rad([x11 x12]);sc=h./2.*(1-cos(pi.*x1./b_she));
v1=pi.*h.*sin(pi.*x1./b_she)./(2.*b_she);
a1=pi.*pi.*h.*cos(pi.*x1./b_she)./(2.*b_she.*b_she);
case 2,
x11=deg2rad(x11);x12=deg2rad(x12);
sc1=2.*h.*x11.*x11./(b_she.*b_she);
sc2=h-2.*h.*(b_she-x12).*(b_she-x12)./(b_she.*b_she);sc=[sc1
sc2];
v11=4.*h.*x11./(b_she.*b_she);
v12=4.*h.*(b_she-x12)./(b_she.*b_she);v1=[v11 v12];
a11=4.*h./(b_she.*b_she)+x11.*0;
a12=-4.*h./(b_she.*b_she)+x12.*0;a1=[a11 a12];
end
switch(hy)
case 1,
x2=deg2rad([x21 x22]); hc=h./2.*(1+cos(pi.*x2./b_hui));
v2=-pi.*h.*sin(pi.*x2./b_hui)./(2.*b_hui);
a2=-pi.*pi.*h.*cos(pi.*x2./b_hui)./(2.*b_hui.*b_hui);
case 2,
x21=deg2rad(x21); x22=deg2rad(x22);
评论0