Polling.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using UAS_PLCDataReader.DataOperate;
  6. namespace UAS_PLCDataReader.Entity
  7. {
  8. class Polling
  9. {
  10. private string sendRadix;
  11. private string deviceCode;
  12. private string deviceName;
  13. private string iP;
  14. private string port;
  15. private int interval;
  16. private int id;
  17. private bool enable;
  18. private DataHelper dh;
  19. private string[] commandCode;
  20. public string DeviceCode
  21. {
  22. get
  23. {
  24. return deviceCode;
  25. }
  26. set
  27. {
  28. deviceCode = value;
  29. }
  30. }
  31. public string IP
  32. {
  33. get
  34. {
  35. return iP;
  36. }
  37. set
  38. {
  39. iP = value;
  40. }
  41. }
  42. public string Port
  43. {
  44. get
  45. {
  46. return port;
  47. }
  48. set
  49. {
  50. port = value;
  51. }
  52. }
  53. public int Interval
  54. {
  55. get
  56. {
  57. return interval;
  58. }
  59. set
  60. {
  61. interval = value;
  62. }
  63. }
  64. public bool Enable
  65. {
  66. get
  67. {
  68. return enable;
  69. }
  70. set
  71. {
  72. enable = value;
  73. }
  74. }
  75. public int Id
  76. {
  77. get
  78. {
  79. return id;
  80. }
  81. set
  82. {
  83. id = value;
  84. }
  85. }
  86. public DataHelper Dh
  87. {
  88. get
  89. {
  90. return dh;
  91. }
  92. set
  93. {
  94. dh = value;
  95. }
  96. }
  97. public string SendRadix
  98. {
  99. get
  100. {
  101. return sendRadix;
  102. }
  103. set
  104. {
  105. sendRadix = value;
  106. }
  107. }
  108. public string[] CommandCode
  109. {
  110. get
  111. {
  112. return commandCode;
  113. }
  114. set
  115. {
  116. commandCode = value;
  117. }
  118. }
  119. public string DeviceName
  120. {
  121. get
  122. {
  123. return deviceName;
  124. }
  125. set
  126. {
  127. deviceName = value;
  128. }
  129. }
  130. }
  131. }