clll
2023-11-29 86eb351c3eda127933902c927623c043eeb7210b
springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
@@ -79,7 +79,7 @@
//            Integer Plccount = this.count;
            // System.out.println(stt);
  List<Short> arraylist = S7control.getinstance().ReadWord("DB100.42", 20);
      List<Short> arraylist = S7control.getinstance().ReadWord("DB100.42", 23);
//            Short[] 存片 = { 1 };
//            List<Short> 存片1 = new ArrayList<>(Arrays.asList(存片));
@@ -87,15 +87,13 @@
//            List<Short> 接片1 = new ArrayList<>(Arrays.asList(接片));
//            Short[] 间距 = { 1 };
//            List<Short> 间距1 = new ArrayList<>(Arrays.asList(间距));
//            Short[] values1 = {1,1,1, 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11, 12,13,14,15,16,17,18,19,20 };
      // Short[] values1 = {1,1,1, 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11,
      // 12,13,14,15,16,17,18,19,20 };
//            List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
            JSONObject jsonObject = new JSONObject();
            jsonObject.append("params", arraylist);
            WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Positioning1");
            if (sendwServer != null) {
@@ -133,7 +131,6 @@
                        }
                    }
                    // 写入第yi个地址
                    if (!mergedList.isEmpty()) {
//            S7control.getinstance().WriteWord(addressList3, mergedList);
@@ -143,7 +140,6 @@
                    // 清空消息列表
                    webSocketServer.clearMessages();
                }
            }
        }