-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmFrecFallaRodam.frm
486 lines (483 loc) · 16.9 KB
/
frmFrecFallaRodam.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
VERSION 5.00
Begin VB.Form frmFrecFallaRodam
BorderStyle = 1 'Fixed Single
Caption = "Cálculo de la Frecuencia de falla de Rodamientos"
ClientHeight = 11115
ClientLeft = 45
ClientTop = 375
ClientWidth = 19005
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 11115
ScaleWidth = 19005
StartUpPosition = 2 'CenterScreen
Begin VB.Frame Frame3
Height = 75
Left = 150
TabIndex = 23
Top = 10440
Width = 15675
End
Begin VB.Frame Frame2
Caption = "Frecuencias de Falla en Hz."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3555
Left = 315
TabIndex = 10
Top = 4455
Width = 6915
Begin VB.TextBox txtBPFO
Appearance = 0 'Flat
Enabled = 0 'False
BeginProperty Font
Name = "Tahoma"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
Locked = -1 'True
TabIndex = 14
Top = 720
Width = 1335
End
Begin VB.TextBox txtBPFI
Appearance = 0 'Flat
Enabled = 0 'False
BeginProperty Font
Name = "Tahoma"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 13
Top = 1440
Width = 1335
End
Begin VB.TextBox txtBPF
Appearance = 0 'Flat
Enabled = 0 'False
BeginProperty Font
Name = "Tahoma"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 12
Top = 2160
Width = 1335
End
Begin VB.TextBox txtFTF
Appearance = 0 'Flat
Enabled = 0 'False
BeginProperty Font
Name = "Tahoma"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 11
Top = 2880
Width = 1335
End
Begin VB.Label lblBPFO
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Frecuencia de defecto en la pista-cubeta exterior en Hz."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1680
TabIndex = 27
Top = 480
Width = 4065
End
Begin VB.Label lblBPFI
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Frecuencia de defecto en la pista-cubeta interior en Hz."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1680
TabIndex = 26
Top = 1200
Width = 4005
End
Begin VB.Label lbl_BPF
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Frecuencia de defecto en el elemento rodante-bola en Hz."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1560
TabIndex = 25
Top = 1920
Width = 4185
End
Begin VB.Label lblFTF
BackStyle = 0 'Transparent
Caption = "Frecuencia de rotación del porta elemento o jaula que contiene los elementos rodantes."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 300
TabIndex = 24
Top = 2640
Width = 6360
End
End
Begin VB.Frame frmIngDatos
Caption = "Ingreso de Datos para el cálculo."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 4155
Left = 300
TabIndex = 9
Top = 180
Width = 7635
Begin VB.ComboBox cmbBuscarRodam
Height = 315
Left = 420
Style = 2 'Dropdown List
TabIndex = 0
Top = 720
Width = 6735
End
Begin VB.CommandButton cmdBuscar
Caption = "&Buscar"
Height = 360
Left = 4920
TabIndex = 6
ToolTipText = "Buscar rodamiento por codigo y marca."
Top = 3600
Width = 990
End
Begin VB.CommandButton cmdCalcular
Caption = "Calcular"
Height = 360
Left = 3840
TabIndex = 5
ToolTipText = "Iniciar cálculo..."
Top = 3600
Width = 990
End
Begin VB.CommandButton cmdLimpiar
Caption = "Limpiar"
Height = 360
Left = 6240
TabIndex = 7
ToolTipText = "Limpiar último cálculo."
Top = 3600
Width = 990
End
Begin VB.TextBox txtRPM
Height = 375
Left = 5220
TabIndex = 1
ToolTipText = "Velocidad del aro interior en RPM."
Top = 1260
Width = 1335
End
Begin VB.TextBox txtDiamBolas
Height = 375
Left = 5220
TabIndex = 2
ToolTipText = "Diámetro del elemento rodante en mm."
Top = 1800
Width = 1335
End
Begin VB.TextBox txtDiamCenBolas
Height = 375
Left = 5220
TabIndex = 3
ToolTipText = "diámetro efectivo (diámetro entre los centros de los elementos rodantes) en mm."
Top = 2340
Width = 1335
End
Begin VB.TextBox txtAngCtto
Height = 375
Left = 5220
TabIndex = 4
ToolTipText = "Ángulo de contacto en grados."
Top = 2880
Width = 1335
End
Begin VB.Label lblSelRodCodMarca
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Seleccionar rodamiento, codigo y marca..."
Height = 195
Left = 420
TabIndex = 28
Top = 480
Width = 3030
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "grados."
Height = 195
Left = 6660
TabIndex = 22
Top = 2940
Width = 555
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "mm."
Height = 195
Left = 6660
TabIndex = 21
Top = 2400
Width = 300
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "mm."
Height = 195
Left = 6660
TabIndex = 20
Top = 1920
Width = 300
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "RPM."
Height = 195
Left = 6660
TabIndex = 19
Top = 1380
Width = 375
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Ángulo de contacto en grados."
Height = 195
Left = 2940
TabIndex = 18
Top = 2940
Width = 2220
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Diámetro efectivo entre los centros de los elementos rodantes en mm."
Height = 195
Left = 120
TabIndex = 17
Top = 2460
Width = 5040
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Diámetro del elemento rodante en mm."
Height = 195
Left = 2400
TabIndex = 16
Top = 1920
Width = 2790
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Velocidad del aro interior en RPM."
Height = 195
Left = 2760
TabIndex = 15
Top = 1380
Width = 2415
End
End
Begin VB.CommandButton cmdSalir
Caption = "&Salir"
Height = 360
Left = 11205
TabIndex = 8
Top = 10665
Width = 990
End
Begin VB.Label Label12
Caption = $"frmFrecFallaRodam.frx":0000
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 600
Left = 8055
TabIndex = 32
Top = 2565
Width = 7935
End
Begin VB.Label Label11
Caption = $"frmFrecFallaRodam.frx":00B8
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 600
Left = 8055
TabIndex = 31
Top = 1800
Width = 7935
End
Begin VB.Label Label10
Caption = $"frmFrecFallaRodam.frx":0168
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 600
Left = 8055
TabIndex = 30
Top = 1035
Width = 7935
End
Begin VB.Label Label9
Caption = $"frmFrecFallaRodam.frx":0227
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 600
Left = 8055
TabIndex = 29
Top = 270
Width = 7935
End
Begin VB.Image imgRodam
Height = 4860
Left = 7695
Picture = "frmFrecFallaRodam.frx":02E6
Top = 4635
Width = 4050
End
End
Attribute VB_Name = "frmFrecFallaRodam"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'--------------------------------------------------------------------------------
' Component : frmFrecFallaRodam
' Project : prjFrecRodamientos
'
' Description: [Cáculo de la frecuencia de falla de rodamientos.]
'
' Modified :
'--------------------------------------------------------------------------------
Option Explicit
Dim v_BPFO, v_BPFI, v_BPF, v_FTF As Double
'txtRPM - velocidad de la pista interior.
'txtDiamBolas - diámetro de las bolas.
'txtDiamCenBolas - diámetro entre centros de bolas.
'txtAngCtto - ángulo de contacto.
'txtBPFO - frecuencia de defecto en la pista exterior.
'txtBPFI - frecuencia de defecto en la pista interior.
'txtBPF - frecuencia de defecto en el elemento rodante.
'txtFTF - frecuencia de defecto en la jaula.
'
Private Sub cmdCalcular_Click()
'Las frecuencias de fallo estan relacionadas a la velocidad de rotacion del anillo interno gNih (ya
'que el anillo interior y el eje tienen la misma velocidad de rotacion, de aqui en adelante Ni sera
'simplemente N), el diametro de inclinacion del rodamiento gDh, el diametro del elemento
'rodante gdh, el numero de bolas o de rodillos gnh, y el angulo de contacto gÆh.
End Sub