package com.zy.asrs.domain.vo; import com.zy.core.enums.LiftNotReadyType; import com.zy.core.enums.LiftProtocolStatusType; import lombok.Data; @Data public class LiftStateTableVo { // 提升机号 private Integer liftNo; /** * 任务号 */ private Short taskNo = 0; /** * 当前提升机状态(内部自我维护) */ private Integer protocolStatus; /** * 提升机锁定 */ private Boolean liftLock; /** * 位置到达反馈 */ private Short positionArrivalFeedback; /** * 准备就绪 * 就绪为1,未就绪为0 */ private Boolean ready; /** * 运行中 * 运行中为1,未运行为0 */ private Boolean running; /** * 联机/单机 * 联机为1,单机为0 */ private Boolean mode; /** * 输送线前端光电有货 * 有货为1,无货为0(前端指靠近货架侧) */ private Boolean lineFrontHasStock; /** * 输送线正转反馈 * 正转运行为1,否则为0 */ private Boolean forwardRotationFeedback; /** * 输送线反转反馈 * 反转运行为1,否则为0 */ private Boolean reverseFeedback; /** * 输送线电机过载 * 过载为0,正常为1 */ private Boolean motorOverload; /** * 输送线末端光电有货 * 有货为1,无货为0 */ private Boolean lineEndHasStock; /** * 进输送线卡托盘报警 * 报警为1,未报警为0 */ private Boolean inConveyLineCardTrayAlarm; /** * 出输送线卡托盘报警 * 报警为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$() { if (this.liftLock == null) { return "N"; } return this.liftLock ? "Y" : "N"; } public String getReady$() { if (this.ready == null) { return "N"; } return this.ready ? "Y" : "N"; } public String getNotReady$() { if (this.notReady == null) { return "-"; } return LiftNotReadyType.get((int) this.notReady).desc; } public String getRunning$() { if (this.running == null) { return "N"; } return this.running ? "Y" : "N"; } public String getMode$() { if (this.mode == null) { return "N"; } return this.mode ? "Y" : "N"; } public String getLineFrontHasStock$() { if (this.lineFrontHasStock == null) { return "N"; } return this.lineFrontHasStock ? "Y" : "N"; } public String getForwardRotationFeedback$() { if (this.forwardRotationFeedback == null) { return "N"; } return this.forwardRotationFeedback ? "Y" : "N"; } public String getReverseFeedback$() { if (this.reverseFeedback == null) { return "N"; } return this.reverseFeedback ? "Y" : "N"; } public String getMotorOverload$() { if (this.motorOverload == null) { return "N"; } return this.motorOverload ? "Y" : "N"; } public String getLineEndHasStock$() { if (this.lineEndHasStock == null) { return "N"; } return this.lineEndHasStock ? "Y" : "N"; } public String getInConveyLineCardTrayAlarm$() { if (this.inConveyLineCardTrayAlarm == null) { return "N"; } return this.inConveyLineCardTrayAlarm ? "Y" : "N"; } public String getOutConveyLineCardTrayAlarm$() { if (this.outConveyLineCardTrayAlarm == null) { return "N"; } return this.outConveyLineCardTrayAlarm ? "Y" : "N"; } public String getPlatPositionDeviationAlarm$() { if (this.platPositionDeviationAlarm == null) { return "N"; } return this.platPositionDeviationAlarm ? "Y" : "N"; } public String getPlatTorqueDeviationAlarm$() { if (this.platTorqueDeviationAlarm == null) { return "N"; } return this.platTorqueDeviationAlarm ? "Y" : "N"; } public String getPlatShuttleCheck$() { if (this.platShuttleCheck == null) { return "N"; } return this.platShuttleCheck ? "Y" : "N"; } public String getPakMk$() { if (this.pakMk == null) { return "N"; } return this.pakMk ? "Y" : "N"; } public String getProtocolStatus$() { if (this.protocolStatus == null) { return LiftProtocolStatusType.OFFLINE.desc; } return LiftProtocolStatusType.get(this.protocolStatus).desc; } }