自动化立体仓库 - WCS系统
#
Junjie
2023-10-14 ae0d613e60b2308d23b2760d514d0ff3356bfa48
src/main/java/com/zy/asrs/domain/vo/LiftStateTableVo.java
@@ -16,216 +16,151 @@
    private Short taskNo = 0;
    /**
     * 四向穿梭车号
     */
    private Short shuttleNo = 0;
    /**
     * 当前提升机状态(内部自我维护)
     */
    private Integer protocolStatus;
    /**
     * 提升机锁定
     * 模式
     */
    private Boolean liftLock;
    private Boolean model;
    /**
     * 位置到达反馈
     * 忙闲
     */
    private Short positionArrivalFeedback;
    private Boolean busy;
    /**
     * 准备就绪
     * 就绪为1,未就绪为0
     * 有托盘
     */
    private Boolean ready;
    private Boolean hasTray;
    /**
     * 运行中
     * 运行中为1,未运行为0
     * 有小车
     */
    private Boolean running;
    private Boolean hasCar;
    /**
     * 联机/单机
     * 联机为1,单机为0
     * 设备故障
     */
    private Boolean mode;
    private Boolean deviceError;
    /**
     * 输送线前端光电有货
     * 有货为1,无货为0(前端指靠近货架侧)
     * 前超限
     */
    private Boolean lineFrontHasStock;
    private Boolean frontOverrun;
    /**
     * 输送线正转反馈
     * 正转运行为1,否则为0
     * 后超限
     */
    private Boolean forwardRotationFeedback;
    private Boolean backOverrun;
    /**
     * 输送线反转反馈
     * 反转运行为1,否则为0
     * 左超限
     */
    private Boolean reverseFeedback;
    private Boolean leftOverrun;
    /**
     * 输送线电机过载
     * 过载为0,正常为1
     * 右超限
     */
    private Boolean motorOverload;
    private Boolean rightOverrun;
    /**
     * 输送线末端光电有货
     * 有货为1,无货为0
     * 超高
     */
    private Boolean lineEndHasStock;
    private Boolean overHeight;
    /**
     * 进输送线卡托盘报警
     * 报警为1,未报警为0
     * 超重
     */
    private Boolean inConveyLineCardTrayAlarm;
    private Boolean overWeight;
    /**
     * 出输送线卡托盘报警
     * 报警为1,未报警为0
     */
    private Boolean outConveyLineCardTrayAlarm;
    /**
     * 平台位置偏差报警
     * 报警为1,未报警为0
     */
    private Boolean platPositionDeviationAlarm;
    /**
     * 平台扭矩偏差报警
     * 报警为1,未报警为0
     */
    private Boolean platTorqueDeviationAlarm;
    /**
     * 平台四向车检测
     * 有车为1,无车为0
     */
    private Boolean platShuttleCheck;
    /**
     * 未就绪状态
     * 1.   不在指定层
     * 2.   四轴不同步
     * 3.   平台前限光电被挡到(靠近货架)
     * 4.   平台后限光电被挡到(远离货架)
     * 5.   平台上限位报警
     * 6.   平台下限位报警
     * 7.   电柜急停报警
     * 8.   输送线前限位被挡到(靠近货架)
     * 9.   输送线后限位被挡到(远离货架)
     * 10.   触摸屏紧急停止被按下
     * 11.   四轴动力线断线
     * 12.   单机模式
     * 13.   四轴报警
     * 14.   位置偏差过大
     * 15.   扭矩偏差过大
     * 16.   输送线过载
     * 17.   进提升机卡托盘
     * 18.   出提升机卡托盘
     */
    private Short notReady;
    /**
     * 伺服1错误
     */
    private Short servoError1;
    /**
     * 伺服2错误
     */
    private Short servoError2;
    /**
     * 伺服3错误
     */
    private Short servoError3;
    /**
     * 伺服4错误
     */
    private Short servoError4;
    /**
     * 提升机实际速度反馈
     */
    private Short liftActualSpeed;
    /**
     * 作业标记
     */
    private Boolean pakMk = true;
    public String getLiftLock$() {
        return this.liftLock ? "Y" : "N";
    public String getModel$() {
        if (this.model == null) {
            return "离线";
        }
        return this.model ? "自动" : "手动";
    }
    public String getReady$() {
        return this.ready ? "Y" : "N";
    public String getBusy$() {
        if (this.busy == null) {
            return "-";
        }
        return this.busy ? "忙碌" : "空闲";
    }
    public String getNotReady$() {
        return LiftNotReadyType.get((int) this.notReady).desc;
    public String getHasTray$() {
        if (this.hasTray == null) {
            return "-";
        }
        return this.hasTray ? "Y" : "N";
    }
    public String getRunning$() {
        return this.running ? "Y" : "N";
    public String getHasCar$() {
        if (this.hasCar == null) {
            return "N";
        }
        return this.hasCar ? "Y" : "N";
    }
    public String getMode$() {
        return this.mode ? "Y" : "N";
    public String getDeviceError$() {
        if (this.deviceError == null) {
            return "N";
        }
        return this.deviceError ? "Y" : "N";
    }
    public String getLineFrontHasStock$() {
        return this.lineFrontHasStock ? "Y" : "N";
    public String getFrontOverrun$() {
        if (this.frontOverrun == null) {
            return "N";
        }
        return this.frontOverrun ? "Y" : "N";
    }
    public String getForwardRotationFeedback$() {
        return this.forwardRotationFeedback ? "Y" : "N";
    public String getBackOverrun$() {
        if (this.backOverrun == null) {
            return "N";
        }
        return this.backOverrun ? "Y" : "N";
    }
    public String getReverseFeedback$() {
        return this.reverseFeedback ? "Y" : "N";
    public String getLeftOverrun$() {
        if (this.leftOverrun == null) {
            return "N";
        }
        return this.leftOverrun ? "Y" : "N";
    }
    public String getMotorOverload$() {
        return this.motorOverload ? "Y" : "N";
    public String getRightOverrun$() {
        if (this.rightOverrun == null) {
            return "N";
        }
        return this.rightOverrun ? "Y" : "N";
    }
    public String getLineEndHasStock$() {
        return this.lineEndHasStock ? "Y" : "N";
    public String getOverHeight$() {
        if (this.overHeight == null) {
            return "N";
        }
        return this.overHeight ? "Y" : "N";
    }
    public String getInConveyLineCardTrayAlarm$() {
        return this.inConveyLineCardTrayAlarm ? "Y" : "N";
    }
    public String getOutConveyLineCardTrayAlarm$() {
        return this.outConveyLineCardTrayAlarm ? "Y" : "N";
    }
    public String getPlatPositionDeviationAlarm$() {
        return this.platPositionDeviationAlarm ? "Y" : "N";
    }
    public String getPlatTorqueDeviationAlarm$() {
        return this.platTorqueDeviationAlarm ? "Y" : "N";
    }
    public String getPlatShuttleCheck$() {
        return this.platShuttleCheck ? "Y" : "N";
    }
    public String getPakMk$() {
        return this.pakMk ? "Y" : "N";
    public String getOverWeight$() {
        if (this.overWeight == null) {
            return "N";
        }
        return this.overWeight ? "Y" : "N";
    }
    public String getProtocolStatus$() {
        if (this.protocolStatus == null) {
            return LiftProtocolStatusType.OFFLINE.desc;
        }
        return LiftProtocolStatusType.get(this.protocolStatus).desc;
    }