终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
949 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace FryPot_DosingSystem.Attributes
  7. {
  8. internal class VariableAttribute:Attribute
  9. {
  10. public string VarName { get; set; }
  11. public string Notes { get; set; }
  12. public string PLCAddress { get; set; }
  13. public string ModbusTcpAddress { get; set; }
  14. /// <summary>
  15. ///
  16. /// </summary>
  17. /// <param name="name">变量名</param>
  18. /// <param name="notes">描述</param>
  19. /// <param name="plcaddress">plc地址</param>
  20. /// <param name="modbustcpaddress">modbustcp地址</param>
  21. public VariableAttribute(string name,string notes,string plcaddress,string modbustcpaddress)
  22. {
  23. VarName = name;
  24. Notes = notes;
  25. PLCAddress = plcaddress;
  26. ModbusTcpAddress = modbustcpaddress;
  27. }
  28. }
  29. }