zwl
2025-07-31 9932bfdb4e4ab325cabe17af3cfb556dd3ea6d7c
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -54,7 +54,10 @@
    }};
    public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{
        add(300);add(301);add(302);add(303);add(304);
        add(311);add(312);add(313);add(314);add(315);
    }};
    public static final ArrayList<Integer> barcode1 = new ArrayList<Integer>() {{
        add(1); add(2);
@@ -62,6 +65,10 @@
    public static final ArrayList<Integer> barcode2 = new ArrayList<Integer>() {{
       add(3);
    }};
    public static final ArrayList<Integer> barcode3 = new ArrayList<Integer>() {{
        add(4);
    }};
    private Integer count=0;
@@ -163,6 +170,8 @@
                return barcode1;
            case 2:
                return barcode2;
            case 3:
                return barcode3;
            default:
                throw new CoolException("获取条码扫描器失败!");
        }
@@ -278,7 +287,7 @@
            OperateResultExOne<byte[]> resultErr = siemensS7Net.Read("DB101.42", (short) 8);
            if (resultErr.IsSuccess) {
                boolean[] status = siemensS7Net.getByteTransform().TransBool(resultErr.Content, 0, 1);
                StaProtocol staProtocol = station.get(303);
                StaProtocol staProtocol = station.get(304);
                staProtocol.setFrontErr(status[0]);
                staProtocol.setBackErr(status[1]);
                staProtocol.setHighErr(status[2]);