自动化立体仓库 - WCS系统
#
luxiaotao1123
2020-11-13 00e3e465859114706fa2f802a9b4d3dbbee17a36
src/main/java/com/zy/core/thread/DevpThread.java
@@ -143,7 +143,6 @@
        if (result2.IsSuccess) {
            StaProtocol staProtocol = station.get(8);
            staProtocol.setPosition(result2.Content);
//            System.out.println("8号站位置:"+result2.Content);
        } else {
            OutputQueue.DEVP.offer(MessageFormat.format("【{0}】8号台车获取实时位置失败!!!", DateUtils.convert(new Date())));
            log.error("8号台车获取实时位置失败!!!");
@@ -193,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);
            }
@@ -251,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();