产品结果MES
This commit is contained in:
@@ -259,18 +259,24 @@ namespace JinYuan.ControlCenters
|
||||
private int JudgmentWGJResult(int A, int[,] B, int C)
|
||||
{
|
||||
int Result = 1;
|
||||
OK_NG = "OK";
|
||||
for (int i = 0; i < 28; i++)
|
||||
OK_NG = "OK";
|
||||
for (int i = 0; i < 27; i++)
|
||||
{
|
||||
if (B[C,i] ==1)
|
||||
if (B[C,i] !=1)
|
||||
{
|
||||
//1OK,2扫码NG,3MES反馈NG,4其他NG
|
||||
Result = 4;
|
||||
OK_NG = "NG";
|
||||
NG_Type += $"外观检测NG{i + 1}";
|
||||
NG_Type += $"外观检测NG{i + 1},";
|
||||
}
|
||||
}
|
||||
|
||||
if (A == 2)
|
||||
{
|
||||
NG_Type += "无条码,";
|
||||
Result = 2;
|
||||
OK_NG = "NG";
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
#region 上料工位(数据处理)
|
||||
@@ -1821,7 +1827,7 @@ 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]);
|
||||
NGcodeList = NGWGJcode(m.list_Data1,i);
|
||||
NGcodeList = NGWGJcode(m.CCD_Data, i);
|
||||
|
||||
//电芯CCD判定结果
|
||||
#region //电芯CCD判定结果 1 0K 0NG 2缺图
|
||||
@@ -1880,7 +1886,7 @@ namespace JinYuan.ControlCenters
|
||||
}
|
||||
}
|
||||
else
|
||||
MyRes[i] = 1;
|
||||
MyRes[i] = 2;//扫码NG
|
||||
MyRes[i] = JudgmentWGJResult(Code_NG, m.CCD_Data,i);
|
||||
|
||||
m.Result = MyRes[i];
|
||||
@@ -1957,11 +1963,17 @@ namespace JinYuan.ControlCenters
|
||||
m.Result = MyRes[i] = 3;
|
||||
m.Remark += "MES NG";
|
||||
break;
|
||||
case MesResType.C://可忽略
|
||||
case MesResType.C://可忽略
|
||||
//m.listRes[i] = 1;
|
||||
// m.Result = MyRes[i] = 2;
|
||||
m.Result = MyRes[i] = 3;
|
||||
m.Remark += "MES NG";
|
||||
m.Result = MyRes[i] = 1;
|
||||
m.Remark += "MES Alerm OK";
|
||||
break;
|
||||
case MesResType.D://可忽略
|
||||
//m.listRes[i] = 1;
|
||||
// m.Result = MyRes[i] = 2;
|
||||
m.Result = MyRes[i] = 1;
|
||||
m.Remark += "MES OK";
|
||||
break;
|
||||
default:
|
||||
m.Remark += "MES NG";
|
||||
@@ -2238,12 +2250,12 @@ namespace JinYuan.ControlCenters
|
||||
return NGcodelist;
|
||||
}
|
||||
//下料不良代码 外观检
|
||||
public List<string> NGWGJcode(short[ ,] lstResult,int index)
|
||||
public List<string> NGWGJcode(int[ ,] lstResult,int index)
|
||||
{
|
||||
List<string> NGcodelist = new List<string>();
|
||||
for (int i = 0; i < 28; i++)
|
||||
for (int i = 0; i < 27; i++)
|
||||
{
|
||||
if(lstResult[index,i] == 2)
|
||||
if(lstResult[index,i] !=1)
|
||||
{
|
||||
NGcodelist.Add("WGJA00"+(i+1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user