From 8dfb37b10ffb2fcb41c85b3fa266d1ef2874aebc Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期四, 30 十一月 2023 08:53:27 +0800 Subject: [PATCH] 修改电气管理PLC通讯逻辑 --- springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java index 1195ec1..400aefe 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java @@ -66,12 +66,12 @@ } // 璋冪敤鏂规硶锛岃繘琛岃祴鍊� - this.readValue(); - String PlcAddress = this.name; - Integer Plccount = this.count; +// this.readValue(); +// String PlcAddress = this.name; +// Integer Plccount = this.count; // System.out.println(PlcAddress); - List<Boolean> paramlist = S7control.getinstance().ReadBits("DB2.0.0", 26); + List<Boolean> paramlist = S7control.getinstance().ReadBits("DB2.0.0", 26); // Boolean[] values = { false, true, true, true, true, true, true, true, true, // true, true, true, true, true, true, true, true, true, true, true, true, true, true, // true, false, true }; -- Gitblit v1.8.0