From 3a471ae651b228231bebb3a2d438baa1d4ac0261 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 21 十一月 2025 08:57:52 +0800
Subject: [PATCH] 优化

---
 HMI.Core/Setting/SystemSetting.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/HMI.Core/Setting/SystemSetting.cs b/HMI.Core/Setting/SystemSetting.cs
index b7d76cf..319af95 100644
--- a/HMI.Core/Setting/SystemSetting.cs
+++ b/HMI.Core/Setting/SystemSetting.cs
@@ -27,7 +27,8 @@
 
         public string LogoPath { get; private set; } = ".\\JingCeLogo.png";
         public string WindowTitle { get; private set; } = "浜у搧娴嬭瘯骞冲彴";
-        public string PlcIp { get; private set; }
+        public string PlcIp { get; private set; } = "127.0.0.1";
+        public int PlcPort { get; private set; } = 102;
         public bool PlcEnabled { get; private set; }
         public string CurrentLanguage { get; private set; } = "zh-CN";
         public int LogExpiredDays { get; private set; } = 7;
@@ -94,6 +95,13 @@
             set { Set(ref plcIp, value); }
         }
 
+        private int plcPort;
+        public int PlcPort
+        {
+            get => plcPort;
+            set { Set(ref plcPort, value); }
+        }
+
         private bool plcEnabled;
         public bool PlcEnabled
         {

--
Gitblit v1.9.1