#
whycq
2022-12-12 7a6426b60312f5f26762cf727152ec04155956cd
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -53,6 +53,8 @@
        add(401);add(402);
    }};
    private Integer count=0;
    /**
     * 条码数量
     */
@@ -123,7 +125,9 @@
     * 初始化站点状态
     */
    private void initSite() {
        count ++;
        ArrayList<Integer> staNos = getStaNo();
        if(count > 10) {
        // 站点编号
        for (Integer siteId : staNos) {
            StaProtocol staProtocol = station.get(siteId);
@@ -143,6 +147,8 @@
            if (!staProtocol.isPakMk() && !staProtocol.isLoading()) {
                staProtocol.setPakMk(true);
            }
            }
            count = 0;
        }
    }
@@ -224,6 +230,7 @@
                    if (!staProtocol.isPakMk() && !staProtocol.isLoading()) {
                        staProtocol.setPakMk(true);
                    }
                    count = 0;
                }
            }
        } else if(slave.getId()==2) {
@@ -246,6 +253,7 @@
                        staProtocol.setPakMk(true);
                    }
                }
                count = 0;
            }
        }