#
luxiaotao1123
2020-11-17 ebcaed76a00f824e57ccd7e2c38efe725e160374
src/main/java/com/zy/core/thread/DevpThread.java
@@ -139,7 +139,7 @@
            }
        }
        // 台车位置
        OperateResultExOne<Integer> result2 = siemensS7Net.ReadInt32("DB100.48");
        OperateResultExOne<Short> result2 = siemensS7Net.ReadInt16("DB100.48");
        if (result2.IsSuccess) {
            StaProtocol staProtocol = station.get(8);
            staProtocol.setPosition(result2.Content);
@@ -192,6 +192,7 @@
//        status[4] = staProtocol.isEmptyMk();
//        OperateResult write2 = siemensS7Net.Write("DB100." + ((staProtocol.getSiteId() - 1) + 40), status);     //  状态
        if (!write.IsSuccess || !write1.IsSuccess) {
            staProtocol = station.get(staProtocol.getSiteId());
            if (staProtocol.getWorkNo() == 0 && staProtocol.getStaNo() ==0) {
                staProtocol.setPakMk(true);
            }
@@ -250,6 +251,16 @@
        }
    }
    /**
     * 设置入库标记
     */
    public void setPakMk(Integer siteId, boolean pakMk) {
        StaProtocol staProtocol = station.get(siteId);
        if (null != staProtocol) {
            staProtocol.setPakMk(pakMk);
        }
    }
    @Override
    public void close() {
        siemensS7Net.ConnectClose();