From b6eb0edc58567aca4d303f4928389bf25fe025ba Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 29 十一月 2023 11:04:27 +0800 Subject: [PATCH] 电气后端逻辑修改 --- springboot-vue3/src/main/java/com/example/springboot/component/Plcstate.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 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 61c28f0..843e685 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 @@ -70,10 +70,10 @@ Integer Plccount = this.count; // System.out.println(PlcAddress); - // 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)); +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)); if (plclist != null) { List<String> Intlist = new ArrayList<>(); -- Gitblit v1.8.0