Station.cs
3.56 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HHWCS.Model
{
/// <summary>
/// 站台
/// </summary>
public class Station
{
#region PLC-->WCS
/// <summary>
/// 标志位
/// </summary>
public int Flag { get; set; }
/// <summary>
/// 报文类型 01(地址请求)02(位置到达)03(控制指令)
/// </summary>
public int Type { get; set; }
/// <summary>
/// PLC编号
/// </summary>
public int PLCNo { get; set; }
/// <summary>
/// 装载状态,填充0
/// </summary>
public int LoadStatus { get; set; }
/// <summary>
/// 站台编号
/// </summary>
public int StationNo { get; set; }
/// <summary>
/// 货位ID PLC内部跟踪 (任务号)
/// </summary>
public int TaskNo { get; set; }
/// <summary>
/// 条码 PLC上报的条码信息
/// </summary>
public string Barcode { get; set; }
/// <summary>
/// 货位重量
/// </summary>
public int Weight { get; set; }
/// <summary>
/// 货物宽度
/// </summary>
public int Length { get; set; }
/// <summary>
/// 货物高度
/// </summary>
public int Height { get; set; }
/// <summary>
/// 消息类型
/// </summary>
public int RetCode { get; set; }
/// <summary>
/// 备用 7B
/// </summary>
public byte[] BackUp { get; set; }
#endregion
#region WCS-->PLC
/// <summary>
/// 新消息标记位
/// </summary>
public int WCSFlag { get; set; }
/// <summary>
/// 报文类型 06(地址请求)07(控制指令)
/// </summary>
public int WCSType { get; set; }
/// <summary>
/// PLC编号
/// </summary>
public int WCSPLCNo { get; set; }
/// <summary>
/// 装载状态 填充0
/// </summary>
public int WCSLoadStatus { get; set; }
/// <summary>
/// 站台编号
/// </summary>
public int WCSStationNo { get; set; }
/// <summary>
/// 货位ID PLC内部跟踪 (任务号)
/// </summary>
public int WCSTaskNo { get; set; }
/// <summary>
/// 条码 PLC上报的条码信息
/// </summary>
public string WCSBarcode { get; set; }
/// <summary>
/// 目的地 托盘目的地
/// </summary>
public int ToAddress { get; set; }
/// <summary>
/// 备用 7B
/// </summary>
public byte[] WCSBackUp { get; set; }
#endregion
#region Monitor
/// <summary>
/// 输送线状态 1=自动运行 0=故障或手动
/// </summary>
public bool RunningStatus { get; set; }
/// <summary>
/// 是否有货 1=有货 0=无货物
/// </summary>
public bool PalletExit { get; set; }
/// <summary>
/// 托盘目的地
/// </summary>
public int PalletDestinationAddress { get; set; }
/// <summary>
/// 当前输送线编号
/// </summary>
public int ConveyorNo { get; set; }
/// <summary>
/// 托盘条码(按实际长度)
/// </summary>
public string PalletBarcode { get; set; }
#endregion
}
}