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()) { @@ -202,6 +202,7 @@ S7control.getinstance().WriteBit(addressList0, sValue); System.out.println("Values " + sValue + " written to PLC at address " + addressList0); } } } } } catch (Exception e) {