自动化立体仓库 - WCS系统
Junjie
2023-06-07 db7e5e8995363db9278544224ddf608b089b6be9
src/main/java/com/zy/core/model/protocol/LiftProtocol.java
@@ -190,6 +190,11 @@
    private Boolean pakMk = true;
    /**
     * 四向穿梭车调度提升机时,需要锁定此标记
     */
    private Boolean securityMk = false;
    /**
     * 任务命令
     */
    private LiftAssignCommand assignCommand;
@@ -216,12 +221,23 @@
    // 是否处于空闲待命状态
    public Boolean isIdle() {
        if(this.taskNo == null
                || this.liftLock == null
                || this.ready == null
                || this.running == null
                || this.mode == null
                || this.pakMk == null
        ){
            return false;
        }
        boolean res = this.taskNo == 0
                && !this.liftLock
                && this.ready
                && !this.running
                && this.mode
                && this.pakMk.equals(true)
                && !this.securityMk
                ;
        return res;
    }