using HMI.Core.Entity;
using HMI.Core;
namespace Plugin.DOControl.Entity
{
public enum ControlType
{
BOOL = 0,
BYTE = 1,
INT = 2,
UINT = 3,
DINT = 4,
UDINT = 5,
REAL = 6,
LREAL = 7,
TIME = 8,
WORD = 9,
STRING = 10,
WSTRING = 11,
PULSE = 12
}
public class DOControlData : SelectBase
{
///
/// 分组名称
///
[ExcelColumn("doc.group")]
public string Group { get; set; }
///
/// 控制点名称
///
[ExcelColumn("doc.name")]
public string Name { get; set; }
///
/// 地址
///
[ExcelColumn("doc.address")]
public string Address { get; set; }
[ExcelColumn("doc.readOnly")]
public bool ReadOnly { get; set; }
///
/// 按下值
///
[ExcelColumn("doc.pressDownValue")]
public string PressDownValue { get; set; }
///
/// 抬起值
///
[ExcelColumn("doc.pressUpValue")]
public string PressUpValue { get; set; }
///
/// 值格式
///
public string ValueFormat { get; set; }
///
/// 是否启用
///
public bool Enable { get; set; }
///
/// 控制类型
///
[ExcelColumn("doc.controlType")]
public ControlType ControlType { get; set; }
}
}