终端一体化运控平台
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

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