1257 界面修改

This commit is contained in:
ldw
2025-07-24 16:39:47 +08:00
parent d168ab7e58
commit e2ef116a73
14 changed files with 1697 additions and 1699 deletions
+6 -2
View File
@@ -1139,11 +1139,15 @@ namespace JinYuan.ControlCenters
if (flag)//产出
{
strAddr = "D" + (1032 + hour);
//strAddr = "D" + (1032 + hour);
//1257
strAddr = "D" + (1040 + hour);
}
else//良品数
{
strAddr = "D" + (1062 + hour);
// strAddr = "D" + (1062 + hour);
//1257
strAddr = "D" + (1070 + hour);
}
int ProdNGQty = CommonMethods.PlcLink.ReadInt16(strAddr);
return ProdNGQty;
+5 -5
View File
@@ -272,21 +272,21 @@ namespace JinYuan.ControlCenters
{
case MesResType.A:// 停线,设备报警停机
//listRes[i] = 10;
listRes[i] = 3;
listRes[i] = 2;
//m.Remark = MesMessage1;
break;
case MesResType.B:
//listRes[i] = 9;
listRes[i] = 3;
listRes[i] = 2;
//m.Remark = MesMessage1;
break;
case MesResType.C:
//listRes[i] = 1;
listRes[i] = 3;
listRes[i] = 2;
//m.Remark = MesMessage1;
break;
case MesResType.D://OK
listRes[i] = 1;
case MesResType.D:
listRes[i] = 2;
//m.Remark = MesMessage1;
break;
default:
+18 -10
View File
@@ -191,13 +191,16 @@ namespace JinYuan.ControlCenters
{
if (CommonMethods.Lst_DefectTypeQty.Count <= 0)
{
//CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "极性检测不良", DataCount = 0 });
//CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "称重不良", DataCount = 0 });
//CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "铜极耳剪切不良", DataCount = 0 });
//CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "铝极耳剪切不良", DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "CCD1-9", DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "CCD10-14" , DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "CCD15-21" , DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "CCD22-27", DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "极性检测不良", DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "称重不良", DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "铜极耳剪切不良", DataCount = 0 });
CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "铝极耳剪切不良", DataCount = 0 });
//CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "厚度不良", DataCount = 0 });
//CommonMethods.Lst_DefectTypeQty.Add(new ChartDataType { DataType = "焊前CCD正极耳顶面不良", DataCount = 0 });
}
else //读取PLC数据
{
@@ -212,11 +215,16 @@ namespace JinYuan.ControlCenters
int ProdGRFIDNgQty = CommonMethods.PlcLink.ReadInt16("D1006");//铜极耳剪切不良
int ProdYLZNgQty = CommonMethods.PlcLink.ReadInt16("D1004");//铝极耳剪切不良
////從PLC讀取數據賦值給到NGList
//CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "极性检测不良").FirstOrDefault().DataCount = ProdDRFIDNgQty;
//CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "称重不良").FirstOrDefault().DataCount = ProdDXNgQty;
//CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "铜极耳剪切不良").FirstOrDefault().DataCount = ProdGRFIDNgQty;
//CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "铝极耳剪切不良").FirstOrDefault().DataCount = ProdYLZNgQty;
//從PLC讀取數據賦值給到NGList
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "极性检测不良").FirstOrDefault().DataCount = ProdDRFIDNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "称重不良").FirstOrDefault().DataCount = ProdDXNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "铜极耳剪切不良").FirstOrDefault().DataCount = ProdGRFIDNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "铝极耳剪切不良").FirstOrDefault().DataCount = ProdYLZNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "CCD1-9").FirstOrDefault().DataCount = ProdDRFIDNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "CCD10-14").FirstOrDefault().DataCount = ProdDXNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "CCD15-21").FirstOrDefault().DataCount = ProdGRFIDNgQty;
CommonMethods.Lst_DefectTypeQty.Where(p => p.DataType == "CCD22-27").FirstOrDefault().DataCount = ProdYLZNgQty;
}
catch (Exception ex)
{