tqs
2022-09-28 594f1e25822478ffeff8b64799a05e47b233d5a5
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);
    }};
    /**
@@ -155,7 +155,7 @@
//            }
//        }
        Thread.sleep(200);
        OperateResultExOne<byte[]> result1 = siemensS7Net.Read("DB150.0", (short) (staNoSize*2));
        OperateResultExOne<byte[]> result1 = siemensS7Net.Read("DB101.0", (short) (staNoSize*2));
        if (result1.IsSuccess) {
            for (int i = 0; i < staNoSize; i++) {
                Integer siteId = staNos.get(i); // 站点编号