24 lines
767 B
C#
24 lines
767 B
C#
|
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);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|