Setting_Init.cs
22.6 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
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
using ConfigHelper;
namespace OnlineStore.Common
{
/// <summary>
/// 记录配置的key
/// </summary>
public class Setting_Init_old
{
/// <summary>
/// 当前默认语言
/// </summary>
public static string Device_Default_Language = "Device_Default_Language";
/// <summary>
/// 系统启动时自动启动料仓,=1时自动启动,并隐藏窗口,=0时不需要
/// </summary>
public static string App_AutoRun = "App_AutoRun";
/// <summary>
/// 系统主界面标题
/// </summary>
public static string App_Title = "App_Title";
/// <summary>
/// 摄像机名称
/// </summary>
public static string CameraName = "CameraName";
/// <summary>
/// 条码类型
/// </summary>
public static string CodeType = "CodeType";
/// <summary>
/// 条码解码参数路径
/// </summary>
public static string CodeParamPath = "CodeParamPath";
/// <summary>
/// 筛选条码数量
/// </summary>
public static string QRCodeCount = "QRCodeCount";
/// <summary>
/// 解码的超时时间
/// </summary>
public static string CodeTimeOut = "CodeTimeOut";
/// <summary>
/// 校准库位的料盘信息
/// </summary>
public static string FixBuffInfo = "FixBuffInfo";
/// <summary>
/// 进出轴运动负载阈值
/// </summary>
public static string Device_InOutMaxLoadRate = "Device_InOutMaxLoadRate";
/// <summary>
/// 提升轴运动负载阈值
/// </summary>
public static string Device_BatchMaxLoadRate = "Device_BatchMaxLoadRate";
/// <summary>
/// 管理员密码
/// </summary>
public static string User_AdminPassword = "User_AdminPassword";
/// <summary>
/// 启用管理员密码
/// </summary>
public static string User_Enable = "User_Enable";
/// <summary>
/// 启用自定义厚度计算策略
/// </summary>
public static string Switch_UseCustHeightList = "Switch_UseCustHeightList";
/// <summary>
/// 宽度15料盘,厚度自减mm
/// </summary>
public static string Param_CalHeight_Width15HeightSubVal = "Param_CalHeight_Width15HeightSubVal";
/// <summary>
/// 宽度13料盘,厚度自减mm
/// </summary>
public static string Param_CalHeight_Width13HeightSubVal = "Param_CalHeight_Width13HeightSubVal";
/// <summary>
/// 如果计算出的厚度小于指定值,都归类为8mm
/// </summary>
public static string Param_CalHeight_Height8MaxVal = "Param_CalHeight_Height8MaxVal";
/// <summary>
/// 自定义厚度列表
/// </summary>
public static string Param_CalHeight_HeightList = "Param_CalHeight_HeightList";
/// <summary>
/// 出库厚度检测下偏差的值
/// </summary>
public static string OutstoreHeightCheckLowerDeviation = "OutstoreHeightCheckLowerDeviation";
/// <summary>
/// 出库厚度检测上偏差的值
/// </summary>
public static string OutstoreHeightCheckUpperDeviation = "OutstoreHeightCheckUpperDeviation";
/// <summary>
/// 出库料盘定位信号对射触发位置高度偏差
/// </summary>
public static string ReelCheckTriggerDeviation = "ReelCheckTriggerDeviation";
/// <summary>
/// 是否禁止单盘入库
/// </summary>
public static string DisableSingleReelIn = "DisableSingleReelIn";
/// <summary>
/// 是否启用上料提升轴的料叉检测
/// </summary>
public static string Swicth_BatchFixCheck = "Swicth_BatchFixCheck";
/// <summary>
/// 料串门光栅触发处理方式:0-设备急停;1-仅料串门停止
/// </summary>
public static string StringDoor_SafetyLightCurtainsProcStrategy = "StringDoor_SafetyLightCurtainsProcStrategy";
/// <summary>
/// 是否启用AGV
/// </summary>
public static string AGV_Enable = "AGV_Enable";
/// <summary>
/// AGV服务软件所在电脑IP
/// </summary>
public static string AGV_ServerIp = "AGV_ServerIp";
/// <summary>
/// AGV服务接口
/// </summary>
public static string AGV_ServerPort = "AGV_ServerPort";
/// <summary>
/// AGV节点编号
/// </summary>
public static string AGV_NodeId = "AGV_NodeId";
/// <summary>
/// AGV节点名称
/// </summary>
public static string AGV_NodeName = "AGV_NodeName";
/// <summary>
/// 库位高低点最大相差的值
/// </summary>
public static string UpDownAxis_Position_MaxRange = "UpDownAxis_Position_MaxRange";
/// <summary>
/// 湿度修正值,写负数 -5等于减5
/// </summary>
public static string Device_humidityadjust = "Device_humidityadjust";
/// <summary>
/// 湿度修正最低值,防止修正过头
/// </summary>
public static string Device_humiditylimited = "Device_humiditylimited";
/// <summary>
/// 是否使用一维码检测料盘在NG平台
/// </summary>
public static string CamTestReel_useBarcode = "CamTestReel_useBarcode";
/// <summary>
/// NG平台一维码检测料盘:一维码的内容
/// </summary>
public static string CamTestReel_barcode = "CamTestReel_barcode";
/// <summary>
/// NG平台一维码检测料盘:阈值设置,小于该该数量认为有料
/// </summary>
public static string CamTestReel_barcodeThreshold = "CamTestReel_barcodeThreshold";
/// <summary>
/// 是否打开NG平台检测料盘调试
/// </summary>
public static string CamTestReel_debug = "CamTestReel_debug";
/// <summary>
/// NG平台颜色检测料盘:总的覆盖数量
/// </summary>
public static string CamTestReel_totalcover = "CamTestReel_totalcover";
/// <summary>
/// NG平台颜色检测料盘:色相H的最低值
/// </summary>
public static string CamTestReel_HL = "CamTestReel_HL";
/// <summary>
/// NG平台颜色检测料盘:色相H的最大值
/// </summary>
public static string CamTestReel_HH = "CamTestReel_HH";
/// <summary>
/// NG平台颜色检测料盘:亮度L的最低值
/// </summary>
public static string CamTestReel_LL = "CamTestReel_LL";
/// <summary>
/// NG平台颜色检测料盘:亮度L的最大值
/// </summary>
public static string CamTestReel_LH = "CamTestReel_LH";
/// <summary>
/// NG平台颜色检测料盘:饱和度S的最小值
/// </summary>
public static string CamTestReel_SL = "CamTestReel_SL";
/// <summary>
/// NG平台颜色检测料盘:饱和度S的最大值
/// </summary>
public static string CamTestReel_SH = "CamTestReel_SH";
/// <summary>
/// 启用NG平台检测功能
/// </summary>
public static string CamTestReel_Ability = "CamTestReel_Ability";
/// <summary>
/// NG平台颜色检测料盘:阈值设置,小于该值认为有料
/// </summary>
public static string CamTestReel_threshold = "CamTestReel_threshold";
/// <summary>
/// 是否单进单出
/// </summary>
public static string Device_SingleInSingleOut = "Device_SingleInSingleOut";
/// <summary>
/// SMF服务器地址
/// </summary>
public static string http_server = "http_server";
/// <summary>
/// 料仓CID
/// </summary>
public static string CID = "CID";
/// <summary>
/// 温湿度串口号
/// </summary>
public static string Device_Humiture_Port = "Device_Humiture_Port";
/// <summary>
/// 屏蔽升降轴保护
/// </summary>
public static string Device_DisableUpdownProtect = "Device_DisableUpdownProtect";
/// <summary>
/// 屏蔽单料门
/// </summary>
public static string Device_DisableSingleDoor = "Device_DisableSingleDoor";
/// <summary>
/// 屏蔽料串门
/// </summary>
public static string Device_Disable_StringDoor = "Device_Disable_StringDoor";
/// <summary>
/// 是否启用在校准库位检查料盘功能
/// </summary>
public static string Func_CheckReelLocInFix = "Func_CheckReelLocInFix";
/// <summary>
/// 关闭日志窗口
/// </summary>
public static string Device_DisableLogWindow = "Device_DisableLogWindow";
/// <summary>
/// 启用蜂鸣器
/// </summary>
public static string Device_EnableBuzzer = "Device_EnableBuzzer";
/// <summary>
/// 料盘最大厚度,用于出库,最后一盘位置小于该高厚度则将下降
/// </summary>
public static string ReelMaxHeightMM = "ReelMaxHeightMM";
/// <summary>
/// 没有出库任务, 料串在待机点取释放料串
/// </summary>
public static string Device_String_StandbyAtBottom = "Device_String_StandbyAtBottom";
/// <summary>
/// 出库时,是否启用定位旋转气缸检测料盘
/// </summary>
public static string Device_OutStoreStringReelCheck = "Device_OutStoreStringReelCheck";
/// <summary>
/// 压紧轴回原失败重试最大次数
/// </summary>
public static string Comp_Axis_HomeResetTimes = "Comp_Axis_HomeResetTimes";
/// <summary>
/// 是否使用校准库位
/// </summary>
public static string Device_Use_Fixpos = "Device_Use_Fixpos";
/// <summary>
/// X08 AGV到位信号是否是料串门光栅
/// </summary>
public static string Device_IO_X08IsStringDoor_SafetyLightCurtains = "Device_IO_X08IsStringDoor_SafetyLightCurtains";
/// <summary>
/// 料串门关闭延时,到位信号亮后延时一定时间再停止
/// </summary>
public static string Device_StringDoor_DownOverTimeMS = "Device_StringDoor_DownOverTimeMS";
/// <summary>
/// 料串门打开延时,到位信号亮后延时一定时间再停止
/// </summary>
public static string Device_StringDoor_UpOverTimeMS = "Device_StringDoor_UpOverTimeMS";
/// <summary>
/// 屏蔽门安全检查
/// </summary>
public static string Device_Disable_DoorSafeCheck = "Device_Disable_DoorSafeCheck";
/// <summary>
/// 是否启用手动关单料门
/// </summary>
public static string Device_ManualCloseSingleDoor = "Device_ManualCloseSingleDoor";
/// <summary>
/// 入库料盘拿走后,料串下降一段距离
/// </summary>
public static string Batch_ReelGetedDownMM = "Batch_ReelGetedDownMM";
/// <summary>
/// 大于7寸料盘高度补偿(mm),进而调整压紧轴压紧点
/// </summary>
public static string Device_1315_ReelHeight_Compensation = "Device_1315_ReelHeight_Compensation";
/// <summary>
/// 启动吹气的湿度偏移值,即当前湿度+偏移量>最大温湿度时吹气
/// </summary>
public static string Device_HumidityStartOffser = "Device_HumidityStartOffser";
/// <summary>
/// 停止吹气的湿度偏移值,即当前湿度+偏移量<最大温湿度时停止吹气
/// </summary>
public static string Device_HumidityEndOffser = "Device_HumidityEndOffser";
/// <summary>
/// 空料串到P2点与料盘定位信号补偿值
/// </summary>
public static string OffsetEmptyToTrayCheck = "OffsetEmptyToTrayCheck";
}
/// <summary>
/// 记录配置的key
/// </summary>
public class Setting_Init
{
[MyConfigComment("当前默认语言")]
public static MyConfig<string> App_Default_Language = "zh-CN";
[MyConfigComment("系统启动时自动启动料仓,=1时自动启动,并隐藏窗口,=0时不需要")]
public static MyConfig<int> App_AutoRun = 0;
[MyConfigComment("系统主界面标题")]
public static MyConfig<string> App_Title = "SMD BOX MIMO G2";
[MyConfigComment("湿度修正值,写负数 -5等于减5")]
public static MyConfig<int> App_humidityadjust = 0;
[MyConfigComment("湿度修正最低值,防止修正过头")]
public static MyConfig<int> App_humiditylimited = 0;
[MyConfigComment("SMF服务器地址")]
public static MyConfig<string> App_http_server = "http://localhost/smf-core";
[MyConfigComment("料仓CID")]
public static MyConfig<string> App_CID = "01";
[MyConfigComment("温湿度串口号")]
public static MyConfig<string> App_Humiture_Port = "COM1";
[MyConfigComment("启动吹气的湿度偏移值,即当前湿度+偏移量>最大温湿度时吹气")]
public static MyConfig<double> App_HumidityStartOffser = 1;
[MyConfigComment("停止吹气的湿度偏移值,即当前湿度+偏移量<最大温湿度时停止吹气")]
public static MyConfig<double> App_HumidityEndOffser = 10;
///// <summary>
///// 摄像机名称
///// </summary>
[MyConfigComment("相机名称")]
public static MyConfig<string> Camera_CameraName = "CameraName";
[MyConfigComment("条码类型")]
public static MyConfig<string> Camera_CodeType = "QR Code#Data Matrix ECC 200#eyem#barcode";
[MyConfigComment("条码解码参数路径")]
public static MyConfig<string> Camera_CodeParamPath = "";
[MyConfigComment("筛选条码数量")]
public static MyConfig<int> Camera_QRCodeCount = 3;
[MyConfigComment("解码的超时时间")]
public static MyConfig<int> Camera_CodeTimeOut = 1000;
/// <summary>
/// 校准库位的料盘信息
/// </summary>
[MyConfigComment("校准库位的料盘信息")]
public static MyConfig<string> Buffer_FixBuffInfo = "";
[MyConfigComment("进出轴运动负载阈值")]
public static MyConfig<float> LoadRateLimit_InOutMaxLoadRate = 50;
[MyConfigComment("提升轴运动负载阈值")]
public static MyConfig<float> LoadRateLimit_BatchMaxLoadRate = 50;
[MyConfigComment("管理员密码")]
public static MyConfig<string> User_AdminPassword = "123456";
[MyConfigComment("启用管理员密码")]
public static MyConfig<bool> User_Enable = false;
#region 料盘高度计算参数
[MyConfigComment("启用自定义厚度计算策略")]
public static MyConfig<bool> CalHeight_EnableCustHeightList = false;
/// <summary>
/// 宽度15料盘,厚度自减mm
/// </summary>
[MyConfigComment("宽度15料盘,厚度自减mm")]
public static MyConfig<int> CalHeight_Width15HeightSubVal = 2;
/// <summary>
/// 宽度13料盘,厚度自减mm
/// </summary>
[MyConfigComment("宽度13料盘,厚度自减mm")]
public static MyConfig<int> CalHeight_Width13HeightSubVal = 1;
[MyConfigComment("如果计算出的厚度小于指定值,都归类为8mm")]
public static MyConfig<int> CalHeight_Height8MaxVal = 12;
[MyConfigComment("自定义厚度列表")]
public static MyConfig<string[]> CalHeight_HeightList = new string[] { "12=12#16", "16=16#24", "24=24#32", "32=32#44", "44=44#56", "56=56#60" };
#endregion
[MyConfigComment("出库厚度检测下偏差的值")]
public static MyConfig<int> Outstore_HeightCheckLowerDeviation = 5;
[MyConfigComment("出库厚度检测上偏差的值")]
public static MyConfig<int> Outstore_HeightCheckUpperDeviation = 3;
[MyConfigComment("料盘最大厚度,用于出库,最后一盘位置小于该高厚度则将下降")]
public static MyConfig<int> Outstore_ReelMaxHeightMM = 60;
[MyConfigComment("出库时,是否启用定位旋转气缸检测料盘")]
public static MyConfig<bool> OutStore_StringReelCheck = false;
[MyConfigComment("出库料盘定位信号对射触发位置高度偏差")]
public static MyConfig<int> ReelCheckTriggerDeviation = 5;
[MyConfigComment("没有出库任务, 料串在待机点取释放料串")]
public static MyConfig<bool> StringStandbyAtBottom = true;
[MyConfigComment("空料串到P2点与料盘定位信号补偿值")]
public static MyConfig<int> OffsetEmptyToTrayCheck = 10;
[MyConfigComment("是否启用AGV")]
public static MyConfig<bool> AGV_Enable = false;
[MyConfigComment("AGV服务软件所在电脑IP")]
public static MyConfig<string> AGV_ServerIp = "127.0.0.1";
[MyConfigComment("AGV服务接口")]
public static MyConfig<int> AGV_ServerPort = 12000;
[MyConfigComment("AGV节点编号")]
public static MyConfig<int> AGV_NodeId = 1;
[MyConfigComment("AGV节点名称")]
public static MyConfig<string> AGV_NodeName = "MIMO";
#region 视觉检查NG平台
[MyConfigComment("是否使用一维码检测料盘在NG平台")]
public static MyConfig<bool> CamTestReel_useBarcode = false;
[MyConfigComment("NG平台一维码检测料盘:一维码的内容")]
public static MyConfig<string> CamTestReel_barcode = "RW0000015";
[MyConfigComment("NG平台一维码检测料盘:阈值设置,小于该该数量认为有料")]
public static MyConfig<int> CamTestReel_barcodeThreshold = 2;
[MyConfigComment("是否打开NG平台检测料盘调试")]
public static MyConfig<bool> CamTestReel_debug = false;
[MyConfigComment("NG平台颜色检测料盘:总的覆盖数量")]
public static MyConfig<int> CamTestReel_totalcover = 69577;
[MyConfigComment("NG平台颜色检测料盘:色相H的最低值")]
public static MyConfig<int> CamTestReel_HL = 40;
[MyConfigComment("NG平台颜色检测料盘:色相H的最大值")]
public static MyConfig<int> CamTestReel_HH = 70;
[MyConfigComment("NG平台颜色检测料盘:亮度L的最低值")]
public static MyConfig<int> CamTestReel_LL = 15;
[MyConfigComment("NG平台颜色检测料盘:亮度L的最大值")]
public static MyConfig<int> CamTestReel_LH = 100;
[MyConfigComment("NG平台颜色检测料盘:饱和度S的最小值")]
public static MyConfig<int> CamTestReel_SL = 20;
[MyConfigComment("NG平台颜色检测料盘:饱和度S的最大值")]
public static MyConfig<int> CamTestReel_SH = 100;
[MyConfigComment("启用NG平台检测功能")]
public static MyConfig<bool> CamTestReel_Ability = false;
[MyConfigComment("NG平台颜色检测料盘:阈值设置,小于该值认为有料")]
public static MyConfig<double> CamTestReel_threshold = 0.6;
#endregion
[MyConfigComment("屏蔽升降轴保护")]
public static MyConfig<bool> Disable_UpdownProtect = true;
[MyConfigComment("屏蔽单料门")]
public static MyConfig<bool> Disable_SingleDoor = false;
[MyConfigComment("屏蔽料串门")]
public static MyConfig<bool> Disable_StringDoor = false;
[MyConfigComment("关闭日志窗口")]
public static MyConfig<bool> Disable_LogWindow = true;
[MyConfigComment("屏蔽门安全检查")]
public static MyConfig<bool> Disable_DoorSafeCheck = false;
[MyConfigComment("是否禁止单盘入库,禁用时服务端不显示单盘入库按钮")]
public static MyConfig<bool> Disable_SingleReelIn = false;
[MyConfigComment("是否启用上料提升轴的料叉检测")]
public static MyConfig<bool> Enable_BatchFixCheck = false;
[MyConfigComment("是否启用在校准库位检查料盘功能")]
public static MyConfig<bool> Enable_CheckReelLocInFix = false;
[MyConfigComment("启用蜂鸣器")]
public static MyConfig<bool> Enable_Buzzer = true;
[MyConfigComment("是否使用校准库位")]
public static MyConfig<bool> Enable_Fixpos = false;
[MyConfigComment("是否启用单盘入库,启用则可指定尺寸,在单料口入库")]
public static MyConfig<bool> Enable_SingleInSingleOut = false;
[MyConfigComment("是否启用手动关单料门")]
public static MyConfig<bool> Enable_SingleDoor_ManualClose = false;
[MyConfigComment("启用隐藏smf单盘入库按钮")]
public static MyConfig<bool> Enable_HideSingleReelIn = false;
[MyConfigComment("压紧轴回原失败重试最大次数")]
public static MyConfig<int> Comp_Axis_HomeResetTimes = 999;
[MyConfigComment("大于7寸料盘高度补偿(mm),进而调整压紧轴压紧点")]
public static MyConfig<int> Comp_1315_ReelHeight_Compensation = 0;
[MyConfigComment("X08 AGV到位信号是否是料串门光栅")]
public static MyConfig<bool> StringDoor_X08IsStringDoor_SafetyLightCurtains = false;
[MyConfigComment("料串门关闭延时,到位信号亮后延时一定时间再停止")]
public static MyConfig<int> StringDoor_DownOverTimeMS = 0;
[MyConfigComment("料串门打开延时,到位信号亮后延时一定时间再停止")]
public static MyConfig<int> StringDoor_UpOverTimeMS = 0;
[MyConfigComment("料串门光栅触发处理方式:0-设备急停;1-仅料串门停止")]
public static MyConfig<int> StringDoor_SafetyLightCurtainsProcStrategy = 1;
[MyConfigComment("库位高低点最大相差的值")]
public static MyConfig<int> Protection_ReelUpDownAxis_MaxRange = 30000;
[MyConfigComment("入库料盘拿走后,料串下降一段距离")]
public static MyConfig<int> Batch_ReelGetedDownMM = 8;
[MyConfigComment("是否启用指定尺寸执行单盘出库,如治具只能单盘出,无法放到料串情况")]
public static MyConfig<bool> SingleInOut_EnableSpecfiedSize = false;
[MyConfigComment("单盘出入库的指定尺寸-宽度")]
public static MyConfig<int> SingleInOut_ReelWidth = 7;
[MyConfigComment("单盘出入库的指定尺寸-高度")]
public static MyConfig<int> SingleInOut_ReelHeight = 20;
}
}