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/PlcParameter.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java index 96ac83d..865c95f 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java @@ -18,9 +18,10 @@ List<Short> arraylist = S7control.getinstance().ReadWord("DB100.DBW0", 12); List<Short> state = S7control.getinstance().ReadWord("DB103.DBW0", 10); JSONObject jsonObject = new JSONObject(); -// new short[]{1111,121, 3232, 0, 1, 0, 1, 0, 1, 0, 1, 0} +// new short[]{65545,65545, 65545, 65545, 65545, 65545, 65545, 65545, 65545,65545, 65545, 65545} + // new short[]{65545,65545, 65545, 65545, 65545, 65545, 65545, 65545, 65545, 65545} jsonObject.append("params", arraylist ); - jsonObject.append("state", state); + jsonObject.append("state", state); WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Parameter"); if (sendwServer != null) { sendwServer.sendMessage(jsonObject.toString()); -- Gitblit v1.8.0