终端一体化运控平台
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.
 
 
 

339 lines
13 KiB

  1. using BPASmartClient.Device;
  2. using BPASmartClient.MorkBF.Model;
  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.MorkBF
  10. {
  11. internal class GVL_MorkBF : IStatus
  12. {
  13. /// <summary>
  14. /// 炒锅1订单队列
  15. /// </summary>
  16. public ConcurrentQueue<BF_Food> FirePan1_Order { get; set; } = new ConcurrentQueue<BF_Food>();
  17. /// <summary>
  18. /// 炒锅2订单队列
  19. /// </summary>
  20. public ConcurrentQueue<BF_Food> FirePan2_Order { get; set; } = new ConcurrentQueue<BF_Food>();
  21. /// <summary>
  22. /// 炒锅1忙碌
  23. /// </summary>
  24. public bool FirePan1_Busy = false;
  25. /// <summary>
  26. /// 炒锅2忙碌
  27. /// </summary>
  28. public bool FirePan2_Busy = false;
  29. #region 炒锅1读取数据
  30. /// <summary>
  31. /// 炒锅1锅低温度
  32. /// </summary>
  33. [VariableMonitor("炒锅1锅低温度", "VW120","160")]
  34. public int FirePot1_Temperature { get; set; }
  35. /// <summary>
  36. /// 炒锅1脉冲值
  37. /// </summary>
  38. [VariableMonitor("炒锅1脉冲值", "VW122", "161")]
  39. public int FirePot1_Pulse { get; set; }
  40. /// <summary>
  41. /// 炒锅1初始化完成
  42. /// </summary>
  43. [VariableMonitor("炒锅1初始化完成", "M20.0", "480")]
  44. public bool FirePot1_InitCompleted { get; set; } = false;
  45. /// <summary>
  46. /// 炒锅1手动自动模式
  47. /// </summary>
  48. [VariableMonitor("炒锅1手动自动模式", "M20.1", "481")]
  49. public bool FirePot1_IsAuto { get; set; }
  50. /// <summary>
  51. /// 炒锅1急停
  52. /// </summary>
  53. [VariableMonitor("炒锅1急停", "M20.2", "482")]
  54. public bool FirePot1_Emergencystop{ get; set; }
  55. /// <summary>
  56. /// 1#炒锅荤菜盆有无检测
  57. /// </summary>
  58. [VariableMonitor("1#炒锅1锅低温度", "M20.3", "483")]
  59. public bool FirePot1_MealTubExist{ get; set; }
  60. /// <summary>
  61. /// 1#炒锅素菜盆1有无检测
  62. /// </summary>
  63. [VariableMonitor("炒锅素菜盆1有无检测", "M20.4", "484")]
  64. public bool FirePot1_VegetablesTub1Exist{ get; set; }
  65. /// <summary>
  66. /// 1#炒锅素菜盆2有无检测
  67. /// </summary>
  68. [VariableMonitor("1#炒锅素菜盆2有无检测", "M20.5", "485")]
  69. public bool FirePot1_VegetablesTub2Exist{ get; set; }
  70. /// <summary>
  71. /// 1#炒锅调料盆1有无检测
  72. /// </summary>
  73. [VariableMonitor("1#炒锅调料盆1有无检测", "M20.6", "486")]
  74. public bool FirePot1_Seasoning1Exist{ get; set; }
  75. /// <summary>
  76. /// 1#炒锅调料盆2有无检测
  77. /// </summary>
  78. [VariableMonitor("1#炒锅调料盆2有无检测", "M20.7", "487")]
  79. public bool FirePot1_Seasoning2Exist{ get; set; }
  80. /// <summary>
  81. /// 1#炒锅辅料盆1有无检测
  82. /// </summary>
  83. [VariableMonitor("1#炒锅辅料盆1有无检测", "M21.0", "488")]
  84. public bool FirePot1_Accessories1Exist{ get; set; }
  85. /// <summary>
  86. /// 1#炒锅辅料盆2有无检测
  87. /// </summary>
  88. [VariableMonitor("1#炒锅辅料盆2有无检测", "M21.1", "489")]
  89. public bool FirePot1_Accessories2Exist{ get; set; }
  90. /// <summary>
  91. /// 1#炒锅出餐空盆有无检测
  92. /// </summary>
  93. [VariableMonitor("1#炒锅出餐空盆有无检测", "M21.2", "490")]
  94. public bool FirePot1_OutFoodTubExist{ get; set; }
  95. /// <summary>
  96. /// 1#炒锅在原点反馈
  97. /// </summary>
  98. [VariableMonitor("1#炒锅在原点反馈", "M21.3", "491")]
  99. public bool FirePot1_OnOrigin{ get; set; }
  100. /// <summary>
  101. /// 1#炒制位置1反馈
  102. /// </summary>
  103. [VariableMonitor("1#炒制位置1反馈", "M21.4", "492")]
  104. public bool FirePot1_FirePosition1{ get; set; }
  105. /// <summary>
  106. /// 1#炒制位置2反馈
  107. /// </summary>
  108. [VariableMonitor("1#炒制位置2反馈", "M21.5", "493")]
  109. public bool FirePot1_FirePosition2{ get; set; }
  110. /// <summary>
  111. /// 1#炒制位置3反馈
  112. /// </summary>
  113. [VariableMonitor("1#炒制位置3反馈", "M21.6", "494")]
  114. public bool FirePot1_FirePosition3{ get; set; }
  115. /// <summary>
  116. /// 1#炒制位置4反馈
  117. /// </summary>
  118. [VariableMonitor("1#炒制位置4反馈", "M21.7", "495")]
  119. public bool FirePot1_FirePosition4{ get; set; }
  120. /// <summary>
  121. /// 1#炒锅在出餐倒料位置反馈
  122. /// </summary>
  123. [VariableMonitor("1#炒锅在出餐倒料位置反馈", "M22.0", "496")]
  124. public bool FirePot1_PotOnOutFoodPosition{ get; set; }
  125. /// <summary>
  126. /// 1#炒锅在投料位置反馈、
  127. /// </summary>
  128. [VariableMonitor("1#炒锅在投料位置反馈", "M22.1", "497")]
  129. public bool FirePot1_PotOnIntoFoodPosition{ get; set; }
  130. /// <summary>
  131. /// 1#炒锅在洗锅位置反馈
  132. /// </summary>
  133. [VariableMonitor("1#炒锅在洗锅位置反馈", "M22.2", "498")]
  134. public bool FirePot1_PotOnCleanPosition{ get; set; }
  135. #endregion
  136. #region 炒锅2读取数据
  137. /// <summary>
  138. /// 炒锅2锅低温度
  139. /// </summary>
  140. [VariableMonitor("炒锅2锅低温度", "VW150", "175")]
  141. public int FirePot2_Temperature{ get; set; }
  142. /// <summary>
  143. /// 炒锅2脉冲值
  144. /// </summary>
  145. [VariableMonitor("炒锅2脉冲值", "VW152", "176")]
  146. public int FirePot2_Pulse{ get; set; }
  147. /// <summary>
  148. /// 炒锅2初始化完成
  149. /// </summary>
  150. [VariableMonitor("炒锅2初始化完成", "M25.0", "520")]
  151. public bool FirePot2_InitCompleted { get; set; } = false;
  152. /// <summary>
  153. /// 炒锅2手动自动模式
  154. /// </summary>
  155. [VariableMonitor("炒锅2手动自动模式", "M25.1", "521")]
  156. public bool FirePot2_IsAuto{ get; set; }
  157. /// <summary>
  158. /// 炒锅2急停
  159. /// </summary>
  160. [VariableMonitor("炒锅2急停", "M25.2", "522")]
  161. public bool FirePot2_Emergencystop{ get; set; }
  162. /// <summary>
  163. /// 2#炒锅荤菜盆有无检测
  164. /// </summary>
  165. [VariableMonitor("2#炒锅荤菜盆有无检测", "M25.3", "523")]
  166. public bool FirePot2_MealTubExist{ get; set; }
  167. /// <summary>
  168. /// 2#炒锅素菜盆1有无检测
  169. /// </summary>
  170. [VariableMonitor("2#炒锅素菜盆1有无检测", "M25.4", "524")]
  171. public bool FirePot2_VegetablesTub1Exist{ get; set; }
  172. /// <summary>
  173. /// 2#炒锅素菜盆2有无检测
  174. /// </summary>
  175. [VariableMonitor("2#炒锅素菜盆2有无检测", "M25.5", "525")]
  176. public bool FirePot2_VegetablesTub2Exist{ get; set; }
  177. /// <summary>
  178. /// 2#炒锅调料盆1有无检测
  179. /// </summary>
  180. [VariableMonitor("2#炒锅调料盆1有无检测", "M25.6", "526")]
  181. public bool FirePot2_Seasoning1Exist{ get; set; }
  182. /// <summary>
  183. /// 2#炒锅调料盆2有无检测
  184. /// </summary>
  185. [VariableMonitor("2#炒锅调料盆2有无检测", "M25.7", "527")]
  186. public bool FirePot2_Seasoning2Exist{ get; set; }
  187. /// <summary>
  188. /// 2#炒锅辅料盆1有无检测
  189. /// </summary>
  190. [VariableMonitor("2#炒锅1锅低温度", "M26.0", "528")]
  191. public bool FirePot2_Accessories1Exist{ get; set; }
  192. /// <summary>
  193. /// 2#炒锅辅料盆2有无检测
  194. /// </summary>
  195. [VariableMonitor("2#炒锅辅料盆2有无检测", "M26.1", "529")]
  196. public bool FirePot2_Accessories2Exist{ get; set; }
  197. /// <summary>
  198. /// 2#炒锅出餐空盆有无检测
  199. /// </summary>
  200. [VariableMonitor("2#炒锅出餐空盆有无检测", "M26.2", "530")]
  201. public bool FirePot2_OutFoodTubExist{ get; set; }
  202. /// <summary>
  203. /// 2#炒锅在原点反馈
  204. /// </summary>
  205. [VariableMonitor("2#炒锅在原点反馈", "M26.3", "531")]
  206. public bool FirePot2_OnOrigin{ get; set; }
  207. /// <summary>
  208. /// 2#炒制位置1反馈
  209. /// </summary>
  210. [VariableMonitor("2#炒制位置1反馈", "M26.4", "532")]
  211. public bool FirePot2_FirePosition1{ get; set; }
  212. /// <summary>
  213. /// 2#炒制位置2反馈
  214. /// </summary>
  215. [VariableMonitor("2#炒制位置2反馈", "M26.5", "533")]
  216. public bool FirePot2_FirePosition2{ get; set; }
  217. /// <summary>
  218. /// 2#炒制位置3反馈
  219. /// </summary>
  220. [VariableMonitor("2#炒制位置3反馈", "M26.6", "534")]
  221. public bool FirePot2_FirePosition3{ get; set; }
  222. /// <summary>
  223. /// 2#炒制位置4反馈
  224. /// </summary>
  225. [VariableMonitor("2#炒制位置4反馈", "M26.7", "535")]
  226. public bool FirePot2_FirePosition4{ get; set; }
  227. /// <summary>
  228. /// 2#炒锅在出餐倒料位置反馈
  229. /// </summary>
  230. [VariableMonitor("2#炒锅在出餐倒料位置反馈", "M27.0", "536")]
  231. public bool FirePot2_PotOnOutFoodPosition{ get; set; }
  232. /// <summary>
  233. /// 2#炒锅在投料位置反馈、
  234. /// </summary>
  235. [VariableMonitor("2#炒锅在投料位置反馈", "M27.1", "537")]
  236. public bool FirePot2_PotOnIntoFoodPosition{ get; set; }
  237. /// <summary>
  238. /// 2#炒锅在洗锅位置反馈
  239. /// </summary>
  240. [VariableMonitor("2#炒锅在洗锅位置反馈", "M27.2", "538")]
  241. public bool FirePot2_PotOnCleanPosition{ get; set; }
  242. #endregion
  243. #region 机器人数据读取
  244. /// <summary>
  245. /// 1号锅倒荤菜完成
  246. /// </summary>
  247. [VariableMonitor("1号锅倒荤菜完成", "GM500", "4596")]
  248. public bool Robot_FirePot1OutMeal{ get; set; }
  249. /// <summary>
  250. /// 1号炒锅倒素菜1完成
  251. /// </summary>
  252. [VariableMonitor("1号炒锅倒素菜1完成", "GM501", "4597")]
  253. public bool Robot_FirePot1OutVegetables1{ get; set; }
  254. /// <summary>
  255. /// 1号炒锅倒素菜2完成
  256. /// </summary>
  257. [VariableMonitor("1号炒锅倒素菜2完成", "GM502", "4598")]
  258. public bool Robot_FirePot1OutVegetables2{ get; set; }
  259. /// <summary>
  260. /// 1号炒锅倒调料完成
  261. /// </summary>
  262. [VariableMonitor("1号炒锅倒调料完成", "GM503", "4599")]
  263. public bool Robot_FirePot1OutSeasoning{ get; set; }
  264. /// <summary>
  265. /// 1号炒锅倒辅料完成
  266. /// </summary>
  267. [VariableMonitor("1号炒锅倒辅料完成", "GM504", "4600")]
  268. public bool Robot_FirePot1OutAccessories{ get; set; }
  269. /// <summary>
  270. /// 机器人到位,请求1#炒锅倒菜
  271. /// </summary>
  272. [VariableMonitor("机器人到位,请求1#炒锅倒菜", "GM505", "4601")]
  273. public bool Robot_ArriveFirePot1{ get; set; }
  274. /// <summary>
  275. /// 1号炒锅出餐完成
  276. /// </summary>
  277. [VariableMonitor("1号炒锅出餐完成", "GM506", "4602")]
  278. public bool Robot_FirePot1OutFoodComplete{ get; set; }
  279. /// <summary>
  280. /// 2号锅倒荤菜完成
  281. /// </summary>
  282. [VariableMonitor("2号锅倒荤菜完成", "GM510", "4606")]
  283. public bool Robot_FirePot2OutMeal { get; set; }
  284. /// <summary>
  285. /// 2号炒锅倒素菜1完成
  286. /// </summary>
  287. [VariableMonitor("2号炒锅倒素菜1完成", "GM511", "4607")]
  288. public bool Robot_FirePot2OutVegetables1{ get; set; }
  289. /// <summary>
  290. /// 2号炒锅倒素菜2完成
  291. /// </summary>
  292. [VariableMonitor("2号炒锅倒素菜2完成", "GM512", "4608")]
  293. public bool Robot_FirePot2OutVegetables2{ get; set; }
  294. /// <summary>
  295. /// 2号炒锅倒调料完成
  296. /// </summary>
  297. [VariableMonitor("2号炒锅倒调料完成", "GM513", "4609")]
  298. public bool Robot_FirePot2OutSeasoning{ get; set; }
  299. /// <summary>
  300. /// 2号炒锅倒辅料完成
  301. /// </summary>
  302. [VariableMonitor("2号炒锅倒辅料完成", "GM514", "4610")]
  303. public bool Robot_FirePot2OutAccessories{ get; set; }
  304. /// <summary>
  305. /// 机器人到位,请求1#炒锅倒菜
  306. /// </summary>
  307. [VariableMonitor("机器人到位,请求1#炒锅倒菜", "GM515", "4611")]
  308. public bool Robot_ArriveFirePot2{ get; set; }
  309. /// <summary>
  310. /// 2号炒锅出餐完成
  311. /// </summary>
  312. [VariableMonitor("2号炒锅出餐完成", "GM516", "4612")]
  313. public bool Robot_FirePot2OutFoodComplete{ get; set; }
  314. /// <summary>
  315. /// 机器人动作反馈
  316. /// </summary>
  317. [VariableMonitor("机器人动作反馈", "GI5", "5")]
  318. public int Robot_ActionCallback{ get; set; }
  319. #endregion
  320. public DateTime FirePan1_Date;
  321. public DateTime FirePan2_Date;
  322. }
  323. }