XLRStore_Config.cs
2.0 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
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.LoadCSVLibrary
{
/// <summary>
/// 流水线配置
/// </summary>
public class XLRStore_Config : DeviceConfig
{
public XLRStore_Config()
: base()
{
}
public XLRStore_Config(int id, string cid, string type, string filepath)
: base(id, cid, LoadCSVLibrary.DeviceType.Store, filepath)
{
}
public static Dictionary<int, ConfigClampJaw> ClampJawMap = new Dictionary<int, ConfigClampJaw>();
/// <summary>
/// CLAW,1,移栽D1_夹爪,CLAW_Input,0,COM13,,100,500,500,60,6,20,15,15,15,20,20,15
/// </summary>
[ConfigProAttribute("CLAW_Input")]
public ConfigClampJaw CLAW_Input { get; set; }
/// <summary>
/// PRO,0,当多久没操作时流水线休眠(秒),Sleep_MSeconds,600,,,,,,,,,,,,,,
/// </summary>
[ConfigProAttribute("Sleep_MSeconds")]
public int Sleep_MSeconds { get; set; }
/// <summary>
/// PRO,0,气压检测信号关闭需要持续的时间,Airpressure_CheckSeconds,600,,,,,,,,,,,,,,
/// </summary>
[ConfigProAttribute("Airpressure_CheckSeconds")]
public int Airpressure_CheckSeconds { get; set; }
/// <summary>
/// PRO,0,IO信号超时时间(秒),IOSingle_TimerOut,15,,,,,,,,,,,,,,
/// </summary>
[ConfigProAttribute("IOSingle_TimerOut")]
public int IOSingle_TimerOut { get; set; }
protected override void initMustHavePro()
{
MustHaveDIList = new List<string>();
MustHaveDOList = new List<string>();
}
public ushort GetDOLength(string iP)
{
return 16;
}
public ushort GetDILength(string ioIp)
{
return 16;
}
}
}