From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化

---
 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