#
Junjie
2023-10-05 45acd20e06a15d0096776ffe3adae4dc94d22762
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -57,9 +57,13 @@
        add(333);add(339);
    }};
    public static final ArrayList<Integer> outInStaNos = new ArrayList<Integer>() {{
        add(102);add(105);add(106);
        add(107);add(108);
    //高低信号站点
    public static final ArrayList<Integer> locType1StaNos = new ArrayList<Integer>() {{
        add(100);add(103);
        add(105);add(200);
        add(203);add(205);
        add(300);add(341);
        add(346);
    }};
    public boolean charge0;
@@ -184,6 +188,17 @@
            }
        }
        //读高低信号
        Thread.sleep(100);
        OperateResultExOne<byte[]> result3 = siemensS7Net.Read("DB1000.300", (short) (locType1StaNos.size()*2));
        if (result3.IsSuccess) {
            for (int i = 0; i < locType1StaNos.size(); i++) {
                Integer siteId = locType1StaNos.get(i); // 站点编号
                StaProtocol staProtocol = station.get(siteId);
                staProtocol.setLocType1(siemensS7Net.getByteTransform().TransInt16(result3.Content, i * 2));//读取高低信号
            }
        }
        // 外形检测 - 102
        Thread.sleep(50);
        OperateResultExOne<byte[]> result102 = siemensS7Net.Read("DB100.100", (short)2);