From fe2aa4880d5c9fd88088ad0ed81ebaca05629f5f Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 17:59:45 +0800
Subject: [PATCH] feat: 集成CAN驱动/模拟器 + 仪器仪表注册/硬件调试模块
---
Plugin.CurrentSensorControl/BurnInCell.xaml.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Plugin.CurrentSensorControl/BurnInCell.xaml.cs b/Plugin.CurrentSensorControl/BurnInCell.xaml.cs
index 4d54296..2d9c3cc 100644
--- a/Plugin.CurrentSensorControl/BurnInCell.xaml.cs
+++ b/Plugin.CurrentSensorControl/BurnInCell.xaml.cs
@@ -1,5 +1,6 @@
锘縰sing CommunityToolkit.Mvvm.ComponentModel;
using HslCommunication.Profinet.Siemens;
+using PLCHelper;
using Plugin.CurrentSensorControl.Entity;
using System.Windows.Controls;
@@ -117,6 +118,9 @@
}
}
+ [ObservableProperty]
+ private string current;
+
[ObservableProperty]
@@ -169,6 +173,12 @@
ngLightOn = (bool)val;
OnPropertyChanged("NgLightOn");
}
+
+ name = $"Oven{ovenIndex + 1}_Cell{cellIndex + 1}_Current";
+ if (S7Context.GetData(api, name, out val))
+ {
+ Current = val.ToString();
+ }
}
catch (Exception ex)
{
--
Gitblit v1.9.1