1. 写入分档增加起始默认值31(以G结尾、不包括NG、扫码NG)
2. 将mes异常为99的情况改为97
This commit is contained in:
@@ -2005,7 +2005,7 @@ namespace JinYuan.ControlCenters
|
||||
}
|
||||
else
|
||||
{
|
||||
listGradeResult[i] = (short)(99);// 走分档NG
|
||||
listGradeResult[i] = (short)(97);// 走分档NG
|
||||
list[i].Remark = $"出站条码[{list[i].BarCode}]外观检OKMES反馈档位:{mesResType[0]},MES未反馈正确档位";
|
||||
throw new Exception("MES未反馈正确档位");
|
||||
}
|
||||
@@ -2015,7 +2015,7 @@ namespace JinYuan.ControlCenters
|
||||
catch (Exception ex)
|
||||
{
|
||||
//listGradeResult[i] = (short)(CommonMethods.MESGradingSet[5] + 20); //(short)26;
|
||||
listGradeResult[i] = (short)(99);// 走分档NG
|
||||
listGradeResult[i] = (short)(97);// 走分档NG
|
||||
list[i].Remark = $"出站条码[{list[i].BarCode}]外观检OK分档NG,MES未反馈正确档位";
|
||||
LoggerHelp.WriteLog("解析出站MES分档数据异常:{ex.Message}", "SysErrorLog");
|
||||
|
||||
@@ -2024,7 +2024,7 @@ namespace JinYuan.ControlCenters
|
||||
else
|
||||
{
|
||||
list[i].Remark = $"出站条码[{list[i].BarCode}]外观检OK分档,MES断连";
|
||||
listGradeResult[i] = 99; //(short)26;
|
||||
listGradeResult[i] = 97; //(short)26;
|
||||
// list[i].Result = "MES NG";
|
||||
CommonMethods.PlcLink.WriteValue("D80", 1, Data_Type.Short);
|
||||
//反馈MES结果
|
||||
|
||||
Reference in New Issue
Block a user