using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FryPot_DosingSystem.Attributes { internal class VariableAttribute:Attribute { public string VarName { get; set; } public string Notes { get; set; } public string PLCAddress { get; set; } public string ModbusTcpAddress { get; set; } /// /// /// /// 变量名 /// 描述 /// plc地址 /// modbustcp地址 public VariableAttribute(string name,string notes,string plcaddress,string modbustcpaddress) { VarName = name; Notes = notes; PLCAddress = plcaddress; ModbusTcpAddress = modbustcpaddress; } } }