终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

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