wangxinhui
2024-09-23 a3eb67538c4716aef9967f1e6301720cce095e3c
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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_Common
{
 //4    10004    192.168.10.111    502    True False   模块1    1000,8600    16,16    0,8000    16,16
//这个是我数块的IP跟模块配置了的DI DO的数量已经modbus的地址位
//这个是数据存储的类
  public class Wireless_Entity
    {
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int Devid { get; set; }
        /// <summary>
        /// 无线模块IP地址
        /// </summary>
        public string WirelessIP { get; set; }
        /// <summary>
        /// 地址号
        /// </summary>
        public int WirelessNum { get; set; } = 0;
        /// <summary>
        /// 是否可以使用
        /// </summary>
        public bool Available { get; set; }
        /// <summary>
        /// 否为呼叫器 是为门控制
        /// </summary>
        public bool IsIOmodule { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }
 
        public string DIAdds { get; set; }
        public string DICounts { get; set; }
 
        public string DOAdds { get; set; }
        public string DOCounts { get; set; }
 
        //  public int DIlength { get; set; }
        //    public int DOlength { get; set; }
        public Wireless_Entity Clone()
        {
            Wireless_Entity t = new Wireless_Entity()
            {
                Devid = this.Devid,
                WirelessIP = this.WirelessIP,
                WirelessNum = this.WirelessNum,
                Available = this.Available,
                Remark = this.Remark,
            };
            return t;
        }
    }
}