From 7d815fc0d140cb5ca922d88b8769782051fe1975 Mon Sep 17 00:00:00 2001 From: "SIC1016\\caipeilun" <123456> Date: Tue, 2 Jul 2024 09:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E5=B9=B3=E8=A1=A1=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E7=9A=84=E6=AF=94=E8=BE=83=E5=80=BC=E6=94=B9=E6=88=90?= =?UTF-8?q?FloatValue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Devices/IoPressureBalanceChecker.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MECF.Framework.RT.EquipmentLibrary/Devices/IoPressureBalanceChecker.cs b/MECF.Framework.RT.EquipmentLibrary/Devices/IoPressureBalanceChecker.cs index be69fd5..34583a7 100644 --- a/MECF.Framework.RT.EquipmentLibrary/Devices/IoPressureBalanceChecker.cs +++ b/MECF.Framework.RT.EquipmentLibrary/Devices/IoPressureBalanceChecker.cs @@ -66,20 +66,19 @@ namespace Aitex.Core.RT.Device.Devices protected override void HandleMonitor() { - _value = _aiValue1.Value - _aiValue2.Value; + _value = _aiValue1.FloatValue - _aiValue2.FloatValue; _balanceChecker.Monitor(_value, -_threshold, _threshold, 5); if (_balanceChecker.Trig) { var alarmLevel = SC.SafeGetStringValue($"PM.{Module}.Heater.PressureImbalanceAlarmLevel", "Warning"); if (alarmLevel == "Warning") { - EV.PostWarningLog(Module, $"PT1:{_aiValue1}({_aiValue1.Value})/PT2:{_aiValue2}({_aiValue2.Value}) Pressure out of balance(threshold:{_threshold})"); + EV.PostWarningLog(Module, $"PT1:{_aiValue1}({_aiValue1.FloatValue})/PT2:{_aiValue2}({_aiValue2.FloatValue}) Pressure out of balance(threshold:{_threshold})"); } else { - EV.PostAlarmLog(Module, $"PT1:{_aiValue1}({_aiValue1.Value})/PT2:{_aiValue2}({_aiValue2.Value}) Pressure out of balance(threshold:{_threshold})"); + EV.PostAlarmLog(Module, $"PT1:{_aiValue1}({_aiValue1.FloatValue})/PT2:{_aiValue2}({_aiValue2.FloatValue}) Pressure out of balance(threshold:{_threshold})"); } - } }