终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

243 行
8.8 KiB

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