1
zhang
1 天以前 fc976b0bc327a19db87e4b2c140ea5552988312a
zy-asc-conveyor/src/main/java/com/zy/acs/conveyor/core/thread/SiemensDevpThread.java
@@ -33,8 +33,6 @@
    private Map<Integer, StaProtocol> station;
    private volatile boolean connected = false;
    private static final int WRITE_RETRY_MAX = 5;
    private static final int WRITE_RETRY_INTERVAL_MS = 200;
@@ -75,7 +73,7 @@
     * 读取状态 ====> 整块plc
     */
    private void read() throws InterruptedException {
        if (!connected || siemensS7Net == null) {
        if (siemensS7Net == null) {
            log.warn("PLC未连接,跳过读取 [id:{}]", slave.getId());
            return;
        }
@@ -90,7 +88,6 @@
        if (!result.IsSuccess) {
            log.error("读取站点状态失败 [id:{}] [error:{}]", slave.getId(), result.Message);
            connected = false;
            return;
        }