唐召明
authored
|
1
|
using FreeSql.DataAnnotations;
|
唐召明
authored
|
2
|
using HHECS.DataContract;
|
唐召明
authored
|
3
4
|
using System.ComponentModel.DataAnnotations;
|
唐召明
authored
|
5
|
namespace HHECS.DAQClient.Model
|
唐召明
authored
|
6
|
{
|
唐召明
authored
|
7
8
|
[Table(Name = "communicationConfig")]
public class CommunicationConfig : BaseEntity<int>
|
唐召明
authored
|
9
|
{
|
唐召明
authored
|
10
11
12
|
/// <summary>
/// 编号
/// </summary>
|
唐召明
authored
|
13
14
|
public string Code { get; set; } = null!;
|
唐召明
authored
|
15
16
17
|
/// <summary>
/// 名称
/// </summary>
|
唐召明
authored
|
18
19
|
public string Name { get; set; } = null!;
|
唐召明
authored
|
20
21
22
|
/// <summary>
/// 类型
/// </summary>
|
唐召明
authored
|
23
|
[Column(MapType = typeof(string))]
|
唐召明
authored
|
24
25
|
public CommunicationTypeConst CommunicationType { get; set; } = CommunicationTypeConst.None;
|
唐召明
authored
|
26
27
28
|
/// <summary>
/// IP地址
/// </summary>
|
唐召明
authored
|
29
|
/// <remarks><see cref="Equipment"/> 使用IpAddress匹配通讯配置</remarks>
|
唐召明
authored
|
30
31
|
public string IpAddress { get; set; } = null!;
|
唐召明
authored
|
32
33
34
|
/// <summary>
/// 端口号
/// </summary>
|
唐召明
authored
|
35
36
|
public int Port { get; set; }
|
唐召明
authored
|
37
|
/// <summary>
|
唐召明
authored
|
38
|
/// 是否禁用
|
唐召明
authored
|
39
|
/// </summary>
|
唐召明
authored
|
40
|
public bool Disable { get; set; }
|
唐召明
authored
|
41
|
|
唐召明
authored
|
42
43
44
|
/// <summary>
/// 备注
/// </summary>
|
唐召明
authored
|
45
|
public string Remark { get; set; }
|
唐召明
authored
|
46
47
48
49
|
public DateTime? CreateTIme { get; set; }
public DateTime? UpdatedTime { get; set; }
|
唐召明
authored
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
}
/// <summary>
/// 通讯方式
/// </summary>
public enum CommunicationTypeConst
{
/// <summary>
/// 无
/// </summary>
[Display(Name = "")]
None = 0,
/// <summary>
/// Kuka 机器人代理
/// </summary>
[Display(Name = "Kuka 机器人代理")]
|
唐召明
authored
|
67
|
KukaVarProxy = 1,
|
唐召明
authored
|
68
69
70
71
72
|
/// <summary>
/// Tcp 客户端
/// </summary>
[Display(Name = "Tcp 客户端")]
|
唐召明
authored
|
73
|
TcpClient = 2,
|
唐召明
authored
|
74
75
76
77
78
|
/// <summary>
/// Fanuc 机器人
/// </summary>
[Display(Name = "Fanuc")]
|
唐召明
authored
|
79
|
Fanuc = 3,
|
唐召明
authored
|
80
81
|
[Display(Name = "Siemens S1500")]
|
唐召明
authored
|
82
|
Siemens_S1500 = 4,
|
唐召明
authored
|
83
84
|
[Display(Name = "Siemens S1200")]
|
唐召明
authored
|
85
|
Siemens_S1200 = 5,
|
唐召明
authored
|
86
87
|
}
}
|