From a7ab44bca33c0bfc85b301f6edc7398aecb74a81 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 14 九月 2023 17:03:13 +0800
Subject: [PATCH] 主界面添加1280*1024显示

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

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
index 865c95f..b954640 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
@@ -15,8 +15,8 @@
                 e.printStackTrace();
             }
 
-            List<Short> arraylist = S7control.getinstance().ReadWord("DB100.DBW0", 12);
-            List<Short> state = S7control.getinstance().ReadWord("DB103.DBW0", 10);
+            List<Short> arraylist = S7control.getinstance().ReadWord("DB100.0", 12);
+            List<Short> state = S7control.getinstance().ReadWord("DB103.0", 10);
             JSONObject jsonObject = new JSONObject();
 //            new short[]{65545,65545, 65545, 65545, 65545, 65545, 65545, 65545, 65545,65545, 65545, 65545}
             //            new short[]{65545,65545, 65545, 65545, 65545, 65545, 65545, 65545, 65545, 65545}
@@ -31,7 +31,7 @@
             if (webSocketServer != null) {
                 List<String> messages = webSocketServer.getMessages();
 
-                String addressList = "DB100.DBW0";
+                String addressList = "DB100.0";
 
                 if (!messages.isEmpty()) {
                     // 灏嗘渶鍚庝竴涓秷鎭浆鎹负 short 绫诲瀷鐨勫垪琛�

--
Gitblit v1.8.0