From a47ed5b8175c4693e7338f5acf1daf41532673a3 Mon Sep 17 00:00:00 2001 From: Tyrone CT Date: Wed, 15 Apr 2026 21:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BA=86systags,=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9B=B4=E6=94=B9=E4=BB=BB=E4=BD=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CapMachine.Wpf/Services/PPCService.cs | 8 ++++---- CapMachine.Wpf/TagConfig/SysTags.json | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CapMachine.Wpf/Services/PPCService.cs b/CapMachine.Wpf/Services/PPCService.cs index 570a20e..4ac1cde 100644 --- a/CapMachine.Wpf/Services/PPCService.cs +++ b/CapMachine.Wpf/Services/PPCService.cs @@ -375,7 +375,7 @@ namespace CapMachine.Wpf.Services } if (iErr == 0) - Superheat.PVModel.EngValue = InhTempTag.PVModel.EngValue - (te - 273.15); + Superheat.PVModel.EngValue = Math.Abs(InhTempTag.PVModel.EngValue - (te - 273.15)); else Superheat.PVModel.EngValue = 0; @@ -385,7 +385,7 @@ namespace CapMachine.Wpf.Services IRefProp64.SATPdll(ref p1, x, ref kph, ref te1, ref Dl, ref Dv, xliq, xvap, ref iErr, ref herr, ref herrLen); } if (iErr == 0) - Subcool.PVModel.EngValue = TxvFrTempTag.PVModel.EngValue - (te1 - 273.15); + Subcool.PVModel.EngValue = Math.Abs(TxvFrTempTag.PVModel.EngValue - (te1 - 273.15)); else Subcool.PVModel.EngValue = 0; @@ -492,14 +492,14 @@ namespace CapMachine.Wpf.Services { if (!string.IsNullOrWhiteSpace(thermoErr)) { - Logger?.Warn($"六个物性结果计算警告: {thermoErr}"); + //Logger?.Warn($"六个物性结果计算警告: {thermoErr}"); } } else { if (!string.IsNullOrWhiteSpace(thermoErr)) { - Logger?.Error($"六个物性结果计算失败: {thermoErr}"); + //Logger?.Error($"六个物性结果计算失败: {thermoErr}"); } } diff --git a/CapMachine.Wpf/TagConfig/SysTags.json b/CapMachine.Wpf/TagConfig/SysTags.json index 2568314..bbe6a23 100644 --- a/CapMachine.Wpf/TagConfig/SysTags.json +++ b/CapMachine.Wpf/TagConfig/SysTags.json @@ -1398,4 +1398,5 @@ "BlockIndex": 0 } } -] \ No newline at end of file +] + \ No newline at end of file