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, "高温液位"); UpdateLiquidLevelStatusBar(_highTempLevelBarSegments, highSensorA, highSensorB, "高温液位");
} }
bool normalAlert = TryGetCoilValue(a, out bool normalStopSensorA) && #region
TryGetCoilValue(b, out bool normalStopSensorB) && if (!a[0] || !cc[0])
IsLiquidLevelAlertState(normalStopSensorA, normalStopSensorB);
bool highAlert = TryGetCoilValue(cc, out bool highStopSensorA) &&
TryGetCoilValue(d, out bool highStopSensorB) &&
IsLiquidLevelAlertState(highStopSensorA, highStopSensorB);
if (normalAlert || highAlert)
{ {
StopTestForLiquidLevelAlert("ReadAndUpdateData"); ma?.BtnClickFunctionForNew(Function.ButtonType., 10082);
}
else
{
_liquidLevelStopIssued = false;
} }
#endregion
//// 更新进度条 //// 更新进度条
//if (uiProcessBar1 != null && !uiProcessBar1.IsDisposed) //if (uiProcessBar1 != null && !uiProcessBar1.IsDisposed)