Setting_Init.cs
4.8 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
using ConfigHelper;
namespace OnlineStore.Common
{
/// <summary>
/// 记录配置的key
/// </summary>
public class Setting_Init
{
public static void Init()
{
ConfigHelper.Config.MyConfig = typeof(Setting_Init);
}
[MyConfigComment("是否打开AGV日志")]
public static MyConfig<bool> Log_OpenAgv = true;
[MyConfigComment("是否打开AGV日志")]
public static MyConfig<bool> Log_OpenServer = true;
[MyConfigComment("系统启动时自动启动料仓,true时自动启动,并隐藏窗口;false时不需要")]
public static MyConfig<bool> App_AutoRun = true;
[MyConfigComment("系统主界面标题")]
public static MyConfig<string> App_Title = "包装料仓";
[MyConfigComment("料仓配置路径")]
public static MyConfig<string> BOX_ConfigPath = "\\StoreConfig\\BoxConfig.csv";
[MyConfigComment("料仓点位配置路径")]
public static MyConfig<string> Store_Position_Config = "\\StoreConfig\\linePositions.csv";
[MyConfigComment("服务器地址")]
public static MyConfig<string> http_server = "http://172.16.77.86/myproject/";
[MyConfigComment("料仓CID,每个仓唯一")]
public static MyConfig<string> Store_CID = "packing-store";
[MyConfigComment("软件上料仓数量")]
public static MyConfig<int> store_count = 2;
[MyConfigComment("料仓类型")]
public static MyConfig<string> Store_Type = "RC_AC_PA";
[MyConfigComment("摄像机名称,多个中间使用#分割")]
public static MyConfig<string> CameraName = "";
[MyConfigComment("需要识别的二维码类型,多个中间使用#分割")]
public static MyConfig<string> CodeType = "QR Code#Data Matrix ECC 200";
[MyConfigComment("是否开启吹气")]
public static MyConfig<bool> OpenBlow = false;
[MyConfigComment("开始吹气的判断值(配置值=服务器发送的湿度值-开始吹气值)")]
public static MyConfig<int> StartBlowValue = 4;
[MyConfigComment("停止吹气的判断值(配置值=服务器发送的湿度值-停止吹气值)")]
public static MyConfig<int> StopBlowValue = 4;
[MyConfigComment("二维码参数文件所在路径,文件名与二维码类型名一样")]
public static MyConfig<string> CodeParamPath = "\\CodeParam\\";
[MyConfigComment("进出轴最大待机点,需要小于3000")]
public static MyConfig<int> InOutDefaultPosition = 52000;
[MyConfigComment("配置的登录密码")]
public static MyConfig<string> Config_Pwd = "123456";
[MyConfigComment("出库等待料盘拿走的时间,秒")]
public static MyConfig<int> OutStoreWaitSeconds = 30;
[MyConfigComment("温控器类型,0=壁挂王字壳温湿度变送器,1=妙昕温湿度记录仪")]
public static MyConfig<int> HumitureControllerType = 0;
[MyConfigComment("是否使用零点IO模块")]
public static MyConfig<bool> UseAIOBOX = true;
[MyConfigComment("伺服通讯波特率")]
public static MyConfig<int> ACBaudRate = 115200;
[MyConfigComment("料仓配置文件路径")]
public static MyConfig<string> Store_ConfigPath = "\\StoreConfig\\StoreConfig.csv";
[MyConfigComment("是否使用蜂鸣器")]
public static MyConfig<bool> UseBuzzer = false;
[MyConfigComment("料架点位配置文件路径")]
public static MyConfig<string> Shelf_Position_Config = "\\StoreConfig\\shelfPosition.csv";
[MyConfigComment("")]
public static MyConfig<int> Tool_P3_Offset = 7000;
[MyConfigComment("")]
public static MyConfig<int> Tool_P4_Offset = -2000;
[MyConfigComment("")]
public static MyConfig<int> Tool_P5_Offset = -2000;
[MyConfigComment("")]
public static MyConfig<int> Tool_P6_Offset = 7000;
[MyConfigComment("")]
public static MyConfig<int> Tool_TargetSpeed = 20;
[MyConfigComment("")]
public static MyConfig<int> Tool_TargetPosition = 1835000;
[MyConfigComment("AGV调度服务器IP")]
public static MyConfig<string> AgvServerIp = "172.16.77.76";
[MyConfigComment("条码数量")]
public static MyConfig<int> CodeCount = 3;
[MyConfigComment("扫码超时")]
public static MyConfig<int> ScanCodeTimeout = 3000;
[MyConfigComment("是否检测到料架自动入库")]
public static MyConfig<bool> AutoShelfInstore = true;
[MyConfigComment("是否启用入料口移门")]
public static MyConfig<bool> UseDoor = false;
[MyConfigComment("RFID端口")]
public static MyConfig<int> RfidServer_Port = 13000;
}
}