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

388 line
15 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.JXJFoodBigStation.Model.Siemens
  7. {
  8. public class SiemensCommAddress
  9. {
  10. #region 配方地址
  11. /// <summary>
  12. /// 配方状态
  13. /// </summary>
  14. public static string RecipeState { get; set; } = "";
  15. /// <summary>
  16. /// 配方名称
  17. /// </summary>
  18. public static string RecipeName { get; set; } = "";
  19. /// <summary>
  20. /// 配方ID
  21. /// </summary>
  22. public static string RecipeID { get; set; } = "";
  23. /// <summary>
  24. /// 原料信息
  25. /// </summary>
  26. public static string RawMaterial { get; set; } = "";
  27. #endregion
  28. #region AGV到位(与西门子PLC交互)西门子PLC ==> 上位机
  29. /// <summary>
  30. /// 托盘的位置编号
  31. /// </summary>
  32. public static string TrayLocationNum { get; set; } = "";
  33. /// <summary>
  34. /// 配方ID
  35. /// </summary>
  36. public static string TrayRecipeID { get; set; } = "";
  37. /// <summary>
  38. /// 状态信号
  39. /// </summary>
  40. public static string StateSign { get; set; } = "";
  41. #endregion
  42. #region Tray配料完成(与西门子PLC交互)上位机 ==> 西门子PLC
  43. public static string TrayLocationNumToSiemens { get; set; } = "";
  44. public static string TrayRecipeIDToSiemens { get; set; } = "";
  45. public static string TrayStateToSiemens { get; set; } = "";
  46. #endregion
  47. /*#region AGV小车进出工站1
  48. /// <summary>
  49. /// Agv送货 进站申请 从西门子读取
  50. /// </summary>
  51. public static string DeliveryAGVApply1 { get; set; } = "";
  52. /// <summary>
  53. /// Agv送货 进站申请 写给西门子
  54. /// </summary>
  55. public static string DeliveryAGVIsApply1 { get; set; } = "";
  56. /// <summary>
  57. /// Agv送货 进站顶升申请 从西门子读取
  58. /// </summary>
  59. public static string DeliveryAGVApplyJack1 { get; set; } = "";
  60. /// <summary>
  61. /// Agv送货 进站顶升申请 写给西门子
  62. /// </summary>
  63. public static string DeliveryAGVIsApplyJack1 { get; set; } = "";
  64. /// <summary>
  65. /// Agv送货 送货完成 从西门子读取
  66. /// </summary>
  67. public static string DeliveryAGVFinsih1{ get; set; } = "";
  68. /// <summary>
  69. /// Agv送货 工位上有货架 写给西门子
  70. /// </summary>
  71. public static string StationHaveCargo1 { get; set; } = "";
  72. /// <summary>
  73. /// Agv送货 进站申请 从西门子读取
  74. /// </summary>
  75. public static string PickAGVApply1 { get; set; } = "";
  76. /// <summary>
  77. /// Agv送货 进站申请 写给西门子
  78. /// </summary>
  79. public static string PickAGVIsApply1 { get; set; } = "";
  80. /// <summary>
  81. /// Agv送货 取货架完成 从西门子读取
  82. /// </summary>
  83. public static string PickCargoAGVFinish1 { get; set; } = "";
  84. /// <summary>
  85. /// Agv送货 取料完成 写给西门子
  86. /// </summary>
  87. public static string PickAGVFinish1 { get; set; } = "";
  88. /// <summary>
  89. /// 工位上是否有小车
  90. /// </summary>
  91. public static string StationIsExistCar1 { get; set; } = "";
  92. #endregion
  93. #region AGV小车进出工站2
  94. /// <summary>
  95. /// Agv送货 进站申请 从西门子读取
  96. /// </summary>
  97. public static string DeliveryAGVApply2 { get; set; } = "";
  98. /// <summary>
  99. /// Agv送货 进站申请 写给西门子
  100. /// </summary>
  101. public static string DeliveryAGVIsApply2 { get; set; } = "";
  102. /// <summary>
  103. /// Agv送货 进站顶升申请 从西门子读取
  104. /// </summary>
  105. public static string DeliveryAGVApplyJack2 { get; set; } = "";
  106. /// <summary>
  107. /// Agv送货 进站顶升申请 写给西门子
  108. /// </summary>
  109. public static string DeliveryAGVIsApplyJack2 { get; set; } = "";
  110. /// <summary>
  111. /// Agv送货 送货完成 从西门子读取
  112. /// </summary>
  113. public static string DeliveryAGVFinsih2 { get; set; } = "";
  114. /// <summary>
  115. /// Agv送货 工位上有货架 写给西门子
  116. /// </summary>
  117. public static string StationHaveCargo2 { get; set; } = "";
  118. /// <summary>
  119. /// Agv送货 进站申请 从西门子读取
  120. /// </summary>
  121. public static string PickAGVApply2 { get; set; } = "";
  122. /// <summary>
  123. /// Agv送货 进站申请 写给西门子
  124. /// </summary>
  125. public static string PickAGVIsApply2 { get; set; } = "";
  126. /// <summary>
  127. /// Agv送货 取货架完成 从西门子读取
  128. /// </summary>
  129. public static string PickCargoAGVFinish2 { get; set; } = "";
  130. /// <summary>
  131. /// Agv送货 取料完成 写给西门子
  132. /// </summary>
  133. public static string PickAGVFinish2 { get; set; } = "";
  134. /// <summary>
  135. /// 工位上是否有小车
  136. /// </summary>
  137. public static string StationIsExistCar2 { get; set; } = "";
  138. #endregion
  139. #region AGV小车进出工站3
  140. /// <summary>
  141. /// Agv送货 进站申请 从西门子读取
  142. /// </summary>
  143. public static string DeliveryAGVApply3 { get; set; } = "";
  144. /// <summary>
  145. /// Agv送货 进站申请 写给西门子
  146. /// </summary>
  147. public static string DeliveryAGVIsApply3 { get; set; } = "";
  148. /// <summary>
  149. /// Agv送货 进站顶升申请 从西门子读取
  150. /// </summary>
  151. public static string DeliveryAGVApplyJack3 { get; set; } = "";
  152. /// <summary>
  153. /// Agv送货 进站顶升申请 写给西门子
  154. /// </summary>
  155. public static string DeliveryAGVIsApplyJack3 { get; set; } = "";
  156. /// <summary>
  157. /// Agv送货 送货完成 从西门子读取
  158. /// </summary>
  159. public static string DeliveryAGVFinsih3 { get; set; } = "";
  160. /// <summary>
  161. /// Agv送货 工位上有货架 写给西门子
  162. /// </summary>
  163. public static string StationHaveCargo3 { get; set; } = "";
  164. /// <summary>
  165. /// Agv送货 进站申请 从西门子读取
  166. /// </summary>
  167. public static string PickAGVApply3 { get; set; } = "";
  168. /// <summary>
  169. /// Agv送货 进站申请 写给西门子
  170. /// </summary>
  171. public static string PickAGVIsApply3 { get; set; } = "";
  172. /// <summary>
  173. /// Agv送货 取货架完成 从西门子读取
  174. /// </summary>
  175. public static string PickCargoAGVFinish3 { get; set; } = "";
  176. /// <summary>
  177. /// Agv送货 取料完成 写给西门子
  178. /// </summary>
  179. public static string PickAGVFinish3 { get; set; } = "";
  180. /// <summary>
  181. /// 工位上是否有小车
  182. /// </summary>
  183. public static string StationIsExistCar3 { get; set; } = "";
  184. #endregion
  185. #region AGV小车进出工站4
  186. /// <summary>
  187. /// Agv送货 进站申请 从西门子读取
  188. /// </summary>
  189. public static string DeliveryAGVApply4 { get; set; } = "";
  190. /// <summary>
  191. /// Agv送货 进站申请 写给西门子
  192. /// </summary>
  193. public static string DeliveryAGVIsApply4 { get; set; } = "";
  194. /// <summary>
  195. /// Agv送货 进站顶升申请 从西门子读取
  196. /// </summary>
  197. public static string DeliveryAGVApplyJack4 { get; set; } = "";
  198. /// <summary>
  199. /// Agv送货 进站顶升申请 写给西门子
  200. /// </summary>
  201. public static string DeliveryAGVIsApplyJack4 { get; set; } = "";
  202. /// <summary>
  203. /// Agv送货 送货完成 从西门子读取
  204. /// </summary>
  205. public static string DeliveryAGVFinsih4 { get; set; } = "";
  206. /// <summary>
  207. /// Agv送货 工位上有货架 写给西门子
  208. /// </summary>
  209. public static string StationHaveCargo4 { get; set; } = "";
  210. /// <summary>
  211. /// Agv送货 进站申请 从西门子读取
  212. /// </summary>
  213. public static string PickAGVApply4 { get; set; } = "";
  214. /// <summary>
  215. /// Agv送货 进站申请 写给西门子
  216. /// </summary>
  217. public static string PickAGVIsApply4 { get; set; } = "";
  218. /// <summary>
  219. /// Agv送货 取货架完成 从西门子读取
  220. /// </summary>
  221. public static string PickCargoAGVFinish4 { get; set; } = "";
  222. /// <summary>
  223. /// Agv送货 取料完成 写给西门子
  224. /// </summary>
  225. public static string PickAGVFinish4 { get; set; } = "";
  226. /// <summary>
  227. /// 工位上是否有小车
  228. /// </summary>
  229. public static string StationIsExistCar4 { get; set; } = "";
  230. #endregion
  231. #region AGV小车进出工站5
  232. /// <summary>
  233. /// Agv送货 进站申请 从西门子读取
  234. /// </summary>
  235. public static string DeliveryAGVApply5 { get; set; } = "";
  236. /// <summary>
  237. /// Agv送货 进站申请 写给西门子
  238. /// </summary>
  239. public static string DeliveryAGVIsApply5 { get; set; } = "";
  240. /// <summary>
  241. /// Agv送货 进站顶升申请 从西门子读取
  242. /// </summary>
  243. public static string DeliveryAGVApplyJack5 { get; set; } = "";
  244. /// <summary>
  245. /// Agv送货 进站顶升申请 写给西门子
  246. /// </summary>
  247. public static string DeliveryAGVIsApplyJack5 { get; set; } = "";
  248. /// <summary>
  249. /// Agv送货 送货完成 从西门子读取
  250. /// </summary>
  251. public static string DeliveryAGVFinsih5 { get; set; } = "";
  252. /// <summary>
  253. /// Agv送货 工位上有货架 写给西门子
  254. /// </summary>
  255. public static string StationHaveCargo5 { get; set; } = "";
  256. /// <summary>
  257. /// Agv送货 进站申请 从西门子读取
  258. /// </summary>
  259. public static string PickAGVApply5 { get; set; } = "";
  260. /// <summary>
  261. /// Agv送货 进站申请 写给西门子
  262. /// </summary>
  263. public static string PickAGVIsApply5 { get; set; } = "";
  264. /// <summary>
  265. /// Agv送货 取货架完成 从西门子读取
  266. /// </summary>
  267. public static string PickCargoAGVFinish5 { get; set; } = "";
  268. /// <summary>
  269. /// Agv送货 取料完成 写给西门子
  270. /// </summary>
  271. public static string PickAGVFinish5 { get; set; } = "";
  272. /// <summary>
  273. /// 工位上是否有小车
  274. /// </summary>
  275. public static string StationIsExistCar5 { get; set; } = "";
  276. #endregion
  277. #region AGV小车进出工站6
  278. /// <summary>
  279. /// Agv送货 进站申请 从西门子读取
  280. /// </summary>
  281. public static string DeliveryAGVApply6 { get; set; } = "";
  282. /// <summary>
  283. /// Agv送货 进站申请 写给西门子
  284. /// </summary>
  285. public static string DeliveryAGVIsApply6 { get; set; } = "";
  286. /// <summary>
  287. /// Agv送货 进站顶升申请 从西门子读取
  288. /// </summary>
  289. public static string DeliveryAGVApplyJack6 { get; set; } = "";
  290. /// <summary>
  291. /// Agv送货 进站顶升申请 写给西门子
  292. /// </summary>
  293. public static string DeliveryAGVIsApplyJack6 { get; set; } = "";
  294. /// <summary>
  295. /// Agv送货 送货完成 从西门子读取
  296. /// </summary>
  297. public static string DeliveryAGVFinsih6 { get; set; } = "";
  298. /// <summary>
  299. /// Agv送货 工位上有货架 写给西门子
  300. /// </summary>
  301. public static string StationHaveCargo6 { get; set; } = "";
  302. /// <summary>
  303. /// Agv送货 进站申请 从西门子读取
  304. /// </summary>
  305. public static string PickAGVApply6 { get; set; } = "";
  306. /// <summary>
  307. /// Agv送货 进站申请 写给西门子
  308. /// </summary>
  309. public static string PickAGVIsApply6 { get; set; } = "";
  310. /// <summary>
  311. /// Agv送货 取货架完成 从西门子读取
  312. /// </summary>
  313. public static string PickCargoAGVFinish6 { get; set; } = "";
  314. /// <summary>
  315. /// Agv送货 取料完成 写给西门子
  316. /// </summary>
  317. public static string PickAGVFinish6 { get; set; } = "";
  318. /// <summary>
  319. /// 工位上是否有小车
  320. /// </summary>
  321. public static string StationIsExistCar6 { get; set; } = "";
  322. #endregion*/
  323. #region AGV进出站
  324. /// <summary>
  325. /// Agv送货 进站申请
  326. /// </summary>
  327. public static string DeliveryAGVApply { get; set; } = "M4002";
  328. /// <summary>
  329. /// Agv送货 进站申请
  330. /// </summary>
  331. public static string DeliveryAGVIsApply { get; set; } = "M5002";
  332. /// <summary>
  333. /// Agv送货 进站顶升申请
  334. /// </summary>
  335. public static string DeliveryAGVApplyJack { get; set; } = "M4004";
  336. /// <summary>
  337. /// Agv送货 进站顶升申请
  338. /// </summary>
  339. public static string DeliveryAGVIsApplyJack { get; set; } = "M5004";
  340. /// <summary>
  341. /// Agv送货 送货完成
  342. /// </summary>
  343. public static string DeliveryAGVFinsih { get; set; } = "M4005";
  344. /// <summary>
  345. /// Agv送货 工位上有货架
  346. /// </summary>
  347. public static string StationHaveCargo { get; set; } = "M5005";
  348. /// <summary>
  349. /// Agv送货 进站申请
  350. /// </summary>
  351. public static string PickAGVApply { get; set; } = "M4003";
  352. /// <summary>
  353. /// Agv送货 进站申请
  354. /// </summary>
  355. public static string PickAGVIsApply { get; set; } = "M5003";
  356. /// <summary>
  357. /// Agv送货 取货架完成
  358. /// </summary>
  359. public static string PickCargoAGVFinish { get; set; } = "M4006";
  360. /// <summary>
  361. /// Agv送货 取料完成
  362. /// </summary>
  363. public static string PickAGVFinish { get; set; } = "M5006";
  364. /// <summary>
  365. /// 工位上是否有小车
  366. /// </summary>
  367. public static string StationIsExistCar { get; set; } = "M4007";
  368. #endregion
  369. }
  370. public class RecipeRawMaterial
  371. {
  372. /// <summary>
  373. /// 原料对应的桶号
  374. /// </summary>
  375. public int[] RawMaterialBarrelNum = new int[15];
  376. /// <summary>
  377. /// 需要原料重量
  378. /// </summary>
  379. public double[] RawMaterialWeight = new double[15];
  380. /// <summary>
  381. /// 原料对应料仓的位置
  382. /// </summary>
  383. public int[] RawMaterialLocation = new int[15];
  384. }
  385. }