From 09fe50d59e2f1e2261d376eb49ad6c40301f25b4 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期五, 10 五月 2024 16:08:59 +0800 Subject: [PATCH] 修改IP与数据库连接 --- springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java b/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java index 1c7c551..8862fa0 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java @@ -42,6 +42,8 @@ List<Short> fanzhuan2 = S7control.getinstance().ReadWord("DB100.8", 1); List<Short> xiaoche2 = S7control.getinstance().ReadWord("DB100.12", 1); + // System.out.println("messageValue锛�"+ arraylist ); + // Short[] values1 = { 1, 2, 3, 4, 5, 6, 7, 8 }; // List<Short> arraylist = new ArrayList<>(Arrays.asList(values1)); // Short[] fanzhuan = { 4 }; @@ -155,6 +157,9 @@ S7control.getinstance().WriteWord(waddresses1, mergedList2); System.out.println("messageValue锛�" + mergedList2 + " written to PLC at address " + waddresses1); } + //鍘熺偣璁板繂 + + // 娓呯┖娑堟伅鍒楄〃 webserver.clearMessages(); } -- Gitblit v1.8.0