wuyouming666
2023-12-04 82c2df0968b099bd589936adc5b28c1ac4827a05
springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java
@@ -66,16 +66,16 @@
      }
      // 调用方法,进行赋值
      this.readValue();
      String PlcAddress = this.name;
      Integer Plccount = this.count;
//      this.readValue();
//      String PlcAddress = this.name;
//      Integer Plccount = this.count;
      // System.out.println(PlcAddress);
      // List<Boolean> paramlist = S7control.getinstance().ReadBits("DB2.0.0", 26);
      Boolean[] values = { false, true, true, true, true, true, true, true, true,
          true, true, true, true, true, true, true, true, true, true, true, true, true, true,
          true, false, true };
      List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
     List<Boolean> paramlist = S7control.getinstance().ReadBits("DB102.0.0", 10);
//      Boolean[] values = { false, true, true, true, true, true, true, true, true,
//          true, true, true, true, true, true, true, true, true, true, true, true, true, true,
//          true, false, true };
//      List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
      if (paramlist != null) {