终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

190 lignes
5.8 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.MorkF
  10. {
  11. internal class GVL_MorkF
  12. {
  13. /// <summary>
  14. /// 小炒队列
  15. /// </summary>
  16. public ConcurrentQueue<OrderLocInfo> StirFryGoodsQuenes = new ConcurrentQueue<OrderLocInfo>();
  17. public bool IsAuto = true;
  18. #region 炒锅
  19. /// <summary>
  20. /// 炒锅上一次搅拌档位
  21. /// </summary>
  22. public int Stir { set; get; }
  23. /// <summary>
  24. /// 炒锅上一次火力
  25. /// </summary>
  26. public int Fire { get; set; }
  27. /// <summary>
  28. /// 炒锅是否在工作状态中
  29. /// </summary>
  30. public bool FryWorking { get; set; }
  31. /// <summary>
  32. /// 炒锅自动模式
  33. /// </summary>
  34. [VariableMonitor("炒锅1锅低温度", "VW120", "160")]
  35. public bool AutoMode { get; set; }
  36. /// <summary>
  37. /// 炒锅1初始化完成
  38. /// </summary>
  39. public bool FryPot1_InitialComplete { get; set; }
  40. /// <summary>
  41. /// 炒锅1允许HBOT放盒
  42. /// </summary>
  43. public bool FryPot1_HOBTPut { get; set; }
  44. /// <summary>
  45. /// 炒锅1允许HBOT取盒
  46. /// </summary>
  47. public bool FryPot1_HOBTGet { get; set; }
  48. /// <summary>
  49. /// 往炒锅倒菜完成
  50. /// </summary>
  51. public bool FryPot1_MaterialIntoPot { get; set; }
  52. /// <summary>
  53. /// 出餐完成
  54. /// </summary>
  55. public bool OutFoodCompelete { get; set; }
  56. /// <summary>
  57. /// 允许出餐倒菜
  58. /// </summary>
  59. public bool CanOutFood { get; set; }
  60. /// <summary>
  61. /// 窗口取餐完成
  62. /// </summary>
  63. public bool GetFoodCompelete { set; get; }
  64. /// <summary>
  65. /// 允许倒洗锅水
  66. /// </summary>
  67. public bool CanOutPotWashingWater { get; set; }
  68. /// <summary>
  69. /// 搅拌臂在原点位
  70. /// </summary>
  71. public bool ArmOnOrigin { get; set; }
  72. /// <summary>
  73. /// 搅拌臂在工作位
  74. /// </summary>
  75. public bool ArmOnWorking { get; set; }
  76. /// <summary>
  77. /// 锅在原点位
  78. /// </summary>
  79. public bool PotOnOrigin { get; set; }
  80. /// <summary>
  81. /// 获取菜品是否完成
  82. /// </summary>
  83. public bool GetMaterialComplete { get; set; }
  84. #endregion
  85. #region 调料通道
  86. public bool PassWay1_1Compelete { get; set; }
  87. public bool PassWay1_2Compelete { get; set; }
  88. public bool PassWay1_3Compelete { get; set; }
  89. public bool PassWay1_4Compelete { get; set; }
  90. public bool PassWay1_5Compelete { get; set; }
  91. public bool PassWay1_6Compelete { get; set; }
  92. public bool PassWay1_7Compelete { get; set; }
  93. public bool PassWay1_8Compelete { get; set; }
  94. public bool PassWay1_9Compelete { get; set; }
  95. public bool PassWay1_10Compelete { get; set; }
  96. public bool PassWay1_11Compelete { get; set; }
  97. public bool PassWay1_12Compelete { get; set; }
  98. public bool PassWay1_13Compelete { get; set; }
  99. public bool PassWay1_14Compelete { get; set; }
  100. public Dictionary<int, bool> PassWay1_Compelete = new Dictionary<int, bool>();
  101. #endregion
  102. public GVL_MorkF()
  103. {
  104. PassWay1_Compelete.Add(1,PassWay1_1Compelete);
  105. PassWay1_Compelete.Add(2,PassWay1_2Compelete);
  106. PassWay1_Compelete.Add(3,PassWay1_3Compelete);
  107. PassWay1_Compelete.Add(4,PassWay1_4Compelete);
  108. PassWay1_Compelete.Add(5,PassWay1_5Compelete);
  109. PassWay1_Compelete.Add(6,PassWay1_6Compelete);
  110. PassWay1_Compelete.Add(7,PassWay1_7Compelete);
  111. PassWay1_Compelete.Add(8,PassWay1_8Compelete);
  112. PassWay1_Compelete.Add(9,PassWay1_9Compelete);
  113. PassWay1_Compelete.Add(10,PassWay1_10Compelete);
  114. PassWay1_Compelete.Add(11,PassWay1_11Compelete);
  115. PassWay1_Compelete.Add(12,PassWay1_12Compelete);
  116. PassWay1_Compelete.Add(13,PassWay1_13Compelete);
  117. PassWay1_Compelete.Add(14,PassWay1_14Compelete);
  118. }
  119. /// <summary>
  120. /// 订单取配料队列
  121. /// </summary>
  122. public ConcurrentQueue<OrderLocInfo> TakeMaterialQueue = new ConcurrentQueue<OrderLocInfo>();
  123. /// <summary>
  124. /// 订单供盘队列
  125. /// </summary>
  126. public ConcurrentQueue<OrderLocInfo> TakePlateQueue = new ConcurrentQueue<OrderLocInfo>();
  127. #region 单口锅逻辑变量
  128. /// <summary>
  129. /// 订单唯一ID
  130. /// </summary>
  131. public string CurrentOrderId { get; set; }
  132. #endregion
  133. public Dictionary<int,string> StartPassWay { get; set; } = new Dictionary<int, string>()
  134. {
  135. {1,"LB24" },
  136. {2,"LB25" },
  137. {3,"LB26" },
  138. {4,"LB27" },
  139. {5,"LB28" },
  140. {6,"LB29" },
  141. {7,"LB30" },
  142. {8,"LB31" },
  143. {9,"LB32" },
  144. {10,"LB33" },
  145. {11,"LB34" },
  146. {12,"LB35" },
  147. {13,"LB36" },
  148. {14,"LB37" },
  149. };
  150. public Dictionary<int, string> PassWayValue { get; set; } = new Dictionary<int, string>()
  151. {
  152. {1,"LW0" },
  153. {2,"LW1" },
  154. {3,"LW2" },
  155. {4,"LW3" },
  156. {5,"LW4" },
  157. {6,"LW5" },
  158. {7,"LW6" },
  159. {8,"LW7" },
  160. {9,"LW8" },
  161. {10,"LW9" },
  162. {11,"LW10" },
  163. {12,"LW11" },
  164. {13,"LW12" },
  165. {14,"LW13" },
  166. };
  167. }
  168. }