|
123456789101112131415161718192021222324252627282930 |
- 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; }
- /// <summary>
- ///
- /// </summary>
- /// <param name="name">变量名</param>
- /// <param name="notes">描述</param>
- /// <param name="plcaddress">plc地址</param>
- /// <param name="modbustcpaddress">modbustcp地址</param>
- public VariableAttribute(string name,string notes,string plcaddress,string modbustcpaddress)
- {
- VarName = name;
- Notes = notes;
- PLCAddress = plcaddress;
- ModbusTcpAddress = modbustcpaddress;
- }
- }
- }
|