终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

235 linhas
8.5 KiB

  1. using BPA.Models;
  2. using BPASmartClient.Device;
  3. using System;
  4. using System.Collections.Concurrent;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPASmartClient.MorkTM
  10. {
  11. public class GVL_MorkTM: IStatus
  12. {
  13. /// <summary>
  14. /// 奶茶订单队列
  15. /// </summary>
  16. public ConcurrentQueue<OrderLocInfo> morkOrderPushesTeaWithMilk = new ConcurrentQueue<OrderLocInfo>();
  17. /// <summary>
  18. /// 当前正在制作的奶茶订单
  19. /// </summary>
  20. public OrderLocInfo CurrentOrderLoc = new OrderLocInfo();
  21. /// <summary>
  22. /// 奶茶配料的队列
  23. /// </summary>
  24. public Dictionary<int, float> RecipesPushes = new Dictionary<int, float>();
  25. /// <summary>
  26. /// PLC——转盘到达点位集合
  27. /// </summary>
  28. public List<bool> ReachPosions = new List<bool>();
  29. /// <summary>
  30. /// PLC-- 通道出料完成信号集合
  31. /// </summary>
  32. public Dictionary< int,bool> outMaterialCompletes = new Dictionary<int,bool>();
  33. [VariableMonitor("打开通道1", "M10.0", "400")]
  34. public bool UsePassageWay_1 { get; set; }
  35. [VariableMonitor("打开通道2", "M10.1", "401")]
  36. public bool UsePassageWay_2 { get; set; }
  37. [VariableMonitor("打开通道3", "M10.2", "402")]
  38. public bool UsePassageWay_3 { get; set; }
  39. [VariableMonitor("打开通道4", "M10.3", "403")]
  40. public bool UsePassageWay_4 { get; set; }
  41. [VariableMonitor("打开通道5", "M10.4", "404")]
  42. public bool UsePassageWay_5 { get; set; }
  43. [VariableMonitor("打开通道6", "M10.5", "405")]
  44. public bool UsePassageWay_6 { get; set; }
  45. [VariableMonitor("打开通道7", "M10.6", "406")]
  46. public bool UsePassageWay_7 { get; set; }
  47. [VariableMonitor("打开通道8", "M10.7", "407")]
  48. public bool UsePassageWay_8 { get; set; }
  49. [VariableMonitor("打开通道9", "M11.0", "408")]
  50. public bool UsePassageWay_9 { get; set; }
  51. [VariableMonitor("打开通道10", "M11.1", "409")]
  52. public bool UsePassageWay_10 { get; set; }
  53. [VariableMonitor("打开通道11", "M11.2", "410")]
  54. public bool UsePassageWay_11 { get; set; }
  55. [VariableMonitor("打开通道12", "M11.3", "411")]
  56. public bool UsePassageWay_12 { get; set; }
  57. [VariableMonitor("打开通道13", "M11.4", "412")]
  58. public bool UsePassageWay_13 { get; set; }
  59. [VariableMonitor("打开通道14", "M11.5", "413")]
  60. public bool UsePassageWay_14 { get; set; }
  61. [VariableMonitor("打开通道15", "M11.6", "414")]
  62. public bool UsePassageWay_15 { get; set; }
  63. [VariableMonitor("打开通道16", "M11.7", "415")]
  64. public bool UsePassageWay_16 { get; set; }
  65. [VariableMonitor("打开通道17", "M12.0", "416")]
  66. public bool UsePassageWay_17 { get; set; }
  67. [VariableMonitor("打开通道18", "M12.1", "417")]
  68. public bool UsePassageWay_18 { get; set; }
  69. [VariableMonitor("打开通道19", "M12.2", "418")]
  70. public bool UsePassageWay_19 { get; set; }
  71. [VariableMonitor("打开通道20", "M12.3", "419")]
  72. public bool UsePassageWay_20 { get; set; }
  73. [VariableMonitor("打开通道21", "M12.4", "420")]
  74. public bool UsePassageWay_21 { get; set; }
  75. [VariableMonitor("打开通道22", "M12.5", "421")]
  76. public bool UsePassageWay_22 { get; set; }
  77. [VariableMonitor("打开通道23", "M12.6", "422")]
  78. public bool UsePassageWay_23 { get; set; }
  79. [VariableMonitor("打开通道24", "M12.7", "423")]
  80. public bool UsePassageWay_24 { get; set; }
  81. [VariableMonitor("打开通道25", "M13.0", "424")]
  82. public bool UsePassageWay_25 { get; set; }
  83. [VariableMonitor("打开通道26", "M13.1", "425")]
  84. public bool UsePassageWay_26 { get; set; }
  85. [VariableMonitor("打开通道27", "M13.2", "426")]
  86. public bool UsePassageWay_27 { get; set; }
  87. [VariableMonitor("打开通道28", "M13.3", "427")]
  88. public bool UsePassageWay_28 { get; set; }
  89. [VariableMonitor("通道出料完成信号1", "M50.0", "720")]
  90. public bool OutMateraiComplete_1 { get; set; }
  91. [VariableMonitor("通道出料完成信号2", "M50.1", "721")]
  92. public bool OutMateraiComplete_2 { get; set; }
  93. [VariableMonitor("通道出料完成信号3", "M50.2", "722")]
  94. public bool OutMateraiComplete_3 { get; set; }
  95. [VariableMonitor("通道出料完成信号4", "M50.3", "723")]
  96. public bool OutMateraiComplete_4 { get; set; }
  97. [VariableMonitor("通道出料完成信号5", "M50.4", "724")]
  98. public bool OutMateraiComplete_5 { get; set; }
  99. [VariableMonitor("通道出料完成信号6", "M50.5", "725")]
  100. public bool OutMateraiComplete_6 { get; set; }
  101. [VariableMonitor("通道出料完成信号7", "M50.6", "726")]
  102. public bool OutMateraiComplete_7 { get; set; }
  103. [VariableMonitor("通道出料完成信号8", "M50.7", "727")]
  104. public bool OutMateraiComplete_8 { get; set; }
  105. [VariableMonitor("通道出料完成信号9", "M51.0", "728")]
  106. public bool OutMateraiComplete_9 { get; set; }
  107. [VariableMonitor("通道出料完成信号10", "M51.1", "729")]
  108. public bool OutMateraiComplete_10 { get; set; }
  109. [VariableMonitor("通道出料完成信号11", "M51.2", "730")]
  110. public bool OutMateraiComplete_11 { get; set; }
  111. [VariableMonitor("通道出料完成信号12", "M51.3", "731")]
  112. public bool OutMateraiComplete_12 { get; set; }
  113. [VariableMonitor("通道出料完成信号13", "M51.4", "732")]
  114. public bool OutMateraiComplete_13 { get; set; }
  115. [VariableMonitor("通道出料完成信号14", "M51.5", "733")]
  116. public bool OutMateraiComplete_14 { get; set; }
  117. [VariableMonitor("通道出料完成信号15", "M51.6", "734")]
  118. public bool OutMateraiComplete_15 { get; set; }
  119. [VariableMonitor("通道出料完成信号16", "M51.7", "735")]
  120. public bool OutMateraiComplete_16 { get; set; }
  121. [VariableMonitor("通道出料完成信号17", "M52.0", "736")]
  122. public bool OutMateraiComplete_17 { get; set; }
  123. [VariableMonitor("通道出料完成信号18", "M52.1", "737")]
  124. public bool OutMateraiComplete_18 { get; set; }
  125. [VariableMonitor("通道出料完成信号19", "M52.2", "738")]
  126. public bool OutMateraiComplete_19 { get; set; }
  127. [VariableMonitor("通道出料完成信号20", "M52.3", "739")]
  128. public bool OutMateraiComplete_20 { get; set; }
  129. [VariableMonitor("通道出料完成信号21", "M52.4", "740")]
  130. public bool OutMateraiComplete_21 { get; set; }
  131. [VariableMonitor("通道出料完成信号22", "M52.5", "741")]
  132. public bool OutMateraiComplete_22 { get; set; }
  133. [VariableMonitor("通道出料完成信号23", "M52.6", "742")]
  134. public bool OutMateraiComplete_23 { get; set; }
  135. [VariableMonitor("通道出料完成信号24", "M52.7", "743")]
  136. public bool OutMateraiComplete_24 { get; set; }
  137. [VariableMonitor("通道出料完成信号25", "M53.0", "744")]
  138. public bool OutMateraiComplete_25 { get; set; }
  139. [VariableMonitor("通道出料完成信号26", "M53.1", "744")]
  140. public bool OutMateraiComplete_26 { get; set; }
  141. [VariableMonitor("通道出料完成信号27", "M53.2", "745")]
  142. public bool OutMateraiComplete_27 { get; set; }
  143. [VariableMonitor("通道出料完成信号28", "M53.3", "746")]
  144. public bool OutMateraiComplete_28 { get; set; }
  145. [VariableMonitor("到达一号位置", "M14.0", "432")]
  146. public bool ReachPosion_1 { get; set; }
  147. [VariableMonitor("到达二号位置", "M14.1", "433")]
  148. public bool ReachPosion_2 { get; set; }
  149. [VariableMonitor("到达三号位置", "M14.2", "434")]
  150. public bool ReachPosion_3 { get; set; }
  151. [VariableMonitor("到达四号位置", "M14.3", "435")]
  152. public bool ReachPosion_4 { get; set; }
  153. [VariableMonitor("到达五号位置", "M14.4", "436")]
  154. public bool ReachPosion_5 { get; set; }
  155. [VariableMonitor("到达六号位置", "M14.5", "437")]
  156. public bool ReachPosion_6 { get; set; }
  157. [VariableMonitor("到达取料位置", "M14.6", "438")]
  158. public bool ReachOutPosion_0 { get; set; }
  159. }
  160. }