EnumPLC.cs
8.57 KB
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
using System.ComponentModel;
namespace RCS.Model.PLC
{
public class EnumPLC
{
/// <summary>
/// 华恒的PLC属性枚举
/// </summary>
public enum PLCHuaHengProps
{
/// <summary>
/// PLC心跳
/// </summary>
[Description("PLC心跳")]
Heart,
/// <summary>
/// PLC安全信号
/// </summary>
[Description("PLC安全信号")]
Devicessafety,
/// <summary>
/// PLC输送线放货准备完毕
/// </summary>
[Description("PLC输送线放货准备完毕")]
PutReady,
/// <summary>
/// PLC允许放
/// </summary>
[Description("PLC允许放")]
PutAllow,
/// <summary>
/// PLC输送线取货准备完成,用于向WMS请求发起取货任务
/// </summary>
[Description("PLC输送线取货准备完成")]
PickReady,
/// <summary>
/// PLC允许取
/// </summary>
[Description("PLC允许取")]
PickAllow,
/// <summary>
/// PLC高度
/// </summary>
[Description("PLC高度")]
Height,
/// <summary>
/// PLC宽度
/// </summary>
[Description("PLC宽度")]
Width,
/// <summary>
/// PLC长度
/// </summary>
[Description("PLC长度")]
Length,
/// <summary>
/// PLC重量
/// </summary>
[Description("PLC重量")]
Weight,
/// <summary>
/// PLC托盘条码
/// </summary>
[Description("PLC托盘条码")]
Code,
/// <summary>
/// PLC托盘类型
/// </summary>
[Description("PLC托盘类型")]
PalletType,
}
/// <summary>
/// RCS回复华恒PLC属性枚举
/// </summary>
public enum RCSHuaHengProps
{
/// <summary>
/// RCS心跳
/// </summary>
[Description("RCS心跳")]
RCSHeart,
/// <summary>
/// RCS安全信号
/// </summary>
[Description("RCS安全信号")]
RCSDevicessafety,
/// <summary>
/// RCS请求放货
/// </summary>
[Description("RCS请求放货")]
RCSPutRequest,
/// <summary>
/// RCS放货中
/// </summary>
[Description("RCS放货中")]
RCSPutRuning,
/// <summary>
/// RCS放完成
/// </summary>
[Description("RCS放完成")]
RCSPutDone,
/// <summary>
/// RCS请求取货
/// </summary>
[Description("RCS请求取货")]
RCSPickRequest,
/// <summary>
/// RCS取货中
/// </summary>
[Description("RCS取货中")]
RCSPickRuning,
/// <summary>
/// RCS取货完成
/// </summary>
[Description("RCS取货完成")]
RCSPickDone,
/// <summary>
/// RCS高度
/// </summary>
[Description("RCS高度")]
RCSHeight,
/// <summary>
/// RCS宽度
/// </summary>
[Description("RCS宽度")]
RCSWidth,
/// <summary>
/// RCS长度
/// </summary>
[Description("RCS长度")]
RCSLength,
/// <summary>
/// RCS重量
/// </summary>
[Description("RCS重量")]
RCSWeight,
/// <summary>
/// RCS托盘条码
/// </summary>
[Description("RCS托盘条码")]
RCSCode,
/// <summary>
/// RCS托盘类型
/// </summary>
[Description("RCS托盘类型")]
RCSPalletType,
}
/// <summary>
/// 门的PLC属性枚举
/// </summary>
public enum PLCDoorProps
{
/// <summary>
/// PLC门已开
/// </summary>
[Description("PLC门已开")]
OpenDoor,
/// <summary>
/// PLC门已关
/// </summary>
[Description("PLC门已关")]
CloseDoor
}
/// <summary>
/// RCS回复门PLC属性枚举
/// </summary>
public enum RCSDoorProps
{
/// <summary>
/// RCS请求开门
/// </summary>
[Description("RCS请求开门")]
RCSOpenDoor,
/// <summary>
/// RCS请求关门
/// </summary>
[Description("RCS请求关门")]
RCSCloseDoor
}
/// <summary>
/// 剪床的PLC属性枚举
/// </summary>
public enum PLCShearsProps
{
/// <summary>
/// P6托盘请求
/// </summary>
[Description("P6托盘请求")]
RequestContainer,
/// <summary>
/// P7托盘请求
/// </summary>
[Description("P7托盘请求")]
RequestContainer7,
/// <summary>
/// 剪床允许放货
/// </summary>
[Description("剪床允许放货")]
ShearsReadyPut,
/// <summary>
/// 剪床取货完成
/// </summary>
[Description("剪床取货完成")]
CompletePick,
/// <summary>
/// 剪床请求放货
/// </summary>
[Description("剪床请求放货")]
ShearsRequestPut,
}
/// <summary>
/// RCS回复剪床PLC属性枚举
/// </summary>
public enum RCSShearsProps
{
/// <summary>
/// AGV放货请求
/// </summary>
[Description("AGV放货请求")]
RCSRequestPut,
/// <summary>
/// AGV允许放货
/// </summary>
[Description("AGV允许放货")]
RCSReadyPick,
/// <summary>
/// AGV取货完成
/// </summary>
[Description("AGV取货完成")]
RCSCompletePick,
}
/// <summary>
/// AGV监控属性枚举
/// </summary>
public enum RCSMonitorProps
{
/// <summary>
/// AGV停靠站台的电器编码:当前停车地址写入的值为站台电器编码,比如 31071、31072,正在执行【自动行走】的过程中地址为0,如果手动开车离开点位,也为0
/// </summary>
[Description("AGV站台电器编码")]
RCSCADCode,
/// <summary>
/// AGV货叉高度:正在执行【自动升降】过程中就为0,否则就是实际高度
/// </summary>
[Description("AGV货叉高度")]
RCSDlHeight,
/// <summary>
/// AGV是否自动任务:1=正在执行自动任务,2=不是正在执行自动任务
/// </summary>
[Description("AGV是否自动任务")]
RCSAuto,
}
/// <summary>
/// PLC的bool值枚举
/// </summary>
public enum PLCBool
{
False = 0,
True = 1,
}
/// <summary>
/// PLC的bool值枚举
/// </summary>
public enum ACSPlaceholder
{
无预占 = 0,
出库预占 = 1,
入库预占 = 2,
}
/// <summary>
/// 设备类型
/// </summary>
public enum EquipmentType
{
/// <summary>
/// 华恒的站台
/// </summary>
HuaHengStation,
/// <summary>
/// 生益剪切机的入口
/// </summary>
ShearsIn,
/// <summary>
/// 生益剪切机的出口
/// </summary>
ShearsOut,
/// <summary>
/// 门的属性
/// </summary>
Door,
/// <summary>
/// AGV监控的属性
/// </summary>
AgvMonitor,
}
}
}