From 40ca2f37e5bd41a1551c4b51344c0652873cbd1a Mon Sep 17 00:00:00 2001
From: clll <1320612696@qq.com>
Date: 星期日, 17 九月 2023 15:08:44 +0800
Subject: [PATCH] 将Plcsign界面读取plc数据根据地址分成两个集合读取,最后合并成同一个使用

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

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcstate.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcstate.java
index 69a97b7..e02e09a 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcstate.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcstate.java
@@ -11,12 +11,12 @@
   public void run() {
     while (this != null) {
       try {
-        Thread.sleep(10000);
+        Thread.sleep(500);
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
 
-      List<Short> plclist = S7control.getinstance().ReadWord("DB103.DBW0", 10);
+      List<Short> plclist = S7control.getinstance().ReadWord("DB103.0", 10);
       // Short[] values = { 0, 1, 1, 0, 1, 0, 1, 0,
       // 1, 0, };
       // List<Short> plclist = new ArrayList<>(Arrays.asList(values));

--
Gitblit v1.8.0