This commit is contained in:
xyy
2026-04-18 10:46:31 +08:00
parent 90fcd2681a
commit 88ef7dd3e1

View File

@@ -707,21 +707,13 @@ namespace 全自动水压检测仪
UpdateLiquidLevelStatusBar(_highTempLevelBarSegments, highSensorA, highSensorB, "高温液位");
}
bool normalAlert = TryGetCoilValue(a, out bool normalStopSensorA) &&
TryGetCoilValue(b, out bool normalStopSensorB) &&
IsLiquidLevelAlertState(normalStopSensorA, normalStopSensorB);
bool highAlert = TryGetCoilValue(cc, out bool highStopSensorA) &&
TryGetCoilValue(d, out bool highStopSensorB) &&
IsLiquidLevelAlertState(highStopSensorA, highStopSensorB);
#region
if (!a[0] || !cc[0])
if (normalAlert || highAlert)
{
StopTestForLiquidLevelAlert("ReadAndUpdateData");
}
else
{
_liquidLevelStopIssued = false;
ma?.BtnClickFunctionForNew(Function.ButtonType., 10082);
}
#endregion
//// 更新进度条
//if (uiProcessBar1 != null && !uiProcessBar1.IsDisposed)