From f49de44b69924fc3c4dfea159b13a412983b8f93 Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期二, 16 一月 2024 13:52:28 +0800
Subject: [PATCH] 增加交互状态界面   I/O标志缩小增加备注

---
 springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
index 85d5d78..766cc49 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
@@ -174,7 +174,7 @@
                                         if (!containsOne) {
                                             //鍒ゆ柇id鏄惁鍖呭惈鏁板瓧
                                             if (id.matches(".*\\d.*")) {
-                                                //鍒ゆ柇娓呮id鏄惁true
+                                                //鍒ゆ柇娓呴櫎id鏄惁true
                                                 if (value) {
                                                     System.out.println(id);
                                                     switch (i) {
@@ -194,7 +194,7 @@
                                                 }
                                             }
 
-                                        }
+
                                         // 妫�鏌ュ竷灏斿�煎垪琛ㄦ槸鍚︿负绌�
                                         if (!sValue.isEmpty()) {
 
@@ -202,6 +202,7 @@
                                             S7control.getinstance().WriteBit(addressList0, sValue);
                                             System.out.println("Values " + sValue + " written to PLC at address " + addressList0);
                                         }
+                                        }
                                     }
                                 }
                             } catch (Exception e) {

--
Gitblit v1.8.0