Tugas Visual Basic

download Tugas Visual Basic

of 39

description

tugas iseng

Transcript of Tugas Visual Basic

A. JUDUL TUGAS AKHIRRANCANG BANGUN MESIN PENGAYAK PASIR 1,5 HP

B. GAMBAR ALAT

Keterangan:1. Kerangka Mesin2. Mesh3. Motor Listrik4. Pemutar Poros Engkol5. Poros Engkol6. Kotak Penampungan7. Saluran Pembuangan8. Reducer

C. CARA KERJA ALAT1. Sambungkan mesin dengan sumber tegangan.2. Nyalakan mesin dengan menekan tombol ON.3. Setelah mesin menyala, masukan material dari atas secara continuous (terus menerus) hingga diatas mesh tidak terdapat material.4. Matikan mesin dengan menekan tombol OFF.5. Ambil material yang sudah diayak dengan menarik box pelat hasil material.6. Apabila sudah tidak digunakan pastikan sumber tegangan terputus.

D. RUMUS RUMUSRumus rumus yang dipakai adalah sebagai berikut:1. Porosa. b. c. d. e. 2. Pasak 3. Reducer

Keterangan :T= Torsi (N mm)P= Daya (Watt)W= Kecepatan Putar = Putaran Poros Pada Motor (Rpm)= Putaran Poros Pada Reducer (Rpm)D= Diameter Poros (mm)= Tegangan geser izin = Tegangan Tarik maksimum = Tegangan Tarik izin V= Angka KeamananA= Luas Penampang geser pada pasak (mm)P,l= panjang, lebar pasak (mm)

E. FLOW CHARTHitung dan Ulangi SELESAIINPUT POROSP,N,, Bahan Poros, Safety FactorINPUT PASAKD,l,, Bahan Poros, Safety Factor,GayaINPUT Perhitungan Reducer

MULAIMENU(Pilih POROS, PASAK, REDUCER)

(Aman)

Diameter dan GayaPanjang Pasak dan Tegangan geser yang terjadiPutaran Poros dari Reducer

2

F. TAMPILAN DAN PROGRAM TUGAS AKHRA. Form 1 (Menu)

Kode Pemograman :Private Sub Command1_Click() Form2.Show Form1.HideEnd Sub

Private Sub Command2_Click() Form3.Show Form1.HideEnd Sub

Private Sub Command3_Click() EndEnd Sub

Private Sub Command4_Click() Form5.Show Form1.HideEnd Sub

B. Form 2 (Perencanaan Poros)

Kode Pemograman :Dim TeganganGeser, BahanPoros As Single(General)Private Sub Combo1_Click() TeganganGeser = Combo1.ItemData(Combo1.ListIndex) Text3 = Format(TeganganGeser, "#,##,##,#0")End Sub

Private Sub Command1_Click() Text5 = Val(Text3) / Val(Text4) Text5 = Format(Text5, "0.#0")End Sub

Private Sub Command10_Click() Text10 = (2 * (Text7)) / (Text8) Text10 = Format(Text10, "0.#0")End SubPrivate Sub Command2_Click() Text6 = 0.8 * (Text5) Text6 = Format(Text6, "0.#0") End Sub

Private Sub Command3_Click() Text7 = (Val(Text1) / (Text9)) * 1000 Text7 = Format(Text7, "0.#0")End Sub

Private Sub Command4_Click() Const phi = 3.14 Text8 = ((16 * (Text7)) / (phi * (Text6))) ^ (1 / 3) Text8 = Format(Text8, "0.#0")End Sub

Private Sub Command5_Click() Const phi = 3.14 Text9 = (2 * phi * Val(Text2)) / 60 Text9 = Format(Text9, "0.#0") Text5 = Val(Text3) / Val(Text4) Text5 = Format(Text5, "0.#0") Text6 = 0.8 * (Text5) Text6 = Format(Text6, "0.#0") Text7 = (Val(Text1) / (Text9)) * 1000 Text7 = Format(Text7, "0.#0") Text8 = ((16 * (Text7)) / (phi * (Text6))) ^ (1 / 3) Text8 = Format(Text8, "0.#0") Text10 = (2 * (Text7)) / (Text8) Text10 = Format(Text10, "0.#0")End Sub

Private Sub Command6_Click() Form1.Show Form2.HideEnd Sub

Private Sub Command7_Click() EndEnd Sub

Private Sub Command8_Click() Const phi = 3.14 Text9 = (2 * phi * Val(Text2)) / 60 Text9 = Format(Text9, "0.#0")End Sub

Private Sub Command9_Click(Index As Integer) Text1 = "" Text2 = "" Text3 = "" Text4 = "" Text5 = "" Text6 = "" Text7 = "" Text8 = "" Text9 = "" Text10 = "" Text1.SetFocusEnd Sub

Private Sub Form_Load()Combo1.List(0) = "ST37"Combo1.List(1) = "ST42"Combo1.List(2) = "ST44"Combo1.List(3) = "ST50"Combo1.List(4) = "ST60"Combo1.ItemData(0) = 362.97Combo1.ItemData(1) = 412.02Combo1.ItemData(2) = 431.64Combo1.ItemData(3) = 490.5Combo1.ItemData(4) = 588.6End Sub

C. Form 3 (Perencanaan Pasak)

Kode Pemograman :Dim Diameter, Bahan As Single(General)Dim TeganganGeser, BahanPoros As Single(General)Private Sub Combo1_Click() TeganganGeser = Combo1.ItemData(Combo1.ListIndex) Text3 = Format(TeganganGeser, "#,##,##,#0")End Sub

Private Sub Combo2_Click() Diameter = Combo2.ItemData(Combo2.ListIndex) Text1 = Format(Diameter, "#,##,##,#0")End Sub

Private Sub Command1_Click() Text5 = Val(Text3) / Val(Text4) Text5 = Format(Text5, "0.#0")End Sub

Private Sub Command2_Click() Text6 = 0.8 * (Text5) Text6 = Format(Text6, "0.#0")End Sub

Private Sub Command3_Click() Text2 = (Val(Text8)) / (Val(Text1) * (Val(Text6))) Text2 = Format(Text2, "0.#0")End Sub

Private Sub Command4_Click()Text7 = Val(Text8) / (Val(Text1) * (Text2))Text7 = Format(Text7, "0.#0")If Text7