wuyouming666
2024-01-16 f49de44b69924fc3c4dfea159b13a412983b8f93
springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
@@ -174,7 +174,7 @@
                                        if (!containsOne) {
                                            //判断id是否包含数字
                                            if (id.matches(".*\\d.*")) {
                                                //判断清楚id是否true
                                                //判断清除id是否true
                                                if (value) {
                                                    System.out.println(id);
                                                    switch (i) {
@@ -194,7 +194,7 @@
                                                }
                                            }
                                        }
                                        // 检查布尔值列表是否为空
                                        if (!sValue.isEmpty()) {
@@ -204,6 +204,7 @@
                                        }
                                    }
                                }
                                }
                            } catch (Exception e) {
                                System.err.println("An error occurred while writing bit to PLC: " + e.getMessage());
                            }