ke_junjie
2025-06-04 101c57ec4c28bc3c36e49c50a926e9e7c0dd0247
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWareSda_QQJF.RGV.RgvModel
{
    public class rgvDB
    {
      /// <summary>设备号
      /// 
      /// </summary>
        public string rgvNoW { get; set; }
      /// <summary>急停
      /// 
      /// </summary>
        public string estopW { get; set; }
      /// <summary>取货位置
      /// 
      /// </summary>
        public string starPosW { get; set; }
      /// <summary>放货位置
      /// 
      /// </summary>
        public string endPosW { get; set; }
 
        /// <summary>
        /// 托盘编号
        /// </summary>
        public string palletType { get; set; }
        
        /// <summary>
        /// RGV父任务号
        /// </summary>
        public string rgvfatheridW { get; set; }
        
      /// <summary>任务ID
      /// 
      /// </summary>
        public string taskIdW { get; set; }
      /// <summary>任务命名1搬运,2移动,3删除任务
      /// 
      /// </summary>
        public string cmdW { get; set; }
      /// <summary>确认任务完成
      /// 
      /// </summary>
        public string ackTaskFinishW { get; set; }
      /// <summary>rgv解警
      /// 
      /// </summary>
        public string resetW { get; set; }
 
  //---------------------------------------------------------------------
 
      /// <summary>设备编号
      /// 
      /// </summary>
        public string rgvNoR { get; set; }
 
 
      /// <summary>取货完成
      /// 
      /// </summary>
        public string getFinishR { get; set; }
        /// <summary>放货完成
        /// 
        /// </summary>
        public string putFinishR { get; set; }
 
      /// <summary>联机模式 自动/非自动
      /// 
      /// </summary>
        public string onLineR { get; set; }
      /// <summary>是否报警状态
      /// 
      /// </summary>
        public string alarmR { get; set; }
      /// <summary>任务完成
      /// 
      /// </summary>
        public string taskFinishR { get; set; }
      /// <summary>是否有货
      /// 
      /// </summary>
        public string loadedR { get; set; }
      /// <summary>报警代码
      /// 
      /// </summary>
        public string alarmCodeR { get; set; }
      /// <summary>运行状态
      /// 
      /// </summary>
 
        public string stateR { get; set; }
      /// <summary>rgv当前位置
      /// 
      /// </summary>
        public string posR { get; set; }
      /// <summary>rgv当前任务号
      /// 
      /// </summary>
        public string taskIdR { get; set; }
      /// <summary>读取RGV心跳
      /// 
      /// </summary>
        public string handShskeR { get; set; }
        /// <summary>rgv当前位置
        /// 
        /// </summary>
        public string posationR { get; set; }
 
        /// <summary>rgv当前位置
        /// 
        /// </summary>
        public string totalR { get; set; }
      ///-----------------------------------
        public rgvDB(int srmDeviceId = 0)
        {
            if (srmDeviceId < 1 || srmDeviceId > 4) return;
            int rgvno = srmDeviceId;
            rgvNoW = "DB34.DBW0";
            estopW = "DB34.DBW2";
            starPosW = "DB34.DBW4";
            endPosW = "DB34.DBW6";
            palletType = "DB34.DBW16";
            taskIdW = "DB34.DBW8";
            cmdW = "DB34.DBW10";
            ackTaskFinishW = "DB34.DBW12";
            resetW = "DB34.DBW14";
            rgvfatheridW = "DB34.DBW18";
            //-----------------------------------------------------
            rgvNoR = "DB35.DBW0";
            getFinishR = "DB35.DBW2";
            putFinishR = "DB35.DBW4";
            onLineR = "DB35.DBW6";
            alarmR = "DB35.DBW8";
            taskFinishR = "DB35.DBW10";
            loadedR = "DB35.DBW12";
            alarmCodeR = "DB35.DBW14";
            stateR = "DB35.DBW16";
            posR = "DB35.DBW18";
            taskIdR = "DB35.DBW20";
            handShskeR = "DB35.DBW22";
            posationR = "DB35.DBD24";
            totalR = "DB35.DBD28";
        }
 
    }
}