1
yanjinhui
2025-06-12 10c497ad3b1802e1c8feed8df0a290a407ec72bc
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEAWCS_Tasks
{
    /// <summary>
    /// 运行模式
    /// </summary>
    public enum RunModeEnum
    {
        /// <summary>
        /// 未知
        /// </summary>
        [Description("未知")]
        UnKnown = 0,
        /// <summary>
        /// 自动
        /// </summary>
        [Description("自动")]
        Automatic = 1,
        /// <summary>
        /// 半自动
        /// </summary>
        [Description("半自动")]
        SemiAutomatic = 2,
        /// <summary>
        /// 手动
        /// </summary>
        [Description("手动")]
        Manual = 3,
        /// <summary>
        /// 维修
        /// </summary>
        [Description("维修")]
        Maintenance = 4,
    }
 
    /// <summary>
    /// 运行状态
    /// </summary>
    public enum RunStateEnum
    {
        [Description("空闲")]
        Standby=0,
        [Description("取货行走")]
        PickUp=1,
        [Description("取货请求")]
        PickUpRequest=2,
        [Description("取货中")]
        PickUping=3,
        [Description("取货完成")]
        PickUpCompleted=4,
        [Description("放货行走")]
        Put=5,
        [Description("放货请求")]
        PutRequest=6,
        [Description("放货中")]
        Puting=7,
        [Description("放货完成")]
        PutCompleted=8,
        [Description("移动中")]
        Moving=9,
        [Description("移动完成")]
        MoveCompleted=10,
 
    }
 
    /// <summary>
    /// 天车报警代码
    /// </summary>
    public enum AlarmCodeEnum
    {
        [Description("正常")]
        Normal = 0,
        [Description("故障数字")]
        AlarmCode = 1,
        [Description("空取")]
        EmptyPickUp = 2
    }
 
    /// <summary>
    /// 天车任务状态
    /// </summary>
    public enum TaskStateEnum
    {
        [Description("默认")]
        Normal = 0,
        [Description("确认接收任务")]
        AcceptTaskConfirm = 1,
        [Description("任务执行中")]
        TaskExcuting = 2,
        [Description("正常完成任务")]
        TaskComplete = 3,
        [Description("任务暂停中")]
        TaskPausing = 4,
        [Description("无法完成任务")]
        TaskNOComplete = 5,
        [Description("任务被人工清除")]
        TaskManualClear = 6
    }
 
    public enum DeviceDBName
    {
        #region 读取DB块
        /// <summary>
        /// 心跳
        /// </summary>
        [Description("心跳")]
        R_HeartBeat,
        /// <summary>
        /// 运行模式
        /// </summary>
        [Description("运行模式")]
        R_RunMode,
        /// <summary>
        /// 运行状态
        /// </summary>
        [Description("运行状态")]
        R_RunState ,
 
        /// <summary>
        /// 故障代码
        /// </summary>
        [Description("故障代码")]
        R_AlarmCode,
 
        /// <summary>
        /// 任务状态
        /// </summary>
        [Description("任务状态")]
        R_TaskState,
 
        /// <summary>
        /// 天车大车当前位置
        /// </summary>
        [Description("天车大车当前位置")]
        R_CurrentLine,
        /// <summary>
        /// 天车小车当前位置
        /// </summary>
        [Description("天车小车当前位置")]
        R_CurrentColumn,
 
        /// <summary>
        /// 起升当前位置
        /// </summary>
        [Description("起升当前位置")]
        R_RiseUp_Position,
 
        /// <summary>
        /// 任务号
        /// </summary>
        [Description("任务号")]
        R_TaskNumber,
 
        /// <summary>
        /// 1号货爪是否有货(保留)
        /// </summary>
        [Description("1号货爪有货")]
        R_Loaded_1,
 
        /// <summary>
        /// 2号货爪是否有货(保留)
        /// </summary>
        [Description("2号货爪有货")]
        R_Loaded_2,
 
        /// <summary>
        /// 1号货爪扫码结果
        /// </summary>
        [Description("1号货爪扫码结果")]
        weight,
 
        
        #endregion
 
        #region 写DB块
        [Description("心跳")]
        W_HeartBeat,
        [Description("任务类型")]
        W_Task_Type,
        [Description("装车层数")]
        W_Load_Layer,
        [Description("取货行")]
        W_Pick_Line,
        [Description("取货列")]
        W_Pick_Column,
        [Description("取货层")]
        W_Pick_Layer,
        [Description("放货行")]
        W_Put_Line,
        [Description("放货列")]
        W_Put_Column,
        [Description("放货层")]
        W_Put_Layer,
        [Description("货爪1是否抓货")]
        W_Catch_1,
        [Description("货爪2是否抓货")]
        W_Catch_2,
        [Description("任务号")]
        W_TaskNumber,
        [Description("校验值")]
        W_CheckValue,
        [Description("确认信号")]
        W_ConfirmSignal,
        #endregion
 
    }
 
    public enum ZXJDBName 
    {
        /// <summary>
        /// 心跳
        /// </summary>
        [Description("心跳")]
        R_ZXJ_HeartBeat,
        /// <summary>
        /// 整形机投入使用
        /// </summary>
        [Description("整形机投入使用")]
        R_ZXJ_isWork,
        /// <summary>
        /// 上料模式轨道车
        /// </summary>
        [Description("上料模式轨道车")]
        R_ZXJ_RGVMode,
        /// <summary>
        /// 上料模式行车
        /// </summary>
        [Description("上料模式行车")]
        R_ZXJ_TCMode,
        /// <summary>
        /// 剔除未可取板
        /// </summary>
        [Description("剔除未可取板")]
        R_ZXJ_TC_isready,
        /// <summary>
        /// 剔除模式行车
        /// </summary>
        [Description("剔除模式行车")]
        R_TCMode_TC,
        /// <summary>
        /// 剔除模式叉车
        /// </summary>
        [Description("剔除模式叉车")]
        R_TCMode_CC,
        /// <summary>
        /// 行车可准备取板
        /// </summary>
        [Description("行车可准备取板")]
        R_HC_isReady,
        /// <summary>
        /// 行车可放板
        /// </summary>
        [Description("行车可放板")]
        R_HC_isReadyWork,
        /// <summary>
        /// 进料小车安全位
        /// </summary>
        [Description("进料小车安全位")]
        R_issafe,
        /// <summary>
        /// 写脉冲信号
        /// </summary>
        [Description("写脉冲信号")]
        W_ZXJ_HeartBeat,
    }
 
    public enum GZJDBName 
    {
        /// <summary>
        /// 读脉冲心跳
        /// </summary>
        [Description("读脉冲心跳")]
        R_GZJ_HeartBeat,
        /// <summary>
        /// 规整机投入使用
        /// </summary>
        [Description("规整机投入使用")]
        R_GZJ_isWork,
        /// <summary>
        /// 上料模式轨道车
        /// </summary>
        [Description("上料模式轨道车")]
        R_RGVMode,
        /// <summary>
        /// 上料模式叉车
        /// </summary>
        [Description("上料模式叉车")]
        R_CCMode,
        /// <summary>
        /// 剔除上料模式
        /// </summary>
        [Description("剔除上料模式")]
        R_TCMode,
        /// <summary>
        /// 东跨架子可取板
        /// </summary>
        [Description("东跨架子可取板")]
        R_DK_isready,
        /// <summary>
        /// 西跨架子可取板
        /// </summary>
        [Description("西跨架子可取板")]
        R_XK_isready,
        /// <summary>
        /// 剔除架子可取板
        /// </summary>
        [Description("剔除架子可取板")]
        R_TC_isready,
    }
}