schangxiang@126.com
2025-06-13 f10d68fe7b934ba7ad8e8393f36f20878ed8155d
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace S7Test.DevEntity
{
   public class RgvEntity
    {
        /// <summary>
        /// Rgv名称
        /// </summary>
        public string RgvName { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int DeviceId { get; set; }
 
 
        #region 写入设备的信息
 
        /// <summary>
        /// 急停
        /// </summary>
        public bool WEStop { get; set; }
 
 
        /// <summary>
        /// 任务完成确认
        /// </summary>
        public bool WAckTaskFinish { get; set; }
        /// <summary>
        /// 设备复位
        /// </summary>
        public bool WReset { get; set; }
 
        /// <summary>
        /// 托盘类型
        /// </summary>
        public int WPallType { get; set; }
        /// <summary>
        /// 任务下完成信号
        /// </summary>
        public bool WStb { get; set; }
        #endregion
 
        #region 读取设备的信息
        /// <summary>
        /// 心跳
        /// </summary>
        public int RHandShake { get; set; }
 
        /// <summary>
        /// 是否有报警
        /// </summary>
        public bool RAlarm { get; set; }
        /// <summary>
        /// 报警代码
        /// </summary>
        public int RAlarmCode { get; set; }
 
        /// <summary>
        /// 是否有货
        /// </summary>
        public bool RLoaded { get; set; }
        /// <summary>
        /// 任务完成信号
        /// </summary>
        public bool RTaskFinish { get; set; }
        /// <summary>
        /// 任务号
        /// </summary>
        public int RTaskNo { get; set; }
        /// <summary>
        /// 起始站点
        /// </summary>
        public int RSPos { get; set; }
        /// <summary>
        /// 目标站点
        /// </summary>
        public int RTPos { get; set; }
        /// <summary>
        /// Rgv位置
        /// </summary>
        public int RRgvPosition { get; set; }
        /// <summary>
        /// Rgv状态
        /// </summary>
        public int RState { get; set; }
        /// <summary>
        /// Rgv模式
        /// </summary>
        public int RMode { get; set; }
        /// <summary>
        /// 任务接收成功信号
        /// </summary>
        public bool RAck { get; set; }
        #endregion
 
        public RgvEntity(string rgvName, int deviceId)
        {
            this.RgvName = rgvName;
            this.DeviceId = deviceId;
        }
 
    }
}