- ©«¤l
- 72
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 88
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-6-28
- ³Ì«áµn¿ý
- 2018-11-14
|
¥»©«³Ì«á¥Ñ happycoccolin ©ó 2015-1-20 17:06 ½s¿è
¦^´_ 18# GBKEE
ª©¤j~½Ð°Ý¤@¤U¥Ø«e§Úrun¹L,µo²{0hm³¡¤À³£·|Åã¥ÜFAIL,¦ý¬O§Ú̸̱¤w¸g¦³¼g¨ì¦¹¬q¤F,½Ð°ÝÀ³¦p¦óקï©O?ÁÂÁÂ~
¡y0ohm¡z¡GohmÃþªº¦r¤¸«e±¥i¯à±aªÅ®æ,³¡¤À¥¼±aªÅ®æ
IF(O1="R",IF(OR((M1="0ohm"),(M1="0 ohm")),IF(Q1¥¤è*N1< W°Ñ¾\¶µ¥Ø2*0.6,PASS,FAIL)))
¨Ò¦p:W»Ýn§PÂ_P1¥un¦³¥X²{0402¦r¤¸´N= 0.0625 ³Ì¤U±¦³¤@¹ïÀ³ªí®æ
IF(O1="R",IF(OR((M1="0ohm"),(M1="0 ohm")),IF(Q1¥¤è*N1<0.0625*0.6,PASS,FAIL)))
Case "R"
Msg = Split(Cells(i, "P"), "_") 'Msg = PÄ椤¥Î "_" ¦r¦ê¤À³Î¶Ç¦^ªº°}¦C
If UBound(Msg) = 0 Then '°}¦C¤¸¯À¥u¦³¤@Ó,PÄ椤¨S¦³"_"ªº¦r¤¸
Msg = Split(Cells(i, "P"), "_")(0)
ElseIf UBound(Msg) > 0 Then 'PÄ椤¦³"_"ªº¦r¤¸
Msg = Split(Cells(i, "P"), "_")(1)
If Mid(UCase(Msg), 1, 1) = "H" Then
'"r0603_hxx"(xx¬OÅܼÆ) : r+«á¥|½X¦r¦ê_hxx
Msg = Split(Cells(i, "P"), "_")(0)
End If
End If
W = 0
Select Case Right(Trim(Msg), 4) ' PÄæ«á4½X¦r¦ê
Case "0402" '¹s¥ó¤j¤p
W = 0.0625 '¥\²v(W)
Case "0603"
W = 0.1
Case "0805"
W = 0.125
Case "1206"
W = 0.25
Case "1210"
W = 0.3333
Case "1812"
W = 0.5
Case "2010"
W = 0.75
Case "2512"
W = 1
End Select
'**********************************************************************
'4.¥H¤U³o¬q,Y¬OKohm & Mohm¤¤¶¡±a¤@ӪŮæ(K ohm & M ohm),¤@¼Ë¥i¥H§PÂ_¥X¨Ó¶Ü?
'**************************************************************************
Msg = UCase(Right(Trim(Cells(i, "M")), 5))
If Msg = "K OHM" Or Msg = "M OHM" Then 'Ū¨ú5Ó¦r¤¸,¨ú±o¼Ú©i³æ¦ì
'M1»Ý§PÂ_È:¥H¼Ú©iÈpºâ.Y¬°Kohm¡G¨äÈ¡Ñ1000¡BY¬°Mohm¡G¨äÈ¡Ñ1000000)
'¨Ò¦p:M1=2.64Kohm=2.64*1000=2640
M = Val(Cells(i, "M")) * 10000 'Kohm
If Msg = "M OHM" Then M = Val(Cells(i, "M")) * 1000000
'IF(O1="R",IF(OR((M1<>"0ohm"),(M1<>"0 ohm")),IF(Q1¥¤è/2640-2640*N1<0.0625*0.6,PASS,FAIL)))
Msg = Cells(i, "Q") ^ 2 / M - M * Cells(i, "N") < W * 0.6
End If
If Not IsNumeric(Msg) Then '5Ó¦r¤¸,«D¼Ú©i³æ¦ì
Msg = UCase(Right(Trim(Cells(i, "M")), 4)) 'Ū¨ú4Ó¦r¤¸,¨ú±o¼Ú©i³æ¦ì
If Msg = "0OHM" Or Msg = " OHM" Then '¡y«D0 ohm¡z¡GohmÃþªº¦r¤¸«e±¥i¯à±aªÅ®æ,³¡¤À¥¼±aªÅ®æ
'IF(O1="R",IF(OR((M1="0ohm"),(M1="0 ohm")),IF(Q1¥¤è*N1< W°Ñ¾\¶µ¥Ø2*0.6,PASS,FAIL)))
M = Val(Cells(i, "M"))
Msg = Cells(i, "Q") ^ 2 * Cells(i, "N") < W * 0.6
ElseIf Msg = "KOHM" Or Msg = "MOHM" Then
'M1»Ý§PÂ_È:¥H¼Ú©iÈpºâ.Y¬°Kohm¡G¨äÈ¡Ñ1000¡BY¬°Mohm¡G¨äÈ¡Ñ1000000)
'¨Ò¦p:M1=2.64Kohm=2.64*1000=2640
M = Val(Cells(i, "M")) * 10000 'Kohm
If Msg = "MOHM" Then M = Val(Cells(i, "M")) * 1000000
'IF(O1="R",IF(OR((M1<>"0ohm"),(M1<>"0 ohm")),IF(Q1¥¤è/2640-2640*N1<0.0625*0.6,PASS,FAIL)))
Msg = Cells(i, "Q") ^ 2 / M - M * Cells(i, "N") < W * 0.6
End If
End If
If Not IsNumeric(Msg) Then '4Ó¦r¤¸,«D¼Ú©i³æ¦ì
Msg = UCase(Right(Trim(Cells(i, "M")), 3)) '³Ñ¤U3Ó¦r¤¸,³Ì¤pªº¼Ú©i³æ¦ì
M = Val(Cells(i, "M"))
Msg = Cells(i, "Q") ^ 2 * Cells(i, "N") < W * 0.6
End If
³o¬O°õ¦æ¥X¨Óªºµ²ªG
½Æ¥» 1222_test_bom1.zip (55.63 KB)
»yªk
TEST20150120.zip (17.02 KB)
¦A«ô°Uª©¤j«ü¾É,ÁÂÁÂ~~~«ô°U~~ |
|