using System;
using System.Collections.Generic;
namespace StandardScene.ExtendDevice.Door
{
///
/// 门控制器模型
///
public class DoorControllerModel
{
///
/// 控制器索引
///
public int Index { get; set; } = 0;
///
/// IP地址
///
public string Ip { get; set; } = string.Empty;
///
/// 端口
///
public int Port { get; set; } = 502;
///
/// 控制器类型(类名)
///
public string Type { get; set; } = string.Empty;
///
/// 门列表
///
public List Doors { get; set; } = new List();
}
///
/// 门模型
///
public class DoorModel
{
///
/// 门索引
///
public int Index { get; set; } = 0;
///
/// 开关控制信号地址(Modbus 线圈地址)
///
public ushort ControlAddress { get; set; } = 0;
///
/// 开到位信号地址(Modbus 线圈地址)
///
public ushort OpenStatusAddress { get; set; } = 0;
///
/// 禁止对该门下发任何控制指令(打开或关闭)。
/// 为 true 时,门控逻辑不会对该门调用 WriteDoorControl。
///
public bool NoControl { get; set; } = false;
}
}