PlcRobotParameter.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace TeamAAS_VP.Models
  8. {
  9. public class PlcRobotParameter : BindableBase
  10. {
  11. private CommandParameter _CommandParameter=new CommandParameter();
  12. public CommandParameter CommandParameter
  13. {
  14. get { return _CommandParameter; }
  15. set { SetProperty(ref _CommandParameter, value); }
  16. }
  17. private StateParameter _StateParameter=new StateParameter();
  18. public StateParameter StateParameter
  19. {
  20. get { return _StateParameter; }
  21. set { SetProperty(ref _StateParameter, value); }
  22. }
  23. }
  24. public class CommandParameter : BindableBase
  25. {
  26. private string _X;
  27. public string X
  28. {
  29. get { return _X; }
  30. set { SetProperty(ref _X, value); }
  31. }
  32. private string _Y;
  33. public string Y
  34. {
  35. get { return _Y; }
  36. set { SetProperty(ref _Y, value); }
  37. }
  38. private string _Z;
  39. public string Z
  40. {
  41. get { return _Z; }
  42. set { SetProperty(ref _Z, value); }
  43. }
  44. private string _U;
  45. public string U
  46. {
  47. get { return _U; }
  48. set { SetProperty(ref _U, value); }
  49. }
  50. private string _Speed;
  51. public string Speed
  52. {
  53. get { return _Speed; }
  54. set { SetProperty(ref _Speed, value); }
  55. }
  56. private string _Accel;
  57. public string Accel
  58. {
  59. get { return _Accel; }
  60. set { SetProperty(ref _Accel, value); }
  61. }
  62. private string _WaitVacuumOn;
  63. public string WaitVacuumOn
  64. {
  65. get { return _WaitVacuumOn; }
  66. set { SetProperty(ref _WaitVacuumOn, value); }
  67. }
  68. private string _WaitVacuumOff;
  69. public string WaitVacuumOff
  70. {
  71. get { return _WaitVacuumOff; }
  72. set { SetProperty(ref _WaitVacuumOff, value); }
  73. }
  74. private string _Limz;
  75. public string Limz
  76. {
  77. get { return _Limz; }
  78. set { SetProperty(ref _Limz, value); }
  79. }
  80. private string _ExecuteMove;
  81. public string ExecuteMove
  82. {
  83. get { return _ExecuteMove; }
  84. set { SetProperty(ref _ExecuteMove, value); }
  85. }
  86. private string _VacuumOn;
  87. public string VacuumOn
  88. {
  89. get { return _VacuumOn; }
  90. set { SetProperty(ref _VacuumOn, value); }
  91. }
  92. private string _VacuumOff;
  93. public string VacuumOff
  94. {
  95. get { return _VacuumOff; }
  96. set { SetProperty(ref _VacuumOff, value); }
  97. }
  98. private string _Distance;
  99. public string Distance
  100. {
  101. get { return _Distance; }
  102. set { SetProperty(ref _Distance, value); }
  103. }
  104. private string _JogCmd;
  105. public string JogCmd
  106. {
  107. get { return _JogCmd; }
  108. set { SetProperty(ref _JogCmd, value); }
  109. }
  110. }
  111. public class StateParameter : BindableBase
  112. {
  113. private string _X;
  114. public string X
  115. {
  116. get { return _X; }
  117. set { SetProperty(ref _X, value); }
  118. }
  119. private string _Y;
  120. public string Y
  121. {
  122. get { return _Y; }
  123. set { SetProperty(ref _Y, value); }
  124. }
  125. private string _Z;
  126. public string Z
  127. {
  128. get { return _Z; }
  129. set { SetProperty(ref _Z, value); }
  130. }
  131. private string _U;
  132. public string U
  133. {
  134. get { return _U; }
  135. set { SetProperty(ref _U, value); }
  136. }
  137. private string _MoveFinish;
  138. public string MoveFinish
  139. {
  140. get { return _MoveFinish; }
  141. set { SetProperty(ref _MoveFinish, value); }
  142. }
  143. private string _Error;
  144. public string Error
  145. {
  146. get { return _Error; }
  147. set { SetProperty(ref _Error, value); }
  148. }
  149. private string _VacuumOn;
  150. public string VacuumOn
  151. {
  152. get { return _VacuumOn; }
  153. set { SetProperty(ref _VacuumOn, value); }
  154. }
  155. private string _VacuumOff;
  156. public string VacuumOff
  157. {
  158. get { return _VacuumOff; }
  159. set { SetProperty(ref _VacuumOff, value); }
  160. }
  161. }
  162. }