From 209a57aecbf26911f6a3ae0692b51ed0289f5b1a Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期四, 14 九月 2023 17:04:56 +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 69a97b7..877b813 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 @@ -16,10 +16,10 @@ e.printStackTrace(); } - List<Short> plclist = S7control.getinstance().ReadWord("DB103.DBW0", 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.DBW0", 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