JLChen
2020-05-28 04bd96cbf5d12a4e4b116d2b05fd0d05ea81ee23
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Shared
{
    /// <summary>
    /// 继电器门锁
    /// 控制开锁关锁,发窗帘控制命令
    /// 读门锁状态,发干接点读状态命令
    /// </summary>
    [System.Serializable]
    public class LightDoorLock : Common
    {
        public LightDoorLock ()
        {
            this.Type = DeviceType.DoorLockRelay;
            DeviceTextID = 10104;
        }
 
        /// <summary>
        /// 当前状态 0:关、门锁关闭 1:开、门锁打开
        /// 0 ==OFF(关、闭合)干接点连接
        /// 1 ==ON(开、断开) 干接点断开
        /// </summary>
        public byte CurrentStatus = 0;
 
        /// <summary>
        /// 读状态的干节点子网号
        /// </summary>
        public byte ReadStatusSubnetID;
 
        /// <summary>
        /// 读状态的干节点设备号
        /// </summary>
        public byte ReadStatusDeviceID;
 
        /// <summary>
        /// 读状态的干节点回路号
        /// </summary>
        public byte ReadStatusLoopID;
 
        ///// <summary>
        ///// 读状态的干节点区号
        ///// </summary>
        //public byte ReadStatusAreaCodeID;
    }
}