终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

297 righe
9.4 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. /// 锅灶1注油完成状态
  50. /// </summary>
  51. public bool FallOilComplete { get; set; }
  52. /// <summary>
  53. /// 锅灶2注油完成状态
  54. /// </summary>
  55. public bool SecondOilComplete { get; set; }
  56. /// <summary>
  57. /// 锅灶1翻转机上升完成状态
  58. /// </summary>
  59. public bool TurnMachineUpComplete { get; set; }
  60. /// <summary>
  61. /// 锅灶2翻转机上升完成状态
  62. /// </summary>
  63. public bool SecondTurnMachineUpComplete { get; set; }
  64. /// <summary>
  65. /// 锅灶1翻转机下降完成状态
  66. /// </summary>
  67. public bool TurnMachineDownComplete { get; set; }
  68. /// <summary>
  69. /// 锅灶2翻转机下降完成状态
  70. /// </summary>
  71. public bool SecondTurnMachineDownComplete { get; set; }
  72. /// <summary>
  73. /// 料仓旋转到位状态
  74. /// </summary>
  75. public bool MaterialArriveComplete { get; set; }
  76. /// <summary>
  77. /// 机器人空闲状态
  78. /// </summary>
  79. public bool RoobotIdle { get; set; }
  80. /// <summary>
  81. /// 放锅至灶台1完成状态
  82. /// </summary>
  83. public bool PutPotToKitchenComlete { get; set; }
  84. /// <summary>
  85. /// 放锅至灶台2完成状态
  86. /// </summary>
  87. public bool PutPotToSecondKitchenComlete { get; set; }
  88. /// <summary>
  89. /// 机器人取料完成状态
  90. /// </summary>
  91. public bool TakeMaterialComplete { get; set; }
  92. /// <summary>
  93. /// 机器人放锅至清洗台1完成状态
  94. /// </summary>
  95. public bool PlaceRinseTableComplete { get; set; }
  96. /// <summary>
  97. /// 机器人放锅至清洗台2完成状态
  98. /// </summary>
  99. public bool PlaceRinseSecondTableComplete { get; set; }
  100. /// <summary>
  101. /// 订单取配料队列
  102. /// </summary>
  103. public ConcurrentQueue<OrderLocInfo> TakeMaterialQueue = new ConcurrentQueue<OrderLocInfo>();
  104. /// <summary>
  105. /// 订单供盘队列
  106. /// </summary>
  107. public ConcurrentQueue<OrderLocInfo> TakePlateQueue = new ConcurrentQueue<OrderLocInfo>();
  108. /// <summary>
  109. /// 存放主流程当前订单唯一ID
  110. /// </summary>
  111. public string MainCurrentOrderId { get; set; }
  112. /// <summary>
  113. /// 存放辅流程当前订单唯一ID
  114. /// </summary>
  115. public string MinorCurrentOrderId { get; set; }
  116. /// <summary>
  117. /// PLC上升沿初始化触发信号
  118. /// </summary>
  119. public bool DevicDataInite { set; get; }
  120. /// <summary>
  121. /// 取素菜A料完成
  122. /// </summary>
  123. public bool TakeVegBurdenAComplete { get; set; }
  124. /// <summary>
  125. /// 取荤菜A料完成
  126. /// </summary>
  127. public bool TakeMeatBurdenAComplete { get; set; }
  128. /// <summary>
  129. /// 所有A料下锅完成
  130. /// </summary>
  131. public bool TakeAllBurdenAComplete { get; set; }
  132. /// <summary>
  133. /// 取素菜B料完成
  134. /// </summary>
  135. public bool TakeVegBurdenBComplete { get; set; }
  136. /// <summary>
  137. /// 所有B料下锅完成
  138. /// </summary>
  139. public bool TakeAllBurdenBComplete { get; set; }
  140. /// <summary>
  141. /// 取C料完成
  142. /// </summary>
  143. public bool TakeBurdenCComplete { get; set; }
  144. /// <summary>
  145. /// 除C料外,所有配料下锅标志
  146. /// </summary>
  147. public bool TakeAllBurdenComplete { get; set; }
  148. /// <summary>
  149. /// 锅1到位 true:到位 false:未到位
  150. /// </summary>
  151. public bool PotInPlace { get; set; }
  152. /// <summary>
  153. /// 锅2到位 true:到位 false:未到位
  154. /// </summary>
  155. public bool SecondPotInPlace { get; set; }
  156. /// <summary>
  157. /// true:烹饪完成
  158. /// </summary>
  159. public bool CookingComplete { get; set; }
  160. /// <summary>
  161. /// 注油完成
  162. /// </summary>
  163. public bool AddOilComplete { get; set; }
  164. /// <summary>
  165. /// 1号锅倒料完成
  166. /// </summary>
  167. public bool FallMaterialComplete { get; set; }
  168. /// <summary>
  169. /// 2号锅倒料完成
  170. /// </summary>
  171. public bool SecondFallMaterialComplete { get; set; }
  172. /// <summary>
  173. /// 供盘互锁
  174. /// </summary>
  175. public bool TakePlateLock { get; set; }
  176. /// <summary>
  177. /// 取锅互锁
  178. /// </summary>
  179. public bool TakePotLock { get; set; }
  180. /// <summary>
  181. /// 取素菜A料互锁
  182. /// </summary>
  183. public bool TakeVegALock { get; set; }
  184. /// <summary>
  185. /// 取荤菜A料互锁
  186. /// </summary>
  187. public bool TakeMeatALock { get; set; }
  188. /// <summary>
  189. /// 取素菜B料互锁
  190. /// </summary>
  191. public bool TakeVegBLock { get; set; }
  192. /// <summary>
  193. /// 取C料互锁
  194. /// </summary>
  195. public bool TakeBurdenCLcok { get; set; }
  196. /// <summary>
  197. /// 烹饪任务互锁
  198. /// </summary>
  199. public bool CookingLock { get; set; }
  200. /// <summary>
  201. /// 转台互锁
  202. /// </summary>
  203. public bool TurnTableLock { get; set; }
  204. /// <summary>
  205. /// 主流程自锁
  206. /// </summary>
  207. public bool MainProcessExcuteLock { get; set; }
  208. /// <summary>
  209. /// 辅流程自锁
  210. /// </summary>
  211. public bool MinorProcessExcuteLock { get; set; }
  212. /// <summary>
  213. /// 开始取料标志
  214. /// </summary>
  215. public bool AllowTakeMaterial { get; set; }
  216. /// <summary>
  217. /// 主流程订单完成标志
  218. /// </summary>
  219. public bool MainOutMealComplete { get; set; }
  220. /// <summary>
  221. /// 辅流程订单完成标志
  222. /// </summary>
  223. public bool MinorOutMealComplete { get; set; }
  224. /// <summary>
  225. /// 主流程订单取料结束
  226. /// </summary>
  227. public bool MainOrderMaterialCom { get; set; }
  228. /// <summary>
  229. /// 主流程是否取料判断
  230. /// </summary>
  231. public bool MainHasTakeMaterial { get; set; }
  232. /// <summary>
  233. /// 主流程等待
  234. /// </summary>
  235. public bool MainProcessWait { get; set; }
  236. /// <summary>
  237. /// 辅流程等待
  238. /// </summary>
  239. public bool MinorProcessWait { get; set; }
  240. /// <summary>
  241. /// 辅流程订单取料结束
  242. /// </summary>
  243. public bool MinorOrderMaterialCom { get; set; }
  244. /// <summary>
  245. /// 辅流程是否取料判断
  246. /// </summary>
  247. public bool MinorHasTakeMaterial { get; set; }
  248. /// <summary>
  249. /// 存储订单对应流程对象
  250. /// </summary>
  251. public List<StirFryBom> listStirBom=new List<StirFryBom>();
  252. /// <summary>
  253. /// 下配料次数
  254. /// </summary>
  255. public int MaterialCount { get; set; }
  256. /// <summary>
  257. /// 允许执行辅流程标识
  258. /// </summary>
  259. public bool MinorProcessFlag { get; set; }
  260. /// <summary>
  261. /// 辅流程执行状态
  262. /// </summary>
  263. public bool MinorProessStatus { get; set; }
  264. /// <summary>
  265. /// 允许执行主流程标识
  266. /// </summary>
  267. public bool MainProcessFlag { get; set; } = true;
  268. /// <summary>
  269. /// 主流程执行状态
  270. /// </summary>
  271. public bool MainProcessStatus { get; set; } = true;
  272. /// <summary>
  273. /// 当前放锅位置 1:1号锅 2: 2号锅
  274. /// </summary>
  275. public int CurrentPutPotLoc { get; set; }
  276. /// <summary>
  277. /// 主流程所执行的锅位置
  278. /// </summary>
  279. public int MainProcessPotLoc { get; set; }
  280. /// <summary>
  281. /// 辅流程所执行的锅位置
  282. /// </summary>
  283. public int MinorProcessPotLoc { get; set; }
  284. }
  285. }