DoorInfo.cs
1.0 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
public class DoorInfo
{
public DoorInfo(doorIndexE _doorIndex)
{
doorType = DoorTypeE.BOTH;
doorIndex = _doorIndex;
status = doorStatusE.free;
hasContainer = false;
hSerial = "";
}
public string doorType;
public doorIndexE doorIndex;
public doorStatusE status;
public bool hasContainer;
public string hSerial;
}
public enum doorIndexE
{
//LeftIn = 2,
//LeftOut = 1,
XLR_1 = 3,
XLR_2 = 4,
}
public enum doorStatusE
{
/// <summary>
/// 空闲
/// </summary>
free = 1,
/// <summary>
/// 入库中
/// </summary>
inStore = 2,
/// <summary>
/// 出库中
/// </summary>
outStore = 3,
/// <summary>
/// 需要空料串出库
/// </summary>
needBox = 4,
/// <summary>
/// 满料串需要取走
/// </summary>
fullBoxNeedLeave = 5
}
public class DoorTypeE
{
public const string IN = "IN";
public const string OUT = "OUT";
public const string BOTH = "BOTH";
}