wangxinhui
2026-02-02 f501e1d11653b2500e032a0d3c255f62aac4b054
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
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 命名空间:WIDESEAWCS_Tasks.ConveyorLineJob
 * 创建者:胡童庆
 * 创建时间:2024/8/2 16:13:36
 * 版本:V1.0.0
 * 描述:
 *
 * ----------------------------------------------------------------
 * 修改人:
 * 修改时间:
 * 版本:V1.0.1
 * 修改说明:
 * 
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Common.Attributes;
using WIDESEAWCS_QuartzJob.DeviceBase;
 
namespace WIDESEAWCS_Tasks.ConveyorLineJob
{
    public class ConveyorLineTaskCommand : DeviceCommand
    {
        // <summary>
        /// 任务号
        /// </summary>
        public int TaskNum { get; set; }
        /// <summary>
        /// 目标站台
        /// </summary>
        public short TargetAddress { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public short Weight { get; set; }
        /// <summary>
        /// 幅宽
        /// </summary>
        public short Width { get; set; }
        /// <summary>
        /// 直径/高度
        /// </summary>
        public short Height { get; set; }
 
        /// <summary>
        /// 申请<br/>
        /// 86为申请
        /// </summary>
        public short InteractiveSignal { get; set; }
 
        /// <summary>
        /// 申请反馈 86成功
        /// </summary>
        public short ResponState { get; set; }
 
        private string _barcode;
        /// <summary>
        /// 条码
        /// </summary>
        /// <summary>
        [DataLength(40)]
        public string Barcode
        {
            get { return _barcode; }
            set { _barcode = value.Replace("\0", "").Replace("\\0", ""); }
        }
    }
    public class R_ConveyorLineYLInfo : DeviceCommand
    {
        /// <summary>
        /// 任务号
        /// </summary>
        public int WR_Task { get; set; }
        /// <summary>
        /// 目标站台
        /// </summary>
        public short WR_ToHode { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public short WR_Weight { get; set; }
        /// <summary>
        /// 幅宽
        /// </summary>
        public short WR_Width { get; set; }
        /// <summary>
        /// 直径/高度
        /// </summary>
        public short WR_Height { get; set; }
 
        /// <summary>
        /// 申请<br/>
        /// 86为申请
        /// </summary>
        public short WR_Request { get; set; }
 
        /// <summary>
        /// 申请反馈 86成功
        /// </summary>
        public short WR_Reresult { get; set; }
 
        private string _barcode;
        /// <summary>
        /// 条码
        /// </summary>
        /// <summary>
        [DataLength(40)]
        public string WR_TMID
        {
            get { return _barcode; }
            set { _barcode = value.Replace("\0", "").Replace("\\0", ""); }
        }
    }
 
    public class ConveyorLineTaskCommandWrite : DeviceCommand
    {
        public ushort ResponState { get; set; } = 86;
 
        [DataLength(25)]
        public string Barcode { get; set; }
 
        public short TargetAddress { get; set; }
 
        public short TaskNum { get; set; }
 
        public short Width { get; set; }
        public short Height { get; set; }
 
    }
}