ZengTao
2024-04-29 7687eb6cc76ab8ca20b39e7567255939abc4ff66
springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
@@ -61,16 +61,13 @@
    while (this != null) {
      try {
        Thread.sleep(1000);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
//      this.readValue();
//      String PlcAddress = this.name;
//      Integer Plccount = this.count;
      // System.out.println(PlcAddress);
//      List<Boolean> plclist = S7control.getinstance().ReadBits(PlcAddress, Plccount);
        // List<Boolean> plclist = S7control.getinstance().ReadBits(PlcAddress,
        // Plccount);
       List<Boolean> plclist = S7control.getinstance().ReadBits("DB102.0.0", 112);
//       Boolean[] values = { true, true, true, true, true, false, true, false,
@@ -107,6 +104,10 @@
          }
        }
      }
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
  }
}