Sic.Framework-Nanjing-Baishi/MECF.Framework.RT.Equipment.../Devices/IoSensorWaterFlowTemp.cs

24 lines
767 B
C#
Raw Normal View History

using System;
using System.Xml;
namespace Aitex.Core.RT.Device.Devices
{
public class IoSensorWaterFlowTemp : IoSensorAnalog
{
public IoSensorWaterFlowTemp(string module, XmlElement node, string ioModule = "")
: base(module, node, ioModule)
{
// 重新设定水温警告值当前系统中的水温警告值非设定值而是在Alarm基础上偏移指定的温度。
var warnOffset = ParseScNode("", node, ioModule, $"{ScBasePath}.WarningOffset")?.DoubleValue ??
0.0;
checked
{
_warningLow = _alarmLow + Math.Abs(warnOffset);
_warningHigh = _alarmHigh - Math.Abs(warnOffset);
}
}
}
}