From 1eeafb1d1b85887bec13d693d4658fbe0770a512 Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期一, 27 十一月 2023 13:39:52 +0800
Subject: [PATCH] 更新PLC地址

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

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
index a53ded8..17e0010 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
@@ -79,16 +79,16 @@
 //            Integer Plccount = this.count;
 
             // System.out.println(stt);
-            // List<Short> arraylist = S7control.getinstance().ReadWord("DB100.0", 12);
-            // List<Short> state = S7control.getinstance().ReadWord("DB103.0", 10);
+  List<Short> arraylist = S7control.getinstance().ReadWord("DB100.42", 20);
+
 //            Short[] 瀛樼墖 = { 1 };
 //            List<Short> 瀛樼墖1 = new ArrayList<>(Arrays.asList(瀛樼墖));
 //            Short[] 鎺ョ墖 = { 1 };
 //            List<Short> 鎺ョ墖1 = new ArrayList<>(Arrays.asList(鎺ョ墖));
 //            Short[] 闂磋窛 = { 1 };
 //            List<Short> 闂磋窛1 = new ArrayList<>(Arrays.asList(闂磋窛));
-            Short[] values1 = {1,1,1, 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11, 12,13,14,15,16,17,18,19,20 };
-            List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
+//            Short[] values1 = {1,1,1, 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11, 12,13,14,15,16,17,18,19,20 };
+//            List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
 
 
             JSONObject jsonObject = new JSONObject();

--
Gitblit v1.8.0