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
| using HMI.Core;
|
| namespace PLCHelper.Entity
| {
| public enum PLCTagType
| {
| BOOL,
| SHORT,
| USHORT,
| INT,
| FLOAT
| }
|
| public enum ConnectionType
| {
| MODBUS,
| PLC_S7,
| NXI_5010
| }
|
| public class PLCTagData
| {
| [ExcelColumn("名称")]
| public string Name { get; set; }
|
| [ExcelColumn("连接类型")]
| public ConnectionType ConnectionType { get; set; } = ConnectionType.PLC_S7;
|
| [ExcelColumn("地址")]
| public string Address { get; set; }
| [ExcelColumn("类型")]
| public PLCTagType Type { get; set; }
| [ExcelColumn("长度")]
| public int Length { get; set; }
| [ExcelColumn("描述")]
| public string Description { get; set; }
| }
| }
|
|