哈工大机械原理大作业 凸轮机构设计 题 下载本文

内容发布更新时间 : 2024/9/18 13:07:35星期一 下面是文章的全部内容请认真阅读。

Picture1.PSet Step(q, -a), vbBlack ElseIf i >= 90 And i <= 150 Then q = i a = 0

Picture1.PSet Step(q, -a), vbGreen ElseIf i >= 150 And i <= 190 Then q = i

a = -480 * w ^ 2 / 6400

Picture1.PSet Step(q, -a), vbBlue ElseIf i >= 190 And i <= 230 Then q = i

a = 480 * w ^ 2 / 6400

Picture1.PSet Step(q, -a), vbRed ElseIf i >= 230 And i <= 360 Then q = i a = 0

Picture1.PSet Step(q, -a), vbBlack Else End If End Sub

4.ds/dq---ds

Private Sub Command4_Click()

Timer4.Enabled = True '开启计时器;建立坐标系

Picture1.Scale (-400, -400)-(400, 400) End Sub

Private Sub Timer4_Timer() Static i As Single

Dim x As Single, s As Single, q As Single, scaley As Single, t As Single 'i为静态变量,控制流程;x代表位移;s代表纵坐标ds/dq;q代表角度 Picture1.CurrentX = 0 Picture1.CurrentY = 0 scaley = 1 t = 3.14 / 180 i = i + 0.1 If i <= 45 Then q = i * t x = 194.734 * q

s = 240 * (2 * q / 3.14) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 45 And i <= 90 Then q = i * t

x = 194.734 * (3.14 / 2 - q)

s = 120 - 97.367 * (3.14 / 2 - q) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 90 And i <= 150 Then

q = i * t x = 0

s = 120 * scaley

Picture1.PSet Step(x, -s), vbRed ElseIf i >= 150 And i <= 190 Then q = i * t

x = -246.46 * (q - 5 * 3.14 / 6)

s = 120 - 123.23 * (q - 5 * 3.14 / 6) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 190 And i <= 230 Then q = i * t

x = -246.46 * (23 * 3.14 / 18 - q) s = 123.23 * (23 * 3.14 / 18 - q) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 230 And i <= 360 Then q = i * t x = 0 s = 0

Picture1.PSet Step(x, -s), vbRed Else End If End Sub

四.确定凸轮基圆半径和偏距

1. 求切点转角

在图中,右侧曲线为升程阶段的类速度-位移图,作直线Dtdt与其相切,且位移轴正方向呈夹角[?1]=300,则切点处的斜率与直线Dtdt的斜率相等,因为kDtdt=tan600,右侧曲线斜率可以表示为:q;q=tan600继而求出切点坐标(337.272,292.084)。同理可求出另一切点(-89.766,16.347) 2.确定直线方程

y-292.084=1.732*(x-337.272) y-16.347=-0.364*(x+89.766) 3.绘图确定基圆半径和偏距 程序如下:

Private Sub Command5_Click() '开启计时器;画出ds/dq-s图的切线 Timer5.Enabled = True

Picture1.Scale (-400, -400)-(400, 400)

Picture1.Line (-50, 378.671)-(200, -54.329), vbRed Picture1.Line (-200, -65.683)-(40, -481.363), vbBlue Picture1.Line (-200, -209.127)-(200, -63.527), vbBlack Picture1.Line (-200, -56.472)-(200, 89.128), vbGreen End Sub

Private Sub Timer5_Timer() 'i为静态变量,控制流程;x代表位移;s代表纵坐标ds/dq;q代表角度;scaley是图形比例系数;t为角度,弧度转化系数 Static i As Single

Dim x As Single, s As Single, q As Single, scaley As Single, t As Single Picture1.CurrentX = 0 Picture1.CurrentY = 0 scaley = 1 t = 3.14 / 180 i = i + 0.1

If i <= 45 Then q = i * t x = 194.734 * q

s = 240 * (2 * q / 3.14) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 45 And i <= 90 Then q = i * t

x = 194.734 * (3.14 / 2 - q)

s = 120 - 97.367 * (3.14 / 2 - q) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 90 And i <= 150 Then q = i * t x = 0

s = 120 * scaley

Picture1.PSet Step(x, -s), vbRed ElseIf i >= 150 And i <= 190 Then q = i * t

x = -246.46 * (q - 5 * 3.14 / 6)

s = 120 - 123.23 * (q - 5 * 3.14 / 6) ^ 2 Picture1.PSet Step(x, -s), vbRed ElseIf i >= 190 And i <= 230 Then q = i * t