Mini8Data.cs 844 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Xml.Serialization;
  2. namespace HardwareData;
  3. [XmlInclude(typeof(Mini8Data))]
  4. public class Mini8Data
  5. {
  6. public byte Index { get; set; }
  7. public string? Name { get; set; }
  8. public bool Enable { get; set; }
  9. }
  10. public class Mini8Address
  11. {
  12. public byte Index { get; set; }
  13. public string? Address { get; set; }
  14. public int Port { get; set; }
  15. public int Interval { get; set; }
  16. public ushort GroupeCount { get; set; }
  17. public ushort TotalCount { get; set; }
  18. public ushort StartIndex { get; set; }
  19. public ushort LimitCount { get; set; }
  20. public ushort LimitStartIndex { get; set; }
  21. }
  22. public class PLCAddress
  23. {
  24. public string? IPAddress { get; set; }
  25. public int Port { get; set; }
  26. public int Interval { get; set; }
  27. public string HeartBeatAddress { get; set; } = string.Empty;
  28. }