限制NG为98

This commit is contained in:
liming 蔡
2026-08-11 18:57:20 +08:00
parent 25f2ae3d44
commit 3ea4e4fd7b
3 changed files with 39 additions and 36 deletions
+2 -2
View File
@@ -1957,7 +1957,7 @@ namespace JinYuan.ControlCenters
var channels = CommonMethods.mesConfig.ChannelConfig.Channels;
var ngChanel = channels.FirstOrDefault(x => x.Gears.Contains("NG"));
int ngVal = ngChanel == null ? 97 : ngChanel.DefaultValue;
int ngVal = ngChanel == null ? 98 : ngChanel.DefaultValue;
try
{
@@ -2044,7 +2044,7 @@ namespace JinYuan.ControlCenters
else
{
list[i].Remark = $"出站条码[{list[i].BarCode}]外观检OK分档,MES断连";
listGradeResult[i] = 97; //(short)26;
listGradeResult[i] = 98; //(short)26;
// list[i].Result = "MES NG";
CommonMethods.PlcLink.WriteValue("D80", 1, Data_Type.Short);
//反馈MES结果