版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、精選優(yōu)質(zhì)文檔-傾情為你奉上 沈陽航空航天大學鉸鏈四桿機構(gòu)設計報告 學院:機電工程學院班級:姓名:學號:Dim a, b, c, d, e, f, l1, l2, l3, l4, w1, w2, w3, a2, a3#, p, m, dc, bjj, n%Private Sub Command1_Click() 桿長賦值l1 = Val(Text1(0).Text)l2 = Val(Text1(1).Text)l3 = Val(Text1(2).Text)l4 = Val(Text1(3).Text)a = Val(Text3.Text) * 3.979 / 180 初始 角度轉(zhuǎn)弧度Call b
2、j(bjj)If bjj = 1 Then Exit Subw1 = 0Call jsg w1 = Val(Text2.Text) 公式計算角速度,角加速度 w2 = -w1 * l1 * Sin(a - c) / (l3 * Sin(b - c)w3 = w1 * l1 * Sin(a - b) / (l2 * Sin(c - b)Text4.Text = w2Text6.Text = w3a2 = (l3 * w3 * w3 - l1 * w1 * w1 * Cos(a - c) - l2 * w2 * w2 * Cos(b - c) / (l2 * Sin(b - c)a3 = (l2
3、* w2 * w2 + l1 * w1 * w1 * Cos(a - b) - l3 * w3 * w3 * Cos(c - b) / (l3 * Sin(c - b)Text5.Text = a2Text7.Text = a3End SubFunction jsg()If p = 0 Then p = -1On Error GoTo ela = a + 0.01 * w1 角度隨時間增加d = l4 - l1 * Cos(a)e = -l1 * Sin(a)f = (d 2 + e 2 + l3 2 - l2 2) / (2 * l3)c = 2 * Atn(e + Sqr(d 2 + e
4、2 - f 2) * p) / (d - f)b = Atn(e + l3 * Sin(c) / (d + l3 * Cos(c)w1 = -w1el: w1 = -w1Line1(0).Y1 = Picture1.Height / 2 定義各個線段端點的坐標Line1(0).X1 = Picture1.Width / 2Line1(0).X2 = l1 * Cos(a) + Line1(0).X1Line1(0).Y2 = Line1(0).Y1 - l1 * Sin(a)Line1(3).X2 = Line1(0).X1 + l4Line1(3).Y2 = Line1(0).Y1Line1
5、(3).X1 = Line1(0).X1Line1(3).Y1 = Line1(0).Y1Line1(2).X1 = Line1(3).X2 + l3 * Cos(c)Line1(2).Y1 = Line1(3).Y2 - l3 * Sin(c)Line1(2).X2 = Line1(3).X2Line1(2).Y2 = Line1(3).Y2Line1(1).X1 = Line1(0).X2Line1(1).Y1 = Line1(0).Y2Line1(1).X2 = Line1(2).X1Line1(1).Y2 = Line1(2).Y1Shape1(i).Left = Line1(i).X
6、1 - 50 連接兩桿轉(zhuǎn)動副的中心坐標 Shape1(i).Top = Line1(i).Y1 - 50Next iPicture1.PSet (Line1(1).X1, Line1(1).Y1), vbRed 畫出主動件和連架桿的軌跡Picture1.PSet (Line1(2).X1, Line1(2).Y1), vbGreenEnd FunctionFunction bj(x) 桿長條件的判斷x = 0xld = Val(Text1(0).Text)xlx = Val(Text1(0).Text) For i = 1 To 3 If xld < Val(Text1(i).Text)
7、 Then xld = Val(Text1(i).Text)If xlx > Val(Text1(i).Text) Then xlx = Val(Text1(i).Text)Next iFor i = 0 To 3zh = Val(Text1(i).Text) + zhNext iIf (xlx + xld) > (zh - (xlx + xld) ThenMsgBox ("不滿足桿長要求")x = 1End IfEnd Function。 Picture2.Scale (-8, 4)-(8, -4) 畫出角速度w2函數(shù)圖像 Picture2.Line (-7.
8、5, 0)-(7.5, 0) Picture2.Line (0, 3.8)-(0, -3.8) Picture2.CurrentX = 7.5: Picture2.CurrentY = 0.2: Picture2.Print "x" Picture2.CurrentX = 0.3: Picture2.CurrentY = 4: Picture2.Print "y" For i = -7 To 7 Picture2.Line (i, 0)-(i, 0.1) Picture2.CurrentX = i - 0.1: Picture2.CurrentY = -
9、0.01: Picture2.Print i Next i For i = 3.2 To -3.2 Step -0.2 If i > -0.01 And i < 0.01 Then i = 0 Picture2.CurrentX = -0.3: Picture2.CurrentY = i + 0.03: Picture2.Print i Picture2.Line (0.3, i)-(0, i)Next iDim a1, b1, c1, d1, e1, f1, w11#w11 = 0.001For x = -6.283 To 6.283 Step 0.001If p = 0 The
10、n p = -1On Error GoTo el a1 = a1 + w11 d1 = l4 - l1 * Cos(a1) e1 = -l1 * Sin(a1) f1 = (d1 2 + e1 2 + l3 2 - l2 2) / (2 * l3) c1 = 2 * Atn(e1 + Sqr(d1 2 + e1 2 - f1 2) * p) / (d1 - f1) b1 = Atn(e1 + l3 * Sin(c1) / (d1 + l3 * Cos(c1) w11 = -w11el: w11 = -w11w111 = Val(Text2.Text)w21 = -w111 * l1 * Sin
11、(a1 - c1) / (l3 * Sin(b1 - c1)w31 = w1 * l1 * Sin(a1 - b1) / (l2 * Sin(c1 - b1)a21 = (l3 * w31 * w31 - l1 * w111 * w111 * Cos(a1 - c1) - l2 * w21 * w21 * Cos(b1 - c1) / (l2 * Sin(b1 - c1)a31 = (l2 * w21 * w21 + l1 * w111 * w111 * Cos(a1 - b1) - l3 * w31 * w31 * Cos(c1 - b1) / (l3 * Sin(c1 - b1)Pictu
12、re2.PSet (x, w21)Next xEnd IfEnd Sub Picture3.Scale (-8, 3.5)-(8, -3.5) 畫出角速度w3函數(shù)圖像 Picture3.Line (-7.5, 0)-(7.5, 0) Picture3.Line (0, 3.4)-(0, -3.4) Picture3.CurrentX = 7.5: Picture3.CurrentY = 0.2: Picture3.Print "x" Picture3.CurrentX = 0.3: Picture3.CurrentY = 3.5: Picture3.Print "
13、y" For i = -7 To 7 Picture3.Line (i, 0)-(i, 0.1) Picture3.CurrentX = i - 0.1: Picture3.CurrentY = -0.01: Picture3.Print i Next i For i = 3.2 To -3.2 Step -0.2 If i > -0.01 And i < 0.01 Then i = 0 Picture3.CurrentX = -0.3: Picture3.CurrentY = i + 0.03: Picture3.Print i Picture3.Line (0.3,
14、i)-(0, i)Next iDim a1, b1, c1, d1, e1, f1, w11#w11 = 0.001For x = -6.283 To 6.283 Step 0.001If p = 0 Then p = -1On Error GoTo el a1 = a1 + w11 d1 = l4 - l1 * Cos(a1) e1 = -l1 * Sin(a1) f1 = (d1 2 + e1 2 + l3 2 - l2 2) / (2 * l3) c1 = 2 * Atn(e1 + Sqr(d1 2 + e1 2 - f1 2) * p) / (d1 - f1) b1 = Atn(e1
15、+ l3 * Sin(c1) / (d1 + l3 * Cos(c1) w11 = -w11el: w11 = -w11w111 = Val(Text2.Text)w21 = -w111 * l1 * Sin(a1 - c1) / (l3 * Sin(b1 - c1)w31 = w1 * l1 * Sin(a1 - b1) / (l2 * Sin(c1 - b1)a21 = (l3 * w31 * w31 - l1 * w111 * w111 * Cos(a1 - c1) - l2 * w21 * w21 * Cos(b1 - c1) / (l2 * Sin(b1 - c1)a31 = (l2
16、 * w21 * w21 + l1 * w111 * w111 * Cos(a1 - b1) - l3 * w31 * w31 * Cos(c1 - b1) / (l3 * Sin(c1 - b1)Picture3.PSet (x, w31)Next xEnd IfEnd SubPrivate Sub Picture4_DblClick() 畫出角加速度a2Picture3.Clsd Picture4.Scale (-8, 8)-(8, -8) Picture4.Line (-7.5, 0)-(7.5, 0) Picture4.Line (0, 7.5)-(0, -7.5) Picture4.
17、CurrentX = 7.5: Picture4.CurrentY = 0.2: Picture4.Print "x" Picture4.CurrentX = 0.3: Picture4.CurrentY = 8: Picture4.Print "y" For i = -7 To 7 Picture4.Line (i, 0)-(i, 0.1) Picture4.CurrentX = i - 0.1: Picture4.CurrentY = -0.01: Picture4.Print i Next i For i = 7 To -7 Step -0.5 I
18、f i > -0.01 And i < 0.01 Then i = 0 Picture4.CurrentX = -0.3: Picture4.CurrentY = i + 0.03: Picture4.Print i Picture4.Line (0.3, i)-(0, i)Next iDim a1, b1, c1, d1, e1, f1, w11#w11 = 0.001For x = -6.283 To 6.283 Step 0.001If p = 0 Then p = -1On Error GoTo elell: a1 = a1 + w11 d1 = l4 - l1 * Cos
19、(a1) If IsEmpty(d1) Then GoTo ell e1 = -l1 * Sin(a1) If IsEmpty(e1) Then GoTo ell f1 = (d1 2 + e1 2 + l3 2 - l2 2) / (2 * l3) If IsEmpty(f1) Then GoTo ell c1 = 2 * Atn(e1 + Sqr(d1 2 + e1 2 - f1 2) * p) / (d1 - f1) If IsEmpty(c1) Then GoTo ell End If b1 = Atn(e1 + l3 * Sin(c1) / (d1 + l3 * Cos(c1) If
20、 IsEmpty(b1) Then GoTo ell w11 = -w11el: w11 = -w11w111 = Val(Text2.Text)If b1 = Null Then GoTo ellw21 = -w111 * l1 * Sin(a1 - c1) / (l3 * Sin(b1 - c1)w31 = w1 * l1 * Sin(a1 - b1) / (l2 * Sin(c1 - b1)a21 = (l3 * w31 * w31 - l1 * w111 * w111 * Cos(a1 - c1) - l2 * w21 * w21 * Cos(b1 - c1) / (l2 * Sin(
21、b1 - c1)a31 = (l2 * w21 * w21 + l1 * w111 * w111 * Cos(a1 - b1) - l3 * w31 * w31 * Cos(c1 - b1) / (l3 * Sin(c1 - b1)Picture4.PSet (x, a21) Picture5.Scale (-8, 8)-(8, -8) 畫出角加速度a3 Picture5.Line (-7.5, 0)-(7.5, 0) Picture5.Line (0, 7.5)-(0, -7.5) Picture5.CurrentX = 7.5: Picture5.CurrentY = 0.2: Pictu
22、re5.Print "x" Picture5.CurrentX = 0.3: Picture5.CurrentY = 8: Picture5.Print "y" For i = -7 To 7 Picture5.Line (i, 0)-(i, 0.1) Picture5.CurrentX = i - 0.1: Picture5.CurrentY = -0.01: Picture5.Print i Next i For i = -7 To 7 Step 0.5 If i > -0.01 And i < 0.01 Then i = 0 Pictu
23、re5.CurrentX = -0.3: Picture5.CurrentY = i + 0.03: Picture5.Print i Picture5.Line (0.3, i)-(0, i) Next iDim a1, b1, c1, d1, e1, f1, w11#w11 = 0.001For x = -6.283 To 6.283 Step 0.001If p = 0 Then p = -1On Error GoTo el a1 = a1 + w11 d1 = l4 - l1 * Cos(a1) e1 = -l1 * Sin(a1) f1 = (d1 2 + e1 2 + l3 2 -
24、 l2 2) / (2 * l3) c1 = 2 * Atn(e1 + Sqr(d1 2 + e1 2 - f1 2) * p) / (d1 - f1) b1 = Atn(e1 + l3 * Sin(c1) / (d1 + l3 * Cos(c1) w11 = -w11el: w11 = -w11w111 = Val(Text2.Text)w21 = -w111 * l1 * Sin(a1 - c1) / (l3 * Sin(b1 - c1)w31 = w1 * l1 * Sin(a1 - b1) / (l2 * Sin(c1 - b1)a21 = (l3 * w31 * w31 - l1 *
25、 w111 * w111 * Cos(a1 - c1) - l2 * w21 * w21 * Cos(b1 - c1) / (l2 * Sin(b1 - c1)a31 = (l2 * w21 * w21 + l1 * w111 * w111 * Cos(a1 - b1) - l3 * w31 * w31 * Cos(c1 - b1) / (l3 * Sin(c1 - b1)Picture5.PSet (x, a31) Picture6.Scale (-8, 3.5)-(8, -3.5) 角位移s2,s3函數(shù)的輸出 Picture6.Line (-7.5, 0)-(7.5, 0) Picture6.Line (0, 3.2)-(0, -3.2) Picture6.CurrentX = 7.5: Picture6.CurrentY = 0.2: Picture6.Print "x" Picture6.CurrentX = 0.3: Picture6.CurrentY = 3.5: Picture6.Print "y" For i = -7 To 7 Step 0.5 Picture6.Line (i, 0)-(i, 0.1) Picture6.CurrentX = i - 0.1: Picture6.Curre
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 21033-2025飼料中免疫球蛋白IgG的測定高效液相色譜法
- 四川省內(nèi)江市隆昌市知行中學2025-2026學年度第一學期第二次月考初中八年級數(shù)學試題(學生版+答案版)
- 廣東省汕頭市潮南區(qū)陳店公辦八校2024-2025學年七年級上學期12月月考歷史試題(含答案)
- 養(yǎng)老院入住老人休閑娛樂設施管理制度
- 企業(yè)內(nèi)部保密工作培訓制度
- 2026年中考道德與法治一輪復習:易混易錯122 題含答案
- 粗鎢酸鈉溶液制備工沖突解決模擬考核試卷含答案
- 我國上市公司管理層收購的公司治理效應剖析:理論、實證與案例洞察
- 鑿巖工崗前潛力考核試卷含答案
- 我國上市公司投資者關(guān)系管理的多維審視與優(yōu)化路徑
- 安全生產(chǎn)目標及考核制度
- (2026版)患者十大安全目標(2篇)
- 大數(shù)據(jù)安全技術(shù)與管理
- 2026青島海發(fā)國有資本投資運營集團有限公司招聘計劃筆試備考試題及答案解析
- 2026年北大拉丁語標準考試試題
- 鼻飼技術(shù)操作課件
- 臨床護理操作流程禮儀規(guī)范
- 2025年酒店總經(jīng)理年度工作總結(jié)暨戰(zhàn)略規(guī)劃
- 空氣栓塞課件教學
- 置景服務合同范本
- 隧道掛防水板及架設鋼筋臺車施工方案
評論
0/150
提交評論