总结果、平面度结果

This commit is contained in:
Administrator
2026-08-21 19:17:39 +08:00
parent 84305a1318
commit 1aefa2611e
4 changed files with 25 additions and 6 deletions
+17 -3
View File
@@ -1372,9 +1372,9 @@ namespace JinYuan.ControlCenters
m.CCD_FLATNESS = FloatLib.GetFloatFromByteArray(bArrays.Content, 400 + i * 30 * 2, DataFormat.CDAB);
short fatResult = ShortLib.GetShortFromByteArray(bArrays.Content, 600 + i * 30 * 2, DataFormat.CDAB);
m.CCD_FLATNESS_Result = ConstValue.JudgeResult(fatResult);
m.CCDFLATNESSResult = ConstValue.JudgeResult(fatResult);
#region 注释掉的采集数据 by clm 20260812
//3400
////3400
//m.Thickness1 = FloatLib.GetFloatFromByteArray(bArrays.Content, 400 + i * 30 * 2, DataFormat.CDAB);
//m.ThicknessResult1 = FloatLib.GetFloatFromByteArray(bArrays.Content, 400 + i * 30 * 2 + 2 * 2, DataFormat.CDAB).ToString();
////3500
@@ -1501,6 +1501,20 @@ namespace JinYuan.ControlCenters
//m.CCDResult19 = m.CCD_Data[i, 18] == 1 ? "OK" : (m.CCD_Data[i, 18] == 0 ? "NG" : "缺图");
//m.CCDResult20 = m.CCD_Data[i, 19] == 1 ? "OK" : (m.CCD_Data[i, 19] == 0 ? "NG" : "缺图");
string[] ccdArr = new string[] {
m.CCDResult1, m.CCDResult2, m.CCDResult3, m.CCDResult4, m.CCDResult5, m.CCDResult6, m.CCDResult7, m.CCDResult8, m.CCDResult9,
m.CCDResult10, m.CCDResult11, m.CCDResult11, m.CCDResult12, m.CCDResult13, m.CCDFLATNESSResult
};
int okCount = ccdArr.Count(it => it.Equals("OK"));
if (okCount == ccdArr.Length)
{
m.IsAllCcdOK = "OK";
}
else
{
m.IsAllCcdOK = "NG";
}
#region 注释代码
//m.CCDResult21 = m.CCD_Data[i, 20] == 1 ? "OK" : (m.CCD_Data[i, 20] == 0 ? "NG" : "缺图");
//m.CCDResult22 = m.CCD_Data[i, 21] == 1 ? "OK" : (m.CCD_Data[i, 21] == 0 ? "NG" : "缺图");
@@ -1574,7 +1588,7 @@ namespace JinYuan.ControlCenters
MyRes[i] = 2;//扫码NG
var judementResult = JudgmentWGJResult(1, m.CCD_Data, i);
if (m.CCD_FLATNESS_Result != "OK")
if (m.CCDFLATNESSResult != "OK")
{
//1OK,2扫码NG,3MES反馈NG,4其他NG
judementResult.Item1 = 4;
+6 -1
View File
@@ -91,7 +91,7 @@ namespace JinYuan.Models
/// <summary>
/// 测厚(平面度)结果
/// </summary>
public string CCD_FLATNESS_Result { get; set; }
public string CCDFLATNESSResult { get; set; }
#endregion
public string CCD1NgCode { get; set; }
@@ -260,5 +260,10 @@ namespace JinYuan.Models
/// </summary>
public int Flag1 { get; set; }
/// <summary>
/// 所有CCD采集项综合结果(OK/NG)
/// </summary>
[SugarColumn(IsIgnore = true)]
public string IsAllCcdOK { get; set; } = "NG";
}
}
+1 -1
View File
@@ -37,7 +37,7 @@ namespace JinYuan.Models
/// </summary>
public static Dictionary<string, string> CCDSpecialDic = new Dictionary<string, string> {
{ "CCD_FLATNESS", "测厚(平面度)" },
{ "CCD_FLATNESS_RESULT", "测厚(平面度)结果" }
{ "CCDFLATNESSResult", "测厚(平面度)结果" }
};
public static string JudgeResult(int result)
+1 -1
View File
@@ -1,2 +1,2 @@
ALTER TABLE LargeSquareOne604.dbo.BGearEntity ADD CCD_FLATNESS nvarchar(255) NULL;
ALTER TABLE LargeSquareOne604.dbo.BGearEntity ADD CCD_FLATNESS_Result nvarchar(50) NULL;
ALTER TABLE LargeSquareOne604.dbo.BGearEntity ADD CCDFLATNESSResult nvarchar(50) NULL;