外观检1
This commit is contained in:
@@ -1858,7 +1858,7 @@ namespace JinYuan.ControlCenters
|
||||
//}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
m.CCD_NgNo[i, j] = StringLib.GetStringFromByteArrayByEncoding(bArrays.Content, (7800 * 2 + j * 40 * 2), 20 * 2, System.Text.Encoding.ASCII).
|
||||
m.CCD_NgNo[i, j] = StringLib.GetStringFromByteArrayByEncoding(bArrays.Content, (7800 * 2 + j * 40 * 2 + i * 2 * 1000), 20 * 2, System.Text.Encoding.ASCII).
|
||||
Replace('\0', ' ').Replace('\r', ' ').Replace(" ", "").Trim();
|
||||
//ShortLib.GetShortFromByteArray(bArrays.Content, 6800 *2 + j * 2, DataFormat.CDAB);
|
||||
}
|
||||
@@ -1915,10 +1915,30 @@ namespace JinYuan.ControlCenters
|
||||
//List<string> NGcodeList = new List<string>();
|
||||
//NGcodeList = NGcode(m.list_Data1[i, 10], m.list_Data1[i, 11], m.list_Data1[i, 12], m.list_Data1[i, 15], m.list_Data1[i, 26], m.list_Data1[i, 16]
|
||||
// , m.list_Data1[i, 17], m.list_Data1[i, 18], m.list_Data1[i, 19], m.list_Data1[i, 23], m.list_Data1[i, 24], m.list_Data1[i, 25], m.list_Data1[i, 27]);
|
||||
// var (NGcodeList, NGmessage) = NGWGJcode(m.CCD_Data, i);
|
||||
// var (NGcodeList, NGmessage) = NGWGJcode(m.CCD_Data, i);
|
||||
|
||||
//电芯CCD判定结果
|
||||
#region //电芯CCD判定结果 1 0K 0NG 2缺图
|
||||
m.CCD1 = m.CCD_Data[i, 0];
|
||||
m.CCD2 = m.CCD_Data[i, 1];
|
||||
m.CCD3 = m.CCD_Data[i, 2];
|
||||
m.CCD4 = m.CCD_Data[i, 3];
|
||||
m.CCD5 = m.CCD_Data[i, 4];
|
||||
m.CCD6 = m.CCD_Data[i, 5];
|
||||
m.CCD7 = m.CCD_Data[i, 6];
|
||||
m.CCD8 = m.CCD_Data[i, 7];
|
||||
m.CCD9 = m.CCD_Data[i, 8];
|
||||
m.CCD10 = m.CCD_Data[i, 9];
|
||||
m.CCD11 = m.CCD_Data[i, 10];
|
||||
m.CCD12 = m.CCD_Data[i, 11];
|
||||
m.CCD13 = m.CCD_Data[i, 12];
|
||||
m.CCD14 = m.CCD_Data[i, 13];
|
||||
m.CCD15 = m.CCD_Data[i, 14];
|
||||
m.CCD16 = m.CCD_Data[i, 15];
|
||||
m.CCD17 = m.CCD_Data[i, 16];
|
||||
m.CCD18 = m.CCD_Data[i, 17];
|
||||
m.CCD19 = m.CCD_Data[i, 18];
|
||||
m.CCD20 = m.CCD_Data[i, 19];
|
||||
m.CCDResult1 = m.CCD_Data[i, 0] == 1 ? "OK" : (m.CCD_Data[i, 0] == 0 ? "NG" : "缺图");
|
||||
m.CCDResult2 = m.CCD_Data[i, 1] == 1 ? "OK" : (m.CCD_Data[i, 1] == 0 ? "NG" : "缺图");
|
||||
m.CCDResult3 = m.CCD_Data[i, 2] == 1 ? "OK" : (m.CCD_Data[i, 2] == 0 ? "NG" : "缺图");
|
||||
@@ -1973,7 +1993,7 @@ namespace JinYuan.ControlCenters
|
||||
}
|
||||
else
|
||||
MyRes[i] = 2;//扫码NG
|
||||
var judementResult = JudgmentWGJResult(1, list[i].CCD_Data, i);
|
||||
var judementResult = JudgmentWGJResult(1, m.CCD_Data, i);
|
||||
MyRes[i] = judementResult.Item1;
|
||||
OK_NG = judementResult.Item2;
|
||||
NG_Type = judementResult.Item3;
|
||||
|
||||
Reference in New Issue
Block a user