wenxiangchao
4 天以前 2e889843b4c171f2d6ad8e0d53084040703d11f6
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
using HMI.Core;
using HMI.Core.Entity;
 
namespace Plugin.DODriverControl.Entity
{
    public enum ControlType
    {
        BOOL = 0,
        BYTE = 1,
        INT = 2,
        UINT = 3,
        DINT = 4,
        UDINT = 5,
        REAL = 6,
        LREAL = 7,
        TIME = 8,
        WORD = 9,
        STRING = 10,
        WSTRING = 11,
        PULSE = 12
    }
 
    public enum DIOType
    {
        DI = 0,
        DO = 1
    }
    public class DIOData : SelectBase
    {
        /// <summary>
        /// 控制点名称
        /// </summary>
        [ExcelColumn("doc.name")]
        public string Name { get; set; }
 
        [ExcelColumn("DI/O")]
        public DIOType Dio { get; set; }
 
        /// <summary>
        /// 地址
        /// </summary>
        [ExcelColumn("doc.address")]
        public string Address { get; set; }
 
        //[ExcelColumn("doc.readOnly")]
        //public bool ReadOnly { get; set; }
 
        /// <summary>
        /// 分组名称
        /// </summary>
        //[ExcelColumn("doc.group")]
        public string Group { get; set; }
 
        /// <summary>
        /// 按下值
        /// </summary>
        [ExcelColumn("doc.pressDownValue")]
        public string PressDownValue { get; set; }
 
        /// <summary>
        /// 抬起值
        /// </summary>
        [ExcelColumn("doc.pressUpValue")]
        public string PressUpValue { get; set; }
 
        /// <summary>
        /// 按下值
        /// </summary>
        [ExcelColumn("doc.pressDownText")]
        public string PressDownText { get; set; }
 
        /// <summary>
        /// 抬起值
        /// </summary>
        [ExcelColumn("doc.pressUpText")]
        public string PressUpText { get; set; }
 
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }
 
        /// <summary>
        /// 控制类型
        /// </summary>
        [ExcelColumn("doc.controlType")]
        public ControlType ControlType { get; set; }
    }
}