自动化立体仓库 - WCS系统
#
Junjie
2025-02-11 ed265ddfb8f08f69af064a9adf65fcbf06289ffe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
package com.zy.asrs.domain.vo;
 
import com.zy.core.enums.ShuttleProtocolStatusType;
import com.zy.core.enums.ShuttleStatusType;
import lombok.Data;
 
@Data
public class ShuttleStateTableVo {
 
    // 四向穿梭车号
    private Integer shuttleNo;
 
    // 状态
    private Integer status;
 
    //四向穿梭车忙装填
    private String busyStatus = "-";
 
    /**
     * 小车忙状态位枚举
     */
    private ShuttleStatusType busyStatusType;
 
    /**
     * 任务号
     */
    public Integer taskNo;
 
    /**
     * 当前二维码
     * 0为空
     */
    private Short currentCode;
 
    /**
     * 当前库位号
     */
    private String locNo;
 
    /**
     * 库位号-X
     */
    private int locNoX;
 
    /**
     * 库位号-Y
     */
    private int locNoY;
 
    /**
     * 当前库位层高
     */
    private int locNoLev;
 
    /**
     * 电池电量
     */
    public String batteryPower = "-";
 
    /**
     * 电池温度
     */
    public String batteryTemp = "-";
 
    /**
     * 错误编号
     */
    private String errorCode;
 
    /**
     * Plc输出状态IO
     */
    private Short plcOutputStatusIO;
 
    /**
     * Plc输出状态IO-顶升位
     */
    private Boolean plcOutputLift;
 
    /**
     * Plc输出状态IO-换向位
     */
    private Boolean plcOutputTransfer;
 
    /**
     * Plc输出状态IO-抱闸位
     */
    private Boolean plcOutputBrake;
 
    /**
     * Plc输出状态IO-充电位
     */
    private Boolean plcOutputCharge;
 
    /**
     * 错误信息码
     */
    private String statusErrorCode;
 
    /**
     * PLC输入状态
     */
    private Short plcInputStatus;
 
    /**
     * 当前或者之前读到的二维码值
     */
    private Short currentOrBeforeCode;
 
    /**
     * 读到的二维码X方向偏移量
     */
    private Short codeOffsetX;
 
    /**
     * 读到的二维码Y方向偏移量
     */
    private Short codeOffsetY;
 
    /**
     * 当前的电压值
     */
    private Integer currentVoltage;
 
    /**
     * 当前的模拟量值
     */
    private Short currentAnalogValue;
 
    /**
     * 当前的升降伺服速度
     */
    private Short currentLiftServoSpeed;
 
    /**
     * 当前的行走伺服速度
     */
    private Short currentMoveServoSpeed;
 
    /**
     * 当前的升降伺服负载率
     */
    private Short currentLiftServoLoad;
 
    /**
     * 当前的行走伺服负载率
     */
    private Short currentMoveServoLoad;
 
    /**
     * 充电状态
     */
    public String chargeStatus = "-";
 
    /**
     * 当前位置
     */
    public String loca = "-";
 
    public String getPlcOutputLift$() {
        if (this.plcOutputLift == null) {
            return null;
        }
        return this.plcOutputLift ? "Y" : "N";
    }
 
    public String getPlcOutputTransfer$() {
        if (this.plcOutputTransfer == null) {
            return null;
        }
        return this.plcOutputTransfer ? "Y" : "N";
    }
 
    public String getPlcOutputBrake$() {
        if (this.plcOutputBrake == null) {
            return null;
        }
        return this.plcOutputBrake ? "Y" : "N";
    }
 
    public String getPlcOutputCharge$() {
        if (this.plcOutputCharge == null) {
            return null;
        }
        return this.plcOutputCharge ? "Y" : "N";
    }
 
    public String getStatus$() {
        if (this.status == null) {
            return ShuttleProtocolStatusType.OFFLINE.desc;
        }
        return ShuttleProtocolStatusType.get(this.status).desc;
    }
 
    public String getCurrentVoltage$() {
        if (this.currentVoltage == null) {
            return "";
        }
        return (this.currentVoltage / 1000.0) + "V";
    }
 
}