using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.Device { public class VariableMonitorAttribute : Attribute { /// /// 变量描述 /// /// 描述 /// PLC 地址 /// Modbus TCP 地址 public VariableMonitorAttribute(string Notes, string PLCAddress = "", string ModbusTcpAddress = "") { this.PLCAddress = PLCAddress; this.ModbusTcpAddress = ModbusTcpAddress; this.Notes = Notes; } /// /// PLC 地址 /// public string PLCAddress { get; set; } /// /// Modbus TCP 地址 /// public string ModbusTcpAddress { get; set; } /// /// 描述 /// public string Notes { get; set; } } }