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

145 rivejä
5.4 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. public static bool HeartBeatFromPlc { get; set; }
  18. /// <summary>
  19. /// 订单取消的状态位
  20. /// </summary>
  21. public static bool Order_Cancel { get; set; }
  22. /// <summary>
  23. /// 订单取消的配方号
  24. /// </summary>
  25. public static string Order_CancelRecipeCode { get; set; } = "";
  26. public static int Order_CancelStep { get; set; }
  27. /// <summary>
  28. /// 第一个配方的配料时间
  29. /// </summary>
  30. public static DateTime DosingRecipe1Time { get; set; }
  31. /// <summary>
  32. /// 第二个配方的配料时间
  33. /// </summary>
  34. public static DateTime DosingRecipe2Time { get; set; }
  35. /// <summary>
  36. /// 第三个配方的配料时间
  37. /// </summary>
  38. public static DateTime DosingRecipe3Time { get; set; }
  39. /// <summary>
  40. /// 第四个配方的配料时间
  41. /// </summary>
  42. public static DateTime DosingRecipe4Time { get; set; }
  43. /// <summary>
  44. /// plc心跳下发
  45. /// </summary>
  46. public static bool HeartBeatToPlc { get; set; }
  47. /// <summary>
  48. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  49. /// </summary>
  50. public static int Recipe1DosingStatus { get; set; }
  51. /// <summary>
  52. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  53. /// </summary>
  54. public static int Recipe2DosingStatus { get; set; }
  55. /// <summary>
  56. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  57. /// </summary>
  58. public static int Recipe3DosingStatus { get; set; }
  59. /// <summary>
  60. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  61. /// </summary>
  62. public static int Recipe4DosingStatus { get; set; }
  63. public static int[] RecipeDosingStatus { get; set; } = new int[4] { 0, 0, 0, 0 };
  64. public static bool[] AllowIssueRecipe { get; set; } = new bool[4] { false, false, false, false };
  65. public static bool[] ReceviceFinishRecipe { get; set; } = new bool[4] { false, false, false, false };
  66. public static bool[] DosingFinishRecipe { get; set; } = new bool[4] { false, false, false, false };
  67. public static bool[] IsTrayArrive { get; set; } = new bool[5] { false, false, false, false,false };
  68. public static DateTime[] RecipeDosingTime { get; set; } = new DateTime[4] { DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now };
  69. /// <summary>
  70. /// 是否处于手动下发配方
  71. /// </summary>
  72. public static bool IsUseLocalRecipe { get; set; } = false;
  73. /// <summary>
  74. /// 洗桶的标识符
  75. /// </summary>
  76. public static bool BarrelWasherSign { get; set; }
  77. /// <summary>
  78. /// 订单请求
  79. /// </summary>
  80. public static bool Order_Request { get; set; } = false;
  81. /// <summary>
  82. /// 下发配方的状态位
  83. /// </summary>
  84. public static int SiemensSendRecipeStatus { get; set; } = 0;
  85. /// <summary>
  86. /// 大料站最大的料仓数目
  87. /// </summary>
  88. public const int Max_DosingSotckBinNum = 14;
  89. public static StockBinName stockBinName { get; set; } = new StockBinName();
  90. /// <summary>
  91. /// 原料的名称和原料编号对应,Mes提供的信息
  92. /// </summary>
  93. public static Dictionary<string, string> RawMaterialsNameCode { get; set; } = new Dictionary<string, string>();
  94. public static ushort AGVPutTray { get; set; }
  95. public static ushort AGVGetTray { get; set; }
  96. public static ushort TraySensor { get; set; }
  97. public static ushort TrayCylinder { get; set; }
  98. public static DB_Read HKPlc_Read = new DB_Read();
  99. /// <summary>
  100. /// 是否连接海科PLC
  101. /// </summary>
  102. public static bool IsAllowHKPlcConnect { get; set; }
  103. /// <summary>
  104. /// 是否连接西门子PLC
  105. /// </summary>
  106. public static bool IsAllowSiemensConnect { get; set; }
  107. /// <summary>
  108. /// 配方1配料完成
  109. /// </summary>
  110. public static bool Recipe1DosingFinish { get; set; } = false;
  111. /// <summary>
  112. /// 配方2配料完成
  113. /// </summary>
  114. public static bool Recipe2DosingFinish { get; set; } = false;
  115. /// <summary>
  116. /// 配方3配料完成
  117. /// </summary>
  118. public static bool Recipe3DosingFinish { get; set; } = false;
  119. /// <summary>
  120. /// 配方4配料完成
  121. /// </summary>
  122. public static bool Recipe4DosingFinish { get; set; } = false;
  123. /// <summary>
  124. /// 订单是否是洗桶
  125. /// </summary>
  126. public static bool Order_IsWashingBarrel { get; set; } = false;
  127. public static int TrayEnable { get; set; } = 15;
  128. }
  129. }