Data.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. namespace RTCommunicatorBase;
  3. public class DataQueryCondition
  4. {
  5. public DateTime StartTime { get; set; }
  6. public DateTime EndTime { get; set; }
  7. public byte Mini8Index { get; set; }
  8. public byte ChannelIndex { get; set; }
  9. }
  10. public enum AlarmType
  11. {
  12. Undefined = 0,
  13. CapsOverFlow = 1,
  14. FloorOverFlow = 2,
  15. TcBroken = 3
  16. }
  17. public enum HeaterType
  18. {
  19. Undefined,
  20. GaseLine,
  21. ForeLine,
  22. }
  23. public struct ST_ALARM
  24. {
  25. public byte Mini8Index { get; set; }
  26. public byte ChannelIndex { get; set; }
  27. public float PV { get; set; }
  28. public float Caps { get; set; }
  29. public float Floor { get; set; }
  30. public AlarmType AlarmType { get; set; }
  31. }
  32. public struct ST_CHANNEL
  33. {
  34. public byte Mini8Index { get; set; }
  35. public byte ChannelIndex { get; set; }
  36. public float PV { get; set; }
  37. public float Caps { get; set; }
  38. public float Floor { get; set; }
  39. }
  40. public class ST_CHANNEL_Notify
  41. {
  42. public byte Mini8Index { get; set; }
  43. public byte ChannelIndex { get; set; }
  44. public float PV { get; set; }
  45. public float Caps { get; set; }
  46. public float Floor { get; set; }
  47. }
  48. public class ST_ALARM_Notify
  49. {
  50. public byte Mini8Index { get; set; }
  51. public byte ChannelIndex { get; set; }
  52. public float PV { get; set; }
  53. public float Caps { get; set; }
  54. public float Floor { get; set; }
  55. public AlarmType AlarmType { get; set; }
  56. public HeaterType HeaterType { get; set; }
  57. }