#
lsh
2022-09-26 4681e76c08febdf1a2311a6070c98e98f12a1bde
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -42,9 +42,9 @@
    private Map<Integer, StaProtocol> station = new ConcurrentHashMap<>();
    private short heartBeatVal = 1;
    public static final ArrayList<Integer> staNos = new ArrayList<Integer>() {{
        add(101);add(102);add(103);add(104);
        add(201);add(202);add(203);add(204);
        add(301);add(302);add(303);add(304);add(305);add(306);
        add(101);add(102);add(103);add(104);add(105);add(106);add(107);add(108);add(109);
//        add(201);add(202);add(203);add(204);
//        add(301);add(302);add(303);add(304);add(305);add(306);
    }};
    /**
@@ -157,7 +157,7 @@
        Thread.sleep(200);
        OperateResultExOne<byte[]> result1 = siemensS7Net.Read("DB150.0", (short) (staNoSize*2));
        if (result1.IsSuccess) {
            for (int i = 0; i < staNoSize; i++) {
            for (int i = 0; i < staNoSize-1; i++) {
                Integer siteId = staNos.get(i); // 站点编号
                boolean[] status = siemensS7Net.getByteTransform().TransBool(result1.Content, i*2, 1);
                StaProtocol staProtocol = station.get(siteId);