2
schangxiang@126.com
2024-10-01 ffa9dc9c2d28c0b8d88b26d483ba9667e316db01
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
 
using iWareModel;
using System.Collections.Generic;
namespace iWareCommon.Common.Globle
{
    public static class SysGloble
    {
        /// <summary>
        /// 上一次下发出库任务的下发时间和当前时间的差值
        /// </summary>
        public static int MIN_OUTSTORE_RGV_TASK_JIANGE = 15;
 
        /// <summary>
        /// 默认设置1011站点持续有货的持续计数的最大数
        /// </summary>
        public static int MAX_RGV_1011_HasCategory_COUNT = 60 * 60;//10分钟,等待了这些时间,还不下发任务,就下发任务 30 * 60
 
        /// <summary>
        /// 默认设置1012站点持续有货的持续计数的最大数
        /// </summary>
        public static int MAX_RGV_1012_HasCategory_COUNT = 30;
 
        /// <summary>
        /// 缺料信息
        /// </summary>
        public static string QUELIAO_STR = "缺料";
 
        /// <summary>
        /// 分隔符
        /// </summary>
        public static string SPLIT_STR = " || ";
 
        public static string LogDir = "d://log";
 
        public const string WCSSystem = "WCS";
 
        /// <summary>
        /// 当前配置的堆叠顺序排序方式
        /// </summary>
        public const StackSequenceSortRule CurrentStackSequenceSortRule = StackSequenceSortRule.Ascending;
 
        /// <summary>
        /// 1号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place1_1 = "1-01-01-01";
        /// <summary>
        /// 1号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place1_2 = "1-02-01-01";
 
        /// <summary>
        /// 2号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place2_1 = "2-01-01-01";
        /// <summary>
        /// 2号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place2_2 = "2-02-01-01";
 
        /// <summary>
        /// 3号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place3_1 = "3-01-01-01";
        /// <summary>
        /// 3号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place3_2 = "3-02-01-01";
 
        /// <summary>
        /// 4号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place4_1 = "4-01-01-01";
        /// <summary>
        /// 4号堆垛机进出口库位
        /// </summary>
        public const string Srm_I_O_Place4_2 = "4-02-01-01";
 
 
        /// <summary>
        /// 特殊库位的字典
        /// </summary>
        public static Dictionary<string, string> Dict_SpecialPlace = new Dictionary<string, string>() { 
            {Srm_I_O_Place1_1,Srm_I_O_Place1_1},
            {Srm_I_O_Place1_2,Srm_I_O_Place1_2},
            {Srm_I_O_Place2_1,Srm_I_O_Place2_1},
            {Srm_I_O_Place2_2,Srm_I_O_Place2_2},
 
            {Srm_I_O_Place3_1,Srm_I_O_Place3_1},
            {Srm_I_O_Place3_2,Srm_I_O_Place3_2},
            {Srm_I_O_Place4_1,Srm_I_O_Place4_1},
            {Srm_I_O_Place4_2,Srm_I_O_Place4_2},
        };
 
        /// <summary>
        /// 特殊库位的字典(堆垛机的入库口)
        /// </summary>
        public static Dictionary<string, string> Dict_SpecialPlace_IN = new Dictionary<string, string>() { 
            {Srm_I_O_Place1_1,Srm_I_O_Place1_1},
            {Srm_I_O_Place2_1,Srm_I_O_Place2_1},
 
            {Srm_I_O_Place3_1,Srm_I_O_Place3_1},
            {Srm_I_O_Place4_2,Srm_I_O_Place4_2},
        };
 
 
 
        /// <summary>
        /// 入口地址
        /// </summary>
        public readonly static int InStorePlace = 20101;
        /// <summary>
        /// 出口地址
        /// </summary>
        public readonly static int OutStorePlace = 20301;
        /// <summary>
        /// 维修出口地址
        /// </summary>
        public readonly static int OutStoreForFixPlace = 10801;
 
 
        /// <summary>
        /// 最小的空托盘默认的模具号(虚拟模具号)
        /// </summary>
        public readonly static short MinNoDieNumber = 1000;
 
        #region 库位号和PLC偏移量字典
 
        //里面有空格,别忘了最后trim下
        public static IDictionary<short, short> offsetPlaceNoDict = new System.Collections.Generic.Dictionary<short, short>() { 
        {10101,120},
{10102,122},
{10103,124},
{10104,126},
{10105,128},
{10106,130},
{10201,132},
{10202,134},
{10203,136},
{10204,138},
{10205,140},
{10206,142},
{10301,144},
{10302,146},
{10303,148},
{10304,150},
{10305,152},
{10306,154},
{10401,156},
{10402,158},
{10403,160},
{10404,162},
{10405,164},
{10406,166},
{10501,168},
{10502,170},
{10503,172},
{10504,174},
{10505,176},
{10506,178},
{10601,180},
{10602,182},
{10603,184},
{10604,186},
{10605,188},
{10606,190},
{10701,192},
{10702,194},
{10703,196},
{10704,198},
{10705,200},
{10706,202},
{10802,204},
{10803,206},
{10804,208},
{10805,210},
{10806,212},
{10901,214},
{10902,216},
{10903,218},
{10904,220},
{10905,222},
{10906,224},
{20102,226},
{20103,228},
{20104,230},
{20105,232},
{20106,234},
{20201,236},
{20202,238},
{20203,240},
{20204,242},
{20205,244},
{20206,246},
{20302,248},
{20303,250},
{20304,252},
{20305,254},
{20306,256},
{20401,258},
{20402,260},
{20403,262},
{20404,264},
{20405,266},
{20406,268},
{20501,270},
{20502,272},
{20503,274},
{20504,276},
{20505,278},
{20506,280},
{20601,282},
{20602,284},
{20603,286},
{20604,288},
{20605,290},
{20606,292},
{20701,294},
{20702,296},
{20703,298},
{20704,300},
{20705,302},
{20706,304},
{20801,306},
{20802,308},
{20803,310},
{20804,312},
{20805,314},
{20806,316},
{20901,318},
{20902,320},
{20903,322},
{20904,324},
{20905,326},
{20906,328},
 
 
 
        };
 
        #endregion
 
    }
}