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

179 rivejä
7.0 KiB

  1. using BPASmartClient.JXJFoodBigStation.Model.HK_PLC;
  2. using BPASmartClient.JXJFoodBigStation.Model.Siemens;
  3. using System;
  4. using System.Collections.Concurrent;
  5. using System.Collections.Generic;
  6. using System.Collections.ObjectModel;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPASmartClient.JXJFoodBigStation.Model
  11. {
  12. public class GVL_BigStation
  13. {
  14. /// <summary>
  15. /// plc心跳上传
  16. /// </summary>
  17. [PlcComm("plc心跳上传")]
  18. public static bool HeartBeatFromPlc { get; set; }
  19. /// <summary>
  20. /// 订单取消的状态位
  21. /// </summary>
  22. [PlcComm("订单取消的状态位")]
  23. public static bool Order_Cancel { get; set; }
  24. /// <summary>
  25. /// 订单取消的配方号
  26. /// </summary>
  27. [PlcComm("订单取消的配方号")]
  28. public static string Order_CancelRecipeCode { get; set; } = "";
  29. /// <summary>
  30. /// 订单取消的状态步
  31. /// </summary>
  32. [PlcComm("订单取消的状态步")]
  33. public static int Order_CancelStep { get; set; }
  34. /// <summary>
  35. /// 第一个配方的配料时间
  36. /// </summary>
  37. [PlcComm("第一个配方的配料时间")]
  38. public static DateTime DosingRecipe1Time { get; set; }
  39. /// <summary>
  40. /// 第二个配方的配料时间
  41. /// </summary>
  42. [PlcComm("第二个配方的配料时间")]
  43. public static DateTime DosingRecipe2Time { get; set; }
  44. /// <summary>
  45. /// 第三个配方的配料时间
  46. /// </summary>
  47. [PlcComm("第三个配方的配料时间")]
  48. public static DateTime DosingRecipe3Time { get; set; }
  49. /// <summary>
  50. /// 第四个配方的配料时间
  51. /// </summary>
  52. [PlcComm("第四个配方的配料时间")]
  53. public static DateTime DosingRecipe4Time { get; set; }
  54. /// <summary>
  55. /// plc心跳下发
  56. /// </summary>
  57. [PlcComm("plc心跳下发")]
  58. public static bool HeartBeatToPlc { get; set; }
  59. /// <summary>
  60. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  61. /// </summary>
  62. [PlcComm("配方1下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")]
  63. public static int Recipe1DosingStatus { get; set; }
  64. /// <summary>
  65. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  66. /// </summary>
  67. [PlcComm("配方2下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")]
  68. public static int Recipe2DosingStatus { get; set; }
  69. /// <summary>
  70. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  71. /// </summary>
  72. [PlcComm("配方3下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")]
  73. public static int Recipe3DosingStatus { get; set; }
  74. /// <summary>
  75. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  76. /// </summary>
  77. [PlcComm("配方4下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方")]
  78. public static int Recipe4DosingStatus { get; set; }
  79. public static int[] RecipeDosingStatus { get; set; } = new int[4] { 0, 0, 0, 0 };
  80. public static bool[] AllowIssueRecipe { get; set; } = new bool[4] { false, false, false, false };
  81. public static bool[] ReceviceFinishRecipe { get; set; } = new bool[4] { false, false, false, false };
  82. public static bool[] DosingFinishRecipe { get; set; } = new bool[4] { false, false, false, false };
  83. public static bool[] IsTrayArrive { get; set; } = new bool[5] { false, false, false, false,false };
  84. public static DateTime[] RecipeDosingTime { get; set; } = new DateTime[4] { DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now };
  85. /// <summary>
  86. /// 是否处于手动下发配方
  87. /// </summary>
  88. [PlcComm("是否处于手动下发配方")]
  89. public static bool IsUseLocalRecipe { get; set; } = false;
  90. /// <summary>
  91. /// 洗桶的标识符
  92. /// </summary>
  93. [PlcComm("洗桶的标识符")]
  94. public static bool BarrelWasherSign { get; set; }
  95. /// <summary>
  96. /// 订单请求
  97. /// </summary>
  98. [PlcComm("订单请求")]
  99. public static bool Order_Request { get; set; } = false;
  100. /// <summary>
  101. /// 下发配方的状态位
  102. /// </summary>
  103. [PlcComm("下发配方的状态位")]
  104. public static int SiemensSendRecipeStatus { get; set; } = 0;
  105. /// <summary>
  106. /// 大料站最大的料仓数目
  107. /// </summary>
  108. public const int Max_DosingSotckBinNum = 14;
  109. public static StockBinName stockBinName { get; set; } = new StockBinName();
  110. /// <summary>
  111. /// 原料的名称和原料编号对应,Mes提供的信息
  112. /// </summary>
  113. public static Dictionary<string, string> RawMaterialsNameCode { get; set; } = new Dictionary<string, string>();
  114. [PlcComm("AGV送托盘")]
  115. public static ushort AGVPutTray { get; set; }
  116. [PlcComm("AGV取托盘")]
  117. public static ushort AGVGetTray { get; set; }
  118. [PlcComm("托盘传感器信号")]
  119. public static ushort TraySensor { get; set; }
  120. [PlcComm("托盘气缸信号")]
  121. public static ushort TrayCylinder { get; set; }
  122. public static DB_Read HKPlc_Read = new DB_Read();
  123. /// <summary>
  124. /// 是否连接海科PLC
  125. /// </summary>
  126. [PlcComm("是否连接海科PLC")]
  127. public static bool IsAllowHKPlcConnect { get; set; }
  128. /// <summary>
  129. /// 是否连接西门子PLC
  130. /// </summary>
  131. [PlcComm("是否连接西门子PLC")]
  132. public static bool IsAllowSiemensConnect { get; set; }
  133. /// <summary>
  134. /// 配方1配料完成
  135. /// </summary>
  136. [PlcComm("配方1配料完成")]
  137. public static bool Recipe1DosingFinish { get; set; } = false;
  138. /// <summary>
  139. /// 配方2配料完成
  140. /// </summary>
  141. [PlcComm("配方2配料完成")]
  142. public static bool Recipe2DosingFinish { get; set; } = false;
  143. /// <summary>
  144. /// 配方3配料完成
  145. /// </summary>
  146. [PlcComm("配方3配料完成")]
  147. public static bool Recipe3DosingFinish { get; set; } = false;
  148. /// <summary>
  149. /// 配方4配料完成
  150. /// </summary>
  151. [PlcComm("配方4配料完成")]
  152. public static bool Recipe4DosingFinish { get; set; } = false;
  153. /// <summary>
  154. /// 订单是否是洗桶
  155. /// </summary>
  156. [PlcComm("订单是否是洗桶")]
  157. public static bool Order_IsWashingBarrel { get; set; } = false;
  158. [PlcComm("TrayEnable")]
  159. public static int TrayEnable { get; set; } = 15;
  160. }
  161. }