终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

243 lines
7.5 KiB

  1. using BPA.Models;
  2. using System;
  3. using System.Collections.Concurrent;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPASmartClient.MorkF
  9. {
  10. internal class GVL_MorkF
  11. {
  12. /// <summary>
  13. /// 初始化完成状态
  14. /// </summary>
  15. public bool InitialComplete { get; set; }
  16. /// <summary>
  17. /// 供盘 模组状态 忙碌1 空闲0
  18. /// </summary>
  19. public bool ProvidePlateModule { get; set; }
  20. /// <summary>
  21. /// 供盘完成状态
  22. /// </summary>
  23. public bool ProvidePlateComplete { get; set; }
  24. /// <summary>
  25. /// 清洗模组1状态 忙碌1 空闲0
  26. /// </summary>
  27. public bool CleanModule { get; set; }
  28. /// <summary>
  29. /// 清洗模组2状态 忙碌1 空闲0
  30. /// </summary>
  31. public bool SecondCleanModule { get; set; }
  32. /// <summary>
  33. /// 清洗模组1完成状态
  34. /// </summary>
  35. public bool CleanComplete { get; set; }
  36. // <summary>
  37. /// 清洗模组2完成状态
  38. /// </summary>
  39. public bool SecondCleanComplete { get; set; }
  40. /// <summary>
  41. /// 锅灶1状态 忙碌1 空闲0
  42. /// </summary>
  43. public bool KitchenOneStatus { get; set; }
  44. /// <summary>
  45. /// 锅灶1状态 忙碌1 空闲0
  46. /// </summary>
  47. public bool KitchenSecondStatus { get; set; }
  48. /// <summary>
  49. /// 注油完成状态
  50. /// </summary>
  51. public bool FallOilComplete { get; set; }
  52. /// <summary>
  53. /// 翻转机上升完成状态
  54. /// </summary>
  55. public bool TurnMachineUpComplete { get; set; }
  56. /// <summary>
  57. /// 翻转机下降完成状态
  58. /// </summary>
  59. public bool TurnMachineDownComplete { get; set; }
  60. /// <summary>
  61. /// 料仓旋转到位状态
  62. /// </summary>
  63. public bool MaterialArriveComplete { get; set; }
  64. /// <summary>
  65. /// 机器人空闲状态
  66. /// </summary>
  67. public bool RoobotIdle { get; set; }
  68. /// <summary>
  69. /// 放锅至灶台完成状态
  70. /// </summary>
  71. public bool PutPotToKitchenComlete { get; set; }
  72. /// <summary>
  73. /// 机器人取料完成状态
  74. /// </summary>
  75. public bool TakeMaterialComplete { get; set; }
  76. /// <summary>
  77. /// 机器人放锅至清洗台完成状态
  78. /// </summary>
  79. public bool PlaceRinseTableComplete { get; set; }
  80. /// <summary>
  81. /// 订单取配料队列
  82. /// </summary>
  83. public ConcurrentQueue<OrderLocInfo> TakeMaterialQueue = new ConcurrentQueue<OrderLocInfo>();
  84. /// <summary>
  85. /// 订单供盘队列
  86. /// </summary>
  87. public ConcurrentQueue<OrderLocInfo> TakePlateQueue = new ConcurrentQueue<OrderLocInfo>();
  88. /// <summary>
  89. /// 存放当前订单唯一ID
  90. /// </summary>
  91. public string CurrentOrderId { get; set; }
  92. /// <summary>
  93. /// PLC上升沿初始化触发信号
  94. /// </summary>
  95. public bool DevicDataInite { set; get; }
  96. /// <summary>
  97. /// 取素菜A料完成
  98. /// </summary>
  99. public bool TakeVegBurdenAComplete { get; set; }
  100. /// <summary>
  101. /// 取荤菜A料完成
  102. /// </summary>
  103. public bool TakeMeatBurdenAComplete { get; set; }
  104. /// <summary>
  105. /// 所有A料下锅完成
  106. /// </summary>
  107. public bool TakeAllBurdenAComplete { get; set; }
  108. /// <summary>
  109. /// 取素菜B料完成
  110. /// </summary>
  111. public bool TakeVegBurdenBComplete { get; set; }
  112. /// <summary>
  113. /// 所有B料下锅完成
  114. /// </summary>
  115. public bool TakeAllBurdenBComplete { get; set; }
  116. /// <summary>
  117. /// 取C料完成
  118. /// </summary>
  119. public bool TakeBurdenCComplete { get; set; }
  120. /// <summary>
  121. /// 除C料外,所有配料下锅标志
  122. /// </summary>
  123. public bool TakeAllBurdenComplete { get; set; }
  124. /// <summary>
  125. /// 锅到位 true:到位 false:未到位
  126. /// </summary>
  127. public bool PotInPlace { get; set; }
  128. /// <summary>
  129. /// true:烹饪完成
  130. /// </summary>
  131. public bool CookingComplete { get; set; }
  132. /// <summary>
  133. /// 注油完成
  134. /// </summary>
  135. public bool AddOilComplete { get; set; }
  136. /// <summary>
  137. /// 倒料完成
  138. /// </summary>
  139. public bool FallMaterialComplete { get; set; }
  140. /// <summary>
  141. /// 供盘互锁
  142. /// </summary>
  143. public bool TakePlateLock { get; set; }
  144. /// <summary>
  145. /// 取锅互锁
  146. /// </summary>
  147. public bool TakePotLock { get; set; }
  148. /// <summary>
  149. /// 取素菜A料互锁
  150. /// </summary>
  151. public bool TakeVegALock { get; set; }
  152. /// <summary>
  153. /// 取荤菜A料互锁
  154. /// </summary>
  155. public bool TakeMeatALock { get; set; }
  156. /// <summary>
  157. /// 取素菜B料互锁
  158. /// </summary>
  159. public bool TakeVegBLock { get; set; }
  160. /// <summary>
  161. /// 取C料互锁
  162. /// </summary>
  163. public bool TakeBurdenCLcok { get; set; }
  164. /// <summary>
  165. /// 烹饪任务互锁
  166. /// </summary>
  167. public bool CookingLock { get; set; }
  168. /// <summary>
  169. /// 转台互锁
  170. /// </summary>
  171. public bool TurnTableLock { get; set; }
  172. /// <summary>
  173. /// 主流程自锁
  174. /// </summary>
  175. public bool MainProcessExcuteLock { get; set; }
  176. /// <summary>
  177. /// 辅流程自锁
  178. /// </summary>
  179. public bool MinorProcessExcuteLock { get; set; }
  180. /// <summary>
  181. /// 开始取料标志
  182. /// </summary>
  183. public bool AllowTakeMaterial { get; set; }
  184. /// <summary>
  185. /// 主流程订单完成标志
  186. /// </summary>
  187. public bool MainOutMealComplete { get; set; }
  188. /// <summary>
  189. /// 辅流程订单完成标志
  190. /// </summary>
  191. public bool MinorOutMealComplete { get; set; }
  192. /// <summary>
  193. /// 主流程订单取料结束
  194. /// </summary>
  195. public bool MainOrderMaterialCom { get; set; }
  196. /// <summary>
  197. /// 主流程等待
  198. /// </summary>
  199. public bool MainProcessWait { get; set; }
  200. /// <summary>
  201. /// 辅流程等待
  202. /// </summary>
  203. public bool MinorProcessWait { get; set; }
  204. /// <summary>
  205. /// 辅流程订单取料结束
  206. /// </summary>
  207. public bool MinorOrderMaterialCom { get; set; }
  208. /// <summary>
  209. /// 存储订单对应流程对象
  210. /// </summary>
  211. public List<StirFryBom> listStirBom=new List<StirFryBom>();
  212. /// <summary>
  213. /// 下配料次数
  214. /// </summary>
  215. public int MaterialCount { get; set; }
  216. /// <summary>
  217. /// 允许执行辅流程标识
  218. /// </summary>
  219. public bool MinorProcessFlag { get; set; }
  220. /// <summary>
  221. /// 辅流程执行状态
  222. /// </summary>
  223. public bool MinorProessStatus { get; set; }
  224. /// <summary>
  225. /// 允许执行主流程标识
  226. /// </summary>
  227. public bool MainProcessFlag { get; set; } = true;
  228. /// <summary>
  229. /// 主流程执行状态
  230. /// </summary>
  231. public bool MainProcessStatus { get; set; }
  232. }
  233. }