springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
@@ -10,7 +10,7 @@ public void run() { while (this != null) { try { Thread.sleep(1000); Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java
@@ -11,7 +11,7 @@ public void run() { while (this != null) { try { Thread.sleep(1000); Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } @@ -47,7 +47,7 @@ List<String> messages = webSocketServer.getMessages(); String addressList = "DB100.0"; String addressList = "DB2.0.0"; if (!messages.isEmpty()) { // 将最后一个消息转换为整数类型的列表 springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
@@ -15,7 +15,7 @@ public void run() { while (this != null) { try { Thread.sleep(10000); Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
@@ -11,7 +11,7 @@ public void run() { while (this != null) { try { Thread.sleep(10000); Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } springboot-vue3/src/main/java/com/example/springboot/component/Plcstate.java
@@ -11,7 +11,7 @@ public void run() { while (this != null) { try { Thread.sleep(10000); Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } springboot-vue3/src/main/java/com/example/springboot/component/S7control.java
@@ -206,7 +206,8 @@ } else return null; for (int i = 0; i < count; i++) { addresslist.add(address); for (int i = 0; i < count-1; i++) { int bitcurrent = bitindex + addedbit; if (bitcurrent > 7) { @@ -214,7 +215,9 @@ bitindex = 0; } else bitindex = bitcurrent; addresslist.add(stringdatas[0] + "." + dbwindex + "." + bitindex); String endstr=stringdatas.length==3?"." + bitindex:""; addresslist.add(stringdatas[0] + "." + dbwindex + endstr); } return addresslist; }