#
luxiaotao1123
2022-12-06 c7327dd666e07d2aceca6e138ed62b89adfb0b09
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -176,14 +176,28 @@
        OperateResultExOne<byte[]> result4 = siemensS7Net.Read("DB102.129.", (short)1);
        if (result4.IsSuccess) {
            boolean[] status = siemensS7Net.getByteTransform().TransBool(result4.Content, 0, 1);
            System.out.println(JSON.toJSONString(status));
            StaProtocol staProtocol = station.get(2);   // 102
            staProtocol.setFrontErr(status[0]);
            staProtocol.setBackErr(status[1]);
            staProtocol.setHighErr(status[2]);
            staProtocol.setLeftErr(status[3]);
            staProtocol.setRightErr(status[4]);
            staProtocol.setWeightErr(status[5]);
            staProtocol.setBarcodeErr(status[6]);
        }
        // 外形检测 - 203
        Thread.sleep(50);
        OperateResultExOne<byte[]> result5 = siemensS7Net.Read("DB102.130.", (short)1);
        if (result5.IsSuccess) {
            boolean[] status = siemensS7Net.getByteTransform().TransBool(result5.Content, 0, 1);
            System.out.println(JSON.toJSONString(status));
            StaProtocol staProtocol = station.get(25);   // 203
            staProtocol.setFrontErr(status[0]);
            staProtocol.setBackErr(status[1]);
            staProtocol.setHighErr(status[2]);
            staProtocol.setLeftErr(status[3]);
            staProtocol.setRightErr(status[4]);
            staProtocol.setWeightErr(status[5]);
            staProtocol.setBarcodeErr(status[6]);
        }
        if (result.IsSuccess && result1.IsSuccess) {