终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 rivejä
1.0 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.Device
  7. {
  8. public class VariableMonitorAttribute : Attribute
  9. {
  10. /// <summary>
  11. /// 变量描述
  12. /// </summary>
  13. /// <param name="Notes">描述</param>
  14. /// <param name="PLCAddress">PLC 地址</param>
  15. /// <param name="ModbusTcpAddress">Modbus TCP 地址</param>
  16. public VariableMonitorAttribute(string Notes, string PLCAddress = "", string ModbusTcpAddress = "")
  17. {
  18. this.PLCAddress = PLCAddress;
  19. this.ModbusTcpAddress = ModbusTcpAddress;
  20. this.Notes = Notes;
  21. }
  22. /// <summary>
  23. /// PLC 地址
  24. /// </summary>
  25. public string PLCAddress { get; set; }
  26. /// <summary>
  27. /// Modbus TCP 地址
  28. /// </summary>
  29. public string ModbusTcpAddress { get; set; }
  30. /// <summary>
  31. /// 描述
  32. /// </summary>
  33. public string Notes { get; set; }
  34. }
  35. }