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

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