From e7eaa7bb402aae3bb88d9219e50f0e1179f3257f Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期二, 26 十二月 2023 09:28:52 +0800
Subject: [PATCH] layout 布局页增加A01 A02终止继续后选择 弹框

---
 springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 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 1598c96..92ed72d 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
@@ -21,7 +21,7 @@
 
 public class PlcParameter2 extends Thread {
     @Autowired
-    StorageCageService StorageCageService  ;
+    StorageCageService storageCageService;
 
 
     // 鐢ㄤ簬瀛樺偍搴旂敤绋嬪簭鐨勯厤缃俊鎭�
@@ -44,7 +44,7 @@
             } catch (InterruptedException e) {
                 e.printStackTrace();
             }
-            StorageCageService = WebSocketServer.applicationContext.getBean(StorageCageService .class);
+            storageCageService = WebSocketServer.applicationContext.getBean(StorageCageService .class);
             //  id
             List<String> addressList1 = Arrays.asList(config.getProperty("Parameter2.id").split(","));
 
@@ -201,13 +201,13 @@
                                            System.out.println(id);
                                             switch (i) {
                                                 case 1:
-                                                    StorageCageService.UpdateTask(2, 0, paramlist.get(i));
+                                                    storageCageService.UpdateTask(2, 0, paramlist.get(i));
                                                     break;
                                                 case 2:
                                                 case 3:
                                                 case 4:
                                                 case 5:
-                                                    StorageCageService.UpdateTask(3, 0, paramlist.get(i));
+                                                    storageCageService.UpdateTask(3, 0, paramlist.get(i));
                                                     break;
                                                 default:
                                                     // 澶勭悊绱㈠紩鍊间笉鍦ㄨ寖鍥村唴鐨勬儏鍐�
@@ -270,19 +270,19 @@
                                     boolean Value2 = sValue.get(1);
 
                                     if (Value1) {
-                                        StorageCageService.EndTask(0);
+                                        storageCageService.EndTask(0);
 
                                     }
                                     if (Value2) {
-                                        StorageCageService.EndTask(1);
+                                        storageCageService.EndTask(1);
 
                                     }
                                     // 妫�鏌ュ竷灏斿�煎垪琛ㄦ槸鍚︿负绌�
                                     if (!sValue.isEmpty()) {
 
                                         // 璋冪敤 S7control.getinstance().WriteBit 鏂规硶灏嗗竷灏斿�煎垪琛ㄥ啓鍏ュ湴鍧�鍒楄〃
-                                        S7control.getinstance().WriteBit(addressList0, sValue);
-                                        System.out.println("Values " + sValue + " written to PLC at address " + addressList0);
+                                        S7control.getinstance().WriteBit(niuanaddressList3, sValue);
+                                        System.out.println("Values " + sValue + " written to PLC at address " + niuanaddressList3);
                                     }
                                 }
                             } catch (Exception e) {

--
Gitblit v1.8.0