From d043c31bbd34a01d6b3ab3f16e9404a7aca0bae4 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期三, 13 九月 2023 17:27:52 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes --- springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java | 6 +++--- 1 files changed, 3 insertions(+), 3 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 e05f235..cc0f805 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 @@ -21,8 +21,8 @@ // JSONObject jsonObject = new JSONObject(); // jsonObject.append("params", new short[]{1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0}); - List<Boolean> paramlist = S7control.getinstance().ReadBits("DB100.DBW", 12); -// Boolean[] values = {false, true,false, true,false, true,false, true,false, true,false, true,false, true,false, true,false, true,false, true,false, true}; + List<Boolean> paramlist = S7control.getinstance().ReadBits("DB2.DBX0.0 ", 26); +// Boolean[] values = {true, 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}; // List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values)); if (paramlist == null) { @@ -70,7 +70,7 @@ // 灏嗘秷鎭�艰浆鎹负甯冨皵鍒楄〃 List<Boolean> messageBooleans = new ArrayList<>(); for (Integer value : messageValues) { - messageBooleans.add(value == 0 ? true : false); + messageBooleans.add(value == 1 ? true : false); } // 灏嗗竷灏斿垪琛ㄥ啓鍏� PLC -- Gitblit v1.8.0