From 1894ccc4014d813ea60cf276ac066e5870a82566 Mon Sep 17 00:00:00 2001
From: kingno <30263@KINGNO>
Date: 星期四, 18 九月 2025 13:51:20 +0800
Subject: [PATCH] 简化代码

---
 src/Bro.M141.Process/UI/PLCstate.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Bro.M141.Process/UI/PLCstate.cs b/src/Bro.M141.Process/UI/PLCstate.cs
index 77e246e..220afce 100644
--- a/src/Bro.M141.Process/UI/PLCstate.cs
+++ b/src/Bro.M141.Process/UI/PLCstate.cs
@@ -70,7 +70,7 @@
         {
             this.Invoke(new Action(() =>
             {
-                if (Intstate.Count == 17)
+                if (Intstate.Count == 18)
                 {
                     State_now = Intstate;
 
@@ -96,7 +96,7 @@
                     label7.Text = "閫氶亾3鏈夋棤鏂�:    " + (Intstate[6] == 0 ? "鏃犳枡" : "鏈夋枡");
 
                     string Alarmstr = "";
-                    for (int i = 10; i <= 16; i++)
+                    for (int i = 10; i <= 17; i++)
                     {
                         if (Intstate[i] == 1)
                         {
@@ -142,6 +142,7 @@
             address[14] = "鎬ュ仠鎶ヨ";
             address[15] = "鐨甫杞存姤璀�";
             address[16] = "涓婁綅鏈洪�氳鎶ヨ";
+            address[17] = "杩涙枡鎰熷簲鎶ヨ";
         }
 
         private void button6_Click(object sender, EventArgs e)

--
Gitblit v1.8.0