终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

358 rindas
11 KiB

  1. using BPASmartClient.Device;
  2. using BPASmartClient.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.MorkSUpgradedVer
  10. {
  11. public class GVL_MorkSUpgradedVer : IStatus
  12. {
  13. #region 临时变量
  14. /// <summary>
  15. /// 允许运行
  16. /// </summary>
  17. [VariableMonitor("允许运行")]
  18. public bool AllowRun { get; set; }
  19. /// <summary>
  20. /// 优先级判断
  21. /// </summary>
  22. [VariableMonitor("优先级判断条件")]
  23. public bool PriorityJudgment { get; set; }
  24. /// <summary>
  25. /// 机器人任务互锁信号,false:取面,true:出餐
  26. /// </summary>
  27. [VariableMonitor("机器人任务互锁信号")]
  28. public bool RobotTaskInterlock { get; set; }
  29. /// <summary>
  30. /// 取碗互锁信号
  31. /// </summary>
  32. [VariableMonitor("取碗互锁信号")]
  33. public bool TakeBowlInterlock { get; set; }
  34. /// <summary>
  35. /// 取面互锁信号
  36. /// </summary>
  37. [VariableMonitor("取面互锁信号")]
  38. public bool TakeNoodleInterlock { get; set; }
  39. /// <summary>
  40. /// 出面中
  41. /// </summary>
  42. [VariableMonitor("出面中")]
  43. public bool OutNoodleing { get; set; }
  44. /// <summary>
  45. /// 允许取面
  46. /// </summary>
  47. [VariableMonitor("允许取面")]
  48. public bool AllowTakeNoodle { get; set; }
  49. /// <summary>
  50. /// 转台互锁信号
  51. /// </summary>
  52. [VariableMonitor("转台互锁信号")]
  53. public bool TurntableInterlock { get; set; }
  54. /// <summary>
  55. /// 机器人出餐互锁
  56. /// </summary>
  57. [VariableMonitor("机器人出餐互锁")]
  58. public bool RobotOutDinnigLock { get; set; }
  59. /// <summary>
  60. /// 煮面炉状态,True:忙碌,false:空闲
  61. /// </summary>
  62. [VariableMonitor("煮面炉状态")]
  63. public bool[] NoodleCookerStatus { get; set; } = new bool[6];
  64. /// <summary>
  65. /// 转台当前启动位置
  66. /// </summary>
  67. [VariableMonitor("转台当前启动位置")]
  68. public ushort CurrentLoc { get; set; } = 0;
  69. /// <summary>
  70. /// 制作完成标志
  71. /// </summary>
  72. [VariableMonitor("制作完成标志")]
  73. public bool CookCompleteFlatBit { get; set; }
  74. /// <summary>
  75. /// 取碗任务数量
  76. /// </summary>
  77. [VariableMonitor("取碗任务数量")]
  78. public int TakeBowlTaskCount { get; set; }
  79. /// <summary>
  80. /// 取面任务数量
  81. /// </summary>
  82. [VariableMonitor("取面任务数量")]
  83. public int RBTakeNoodleTaskCount { get; set; }
  84. #endregion
  85. #region 列表数据
  86. /// <summary>
  87. /// 机器人取面位置队列
  88. /// </summary>
  89. public ConcurrentQueue<OrderLocInfo> RBTakeNoodleTask { get; set; } = new ConcurrentQueue<OrderLocInfo>();
  90. /// <summary>
  91. /// 出碗队列
  92. /// </summary>
  93. public ConcurrentQueue<OrderLocInfo> TakeBowlTask { get; set; } = new ConcurrentQueue<OrderLocInfo>();
  94. public List<DoOrderEvent> doOrderEvents { get; set; } = new List<DoOrderEvent>();
  95. public ConcurrentDictionary<string, DoOrderEvent> doe { get; set; } = new ConcurrentDictionary<string, DoOrderEvent>();
  96. public List<string> HistorySuborderId { get; set; } = new List<string>();
  97. public NoodleShidModel[] nsm { get; set; } = new NoodleShidModel[6] { new NoodleShidModel(), new NoodleShidModel(), new NoodleShidModel(), new NoodleShidModel(), new NoodleShidModel(), new NoodleShidModel() };
  98. #endregion
  99. #region 订单ID记录
  100. /// <summary>
  101. /// 取碗订单ID
  102. /// </summary>
  103. public string TakeBowlId { get; set; } = string.Empty;
  104. /// <summary>
  105. /// 取碗订单名称
  106. /// </summary>
  107. public string TakeBowName { get; set; } = string.Empty;
  108. /// <summary>
  109. /// 取碗完成订单排序号
  110. /// </summary>
  111. public int TakeBowSortNum { get; set; } = 0;
  112. /// <summary>
  113. /// 允许倒面位置ID
  114. /// </summary>
  115. public string IngredientsCompleteId { get; set; } = string.Empty;
  116. /// <summary>
  117. /// 配料完成订单名称
  118. /// </summary>
  119. public string IngredientsCompleteName { get; set; } = string.Empty;
  120. /// <summary>
  121. /// 配料完成订单排序号
  122. /// </summary>
  123. public int IngredientsCompleteSortNum { get; set; } = 0;
  124. /// <summary>
  125. /// 煮面口对应的订单ID
  126. /// </summary>
  127. public string[] CookNodelId { get; set; } = new string[6] { string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, };
  128. /// <summary>
  129. /// 出餐订单ID
  130. /// </summary>
  131. public string OutMealId { get; set; } = string.Empty;
  132. /// <summary>
  133. /// 出餐订单名称
  134. /// </summary>
  135. public string OutMealName { get; set; } = string.Empty;
  136. /// <summary>
  137. /// 出餐排序号
  138. /// </summary>
  139. public int OutMealSortNum { get; set; } = 0;
  140. /// <summary>
  141. /// 转台位置轮询
  142. /// </summary>
  143. public List<ushort> TurntableLocLists { get; set; } = new List<ushort>();
  144. #endregion
  145. #region device Data
  146. /// <summary>
  147. /// 初始化启动
  148. /// </summary>
  149. [VariableMonitor("初始化启动", "M0.0", "320")]
  150. public bool InitStart { get; set; }
  151. /// <summary>
  152. /// 初始化完成
  153. /// </summary>
  154. [VariableMonitor("初始化完成", "M0.1", "321")]
  155. public bool InitComplete { get; set; }
  156. /// <summary>
  157. /// 移碗丝杆初始化完成
  158. /// </summary>
  159. [VariableMonitor("移碗丝杆初始化完成", "M0.2", "322")]
  160. public bool MoveScrewRodInitCom { get; set; }
  161. /// <summary>
  162. /// 供碗1初始化完成
  163. /// </summary>
  164. [VariableMonitor("供碗1初始化完成", "M0.3", "323")]
  165. public bool SacrificialVesselInitCom { get; set; }
  166. /// <summary>
  167. /// 气缸推杆初始化完成
  168. /// </summary>
  169. [VariableMonitor("气缸推杆初始化完成", "M0.4", "324")]
  170. public bool CylinderInitCom { get; set; }
  171. /// <summary>
  172. /// 煮面机初始化完成
  173. /// </summary>
  174. [VariableMonitor("煮面机初始化完成", "M0.5", "325")]
  175. public bool NoodleCookerInitCom { get; set; }
  176. /// <summary>
  177. /// 机器人初始化完成
  178. /// </summary>
  179. [VariableMonitor("机器人初始化完成", "M0.6", "326")]
  180. public bool RobotInitCom { get; set; }
  181. /// <summary>
  182. /// 料仓初始化完成
  183. /// </summary>
  184. [VariableMonitor("料仓初始化完成", "M0.7", "327")]
  185. public bool SiloInitCom { get; set; }
  186. /// <summary>
  187. /// 故障复位/停止
  188. /// </summary>
  189. [VariableMonitor("故障复位/停止", "M1.0", "328")]
  190. public bool FaultResetOrStop { get; set; }
  191. /// <summary>
  192. /// 落碗1,大碗
  193. /// </summary>
  194. [VariableMonitor("落碗1,大碗", "M9.0", "392")]
  195. public bool DropBowlOne { get; set; }
  196. /// <summary>
  197. /// 落碗2,一次性碗
  198. /// </summary>
  199. [VariableMonitor("落碗2,一次性碗", "M9.1", "393")]
  200. public bool DropBowlTow { get; set; }
  201. /// <summary>
  202. /// 允许倒面
  203. /// </summary>
  204. [VariableMonitor("允许倒面", "M10.0", "400")]
  205. public bool AllowInvertedFace { get; set; }
  206. /// <summary>
  207. /// 出餐完成
  208. /// </summary>
  209. [VariableMonitor("出餐完成", "M10.1", "401")]
  210. public bool DiningComplete { get; set; }
  211. /// <summary>
  212. /// 落碗机构状态,1:忙碌 0:空闲
  213. /// </summary>
  214. [VariableMonitor("落碗机构状态,1:忙碌 0:空闲", "M10.4", "404")]
  215. public bool DropBowlMechanismStatus { get; set; }
  216. /// <summary>
  217. /// 定位标志,1:忙碌 0:空闲
  218. /// </summary>
  219. [VariableMonitor("定位标志,1:忙碌 0:空闲", "M12.2", "418")]
  220. public bool FixedFlag { get; set; }
  221. /// <summary>
  222. /// 定位启动
  223. /// </summary>
  224. [VariableMonitor("定位启动", "M12.3", "419")]
  225. public bool FixedStart { get; set; }
  226. /// <summary>
  227. /// 料仓到位
  228. /// </summary>
  229. [VariableMonitor("料仓到位", "M13.5", "429")]
  230. public bool SiloInPlace { get; set; }
  231. /// <summary>
  232. /// 机器人料仓取面完成
  233. /// </summary>
  234. [VariableMonitor("机器人去料仓取面完成", "M16.7", "455")]
  235. public bool RobotTakeNoodleCom { get; set; }
  236. /// <summary>
  237. /// 机器人状态
  238. /// </summary>
  239. [VariableMonitor("机器人状态", "M17.4", "460")]
  240. public bool RobotStatus { get; set; }
  241. /// <summary>
  242. /// 一次性碗有无检测
  243. /// </summary>
  244. [VariableMonitor("一次性碗有无检测", "M18.0", "464")]
  245. public bool SmallBowlYesOrNoCheck { get; set; }
  246. /// <summary>
  247. /// 大碗有无检测
  248. /// </summary>
  249. [VariableMonitor("大碗有无检测", "M18.1", "465")]
  250. public bool LargeBowYesOrNoCheck { get; set; }
  251. /// <summary>
  252. /// 转台高位
  253. /// </summary>
  254. [VariableMonitor("转台高位", "M18.2", "466")]
  255. public bool TurntableHighPosition { get; set; }
  256. /// <summary>
  257. /// 转台低位
  258. /// </summary>
  259. [VariableMonitor("转台低位", "M18.3", "467")]
  260. public bool TurntableLowPosition { get; set; }
  261. /// <summary>
  262. /// 煮面完成
  263. /// </summary>
  264. [VariableMonitor("煮面完成")]
  265. public bool[] CookNoodleCom { get; set; } = new bool[6];
  266. /// <summary>
  267. /// 本地/远程
  268. /// </summary>
  269. [VariableMonitor("本地/远程")]
  270. public bool LocalOrRemote { get; set; }
  271. /// <summary>
  272. /// 温度到达
  273. /// </summary>
  274. [VariableMonitor("温度到达")]
  275. public bool TemperatureReaches { get; set; }
  276. /// <summary>
  277. /// 加热中
  278. /// </summary>
  279. [VariableMonitor("加热中")]
  280. public bool Heating { get; set; }
  281. /// <summary>
  282. /// 转台当前位置
  283. /// </summary>
  284. [VariableMonitor("转台当前位置", "VW770", "870")]
  285. public ushort CurrentFeedbackLoc { get; set; }
  286. /// <summary>
  287. /// 补料完成
  288. /// </summary>
  289. [VariableMonitor("补料完成", "M101.6", "1134")]
  290. public bool FeedComplete { get; set; }
  291. /// <summary>
  292. /// 补料中
  293. /// </summary>
  294. [VariableMonitor("补料中", "M102.6", "1142")]
  295. public bool Feeding { get; set; }
  296. #endregion
  297. }
  298. }