#
Junjie
2025-05-10 2a7fd275313003968fc186ee4617aec4eca90266
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -322,15 +322,17 @@
            //外形检测
            OperateResultExOne<byte[]> resultErr1 = siemensS7Net.Read("DB101.810.0", (short) (barcodeSize*1));
            StaProtocol staProtocol1 = station.get(116);
            boolean[] status1 = siemensS7Net.getByteTransform().TransBool(resultErr1.Content, 0, 1);
            staProtocol1.setFrontErr(status1[0]);
            staProtocol1.setBackErr(status1[1]);
            staProtocol1.setHighErr(status1[2]);
            staProtocol1.setLeftErr(status1[3]);
            staProtocol1.setRightErr(status1[4]);
            staProtocol1.setWeightErr(status1[5]);
            staProtocol1.setBarcodeErr(status1[6]);
            if (resultErr1.IsSuccess) {
                StaProtocol staProtocol1 = station.get(116);
                boolean[] status1 = siemensS7Net.getByteTransform().TransBool(resultErr1.Content, 0, 1);
                staProtocol1.setFrontErr(status1[0]);
                staProtocol1.setBackErr(status1[1]);
                staProtocol1.setHighErr(status1[2]);
                staProtocol1.setLeftErr(status1[3]);
                staProtocol1.setRightErr(status1[4]);
                staProtocol1.setWeightErr(status1[5]);
                staProtocol1.setBarcodeErr(status1[6]);
            }
            OperateResultExOne<byte[]> resultErr = siemensS7Net.Read("DB101.922.0", (short) (staNoSize * 4));
            if (resultErr.IsSuccess) {