|
@@ -181,6 +181,10 @@ namespace PunkHPX8_RT.Devices.Reservoir
|
|
/// 单次补水是否超时
|
|
/// 单次补水是否超时
|
|
/// </summary>
|
|
/// </summary>
|
|
protected bool _isDIReplenPerfillTimeOut = false;
|
|
protected bool _isDIReplenPerfillTimeOut = false;
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 是否有其他DIReplen的警告
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool _isOtherDIReplenWarnOn = false;
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
#region 属性
|
|
#region 属性
|
|
@@ -1183,21 +1187,32 @@ namespace PunkHPX8_RT.Devices.Reservoir
|
|
{
|
|
{
|
|
if (item != Module)
|
|
if (item != Module)
|
|
{
|
|
{
|
|
- ReservoirDevice tmpDevice = DEVICE.GetDevice<ReservoirDevice>(item);
|
|
|
|
- if (tmpDevice.ReservoirData.CaDiReplen)
|
|
|
|
- {
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
ReservoirItem reservoirItem = ReservoirItemManager.Instance.GetReservoirItem(item);
|
|
ReservoirItem reservoirItem = ReservoirItemManager.Instance.GetReservoirItem(item);
|
|
if (reservoirItem.SubType == ReservoirType.DegasMembrance.ToString())
|
|
if (reservoirItem.SubType == ReservoirType.DegasMembrance.ToString())
|
|
{
|
|
{
|
|
|
|
+ DMReservoirDevice tmpDevice = DEVICE.GetDevice<DMReservoirDevice>(item);
|
|
if (tmpDevice.ReservoirData.AnDiReplen)
|
|
if (tmpDevice.ReservoirData.AnDiReplen)
|
|
{
|
|
{
|
|
|
|
+ if (!_isOtherDIReplenWarnOn)
|
|
|
|
+ {
|
|
|
|
+ _isOtherDIReplenWarnOn = true;
|
|
|
|
+ LOG.WriteLog(eEvent.WARN_RESERVOIR, Module, $"{item} AN DiReplen valve is on. {Module} is waiting DiReplen");
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (tmpDevice.ReservoirData.CaDiReplen)
|
|
|
|
+ {
|
|
|
|
+ if (!_isOtherDIReplenWarnOn)
|
|
|
|
+ {
|
|
|
|
+ _isOtherDIReplenWarnOn = true;
|
|
|
|
+ LOG.WriteLog(eEvent.WARN_RESERVOIR, Module, $"{item} CA DiReplen valve is on. {Module} is waiting DiReplen");
|
|
|
|
+ }
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ _isOtherDIReplenWarnOn = false;
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|