ZengTao
2024-01-25 bc4a9c7700fbda51a57207fd445a02ad21e85911
springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
@@ -37,7 +37,7 @@
      // 将 bufferedReader 内容一行一行赋值给str
      while ((line = bufferedReader.readLine()) != null) {
        str += line;
      }
      }S
      // 将str字符串格式转为json
      JSONObject jsonObject = new JSONObject(str);
@@ -87,7 +87,7 @@
//      Integer Plccount = this.count;
      // 根据地址读取PCL数据
      List<Boolean> plclist = S7control.getinstance().ReadBits("DB104.0.0", 71);
      List<Boolean> plclist = S7control.getinstance().ReadBits("DB104.0.0", 91);
//      List<Boolean> plclist = S7control.getinstance().ReadBits(PlcAddress, Plccount);
      // System.out.println(plclist);
      // Boolean[] values = { false, false, true, false, true, false, true, false,