From 7687eb6cc76ab8ca20b39e7567255939abc4ff66 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 29 四月 2024 09:16:24 +0800
Subject: [PATCH] 修改进片逻辑判断,添加异常捕获

---
 springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java
index fa3faf1..f7f6910 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java
@@ -54,11 +54,7 @@
         while (this != null) {
             try {
                 Thread.sleep(500);
-
-            } catch (InterruptedException e) {
-                e.printStackTrace();
-            }
-            // this.readValue();
+                // this.readValue();
             // String PlcAddress = this.name;
             // Integer Plccount = this.count;
 
@@ -245,6 +241,11 @@
                     }
                 }
             }
+
+            } catch (InterruptedException e) {
+                e.printStackTrace();
+            }
+            
         }
     }
 }

--
Gitblit v1.8.0