Data.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 float WorkingOutput { get; set; }
  31. public AlarmType AlarmType { get; set; }
  32. }
  33. public struct ST_CHANNEL
  34. {
  35. public byte Mini8Index { get; set; }
  36. public byte ChannelIndex { get; set; }
  37. public float PV { get; set; }
  38. public float Caps { get; set; }
  39. public float Floor { get; set; }
  40. public float WorkingOutput { get; set; }
  41. }
  42. public class ST_CHANNEL_Notify
  43. {
  44. public byte Mini8Index { get; set; }
  45. public byte ChannelIndex { get; set; }
  46. public float PV { get; set; }
  47. public float Caps { get; set; }
  48. public float Floor { get; set; }
  49. public float WorkingOutput { get; set; }
  50. }
  51. public class ST_ALARM_Notify
  52. {
  53. public byte Mini8Index { get; set; }
  54. public byte ChannelIndex { get; set; }
  55. public float PV { get; set; }
  56. public float Caps { get; set; }
  57. public float Floor { get; set; }
  58. public float WorkingOutput { get; set; }
  59. public AlarmType AlarmType { get; set; }
  60. public HeaterType HeaterType { get; set; }
  61. }