终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

110 Zeilen
3.7 KiB

  1. using BPASmartClient.JXJFoodSmallStation.Model.Siemens;
  2. using System;
  3. using System.Collections.Concurrent;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPASmartClient.JXJFoodSmallStation.Model
  10. {
  11. public class GVL_SmallStation
  12. {
  13. private volatile static GVL_SmallStation SmallStation;
  14. public static GVL_SmallStation GetInstance => SmallStation ?? (SmallStation = new GVL_SmallStation());
  15. private GVL_SmallStation() { }
  16. public bool HeartBeatToPlc { get; set; } = false;
  17. public bool HeartBeatFromPlc { get; set; } = false;
  18. /// <summary>
  19. /// 是否允许西门子下发配方
  20. /// </summary>
  21. public bool IsAllowSiemensSendRecipe;
  22. /// <summary>
  23. /// 往输送带下发配方完成
  24. /// </summary>
  25. public bool IssueRecipeFinishStation1 { get; set; } = false;
  26. /// <summary>
  27. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  28. /// </summary>
  29. public int RecipeStatusID { get; set; } = 0;
  30. /// <summary>
  31. /// Tray1的柔性味魔方配料标志(下发配方时,若柔性味魔方的状态=3,复位该状态)
  32. /// </summary>
  33. public bool DosingTray1 { get; set; } = true;//默认为true,初始时,判断柔性味魔方的状态。
  34. /// <summary>
  35. /// Tray2的柔性味魔方配料标志
  36. /// </summary>
  37. public bool DosingTray2 { get; set; } = true;
  38. public int DosingTray1Loc { get; set; } = 0;
  39. public int DosingTray2Loc { get; set; } = 0;
  40. /// <summary>
  41. /// 配方下发状态 =0:配方未下发 ,1:配方下发给plc ,2:plc成功接收配方
  42. /// </summary>
  43. public int RecipeStatusIDTray2 { get; set; } = 0;
  44. /// <summary>
  45. /// 往输送带下发配方完成
  46. /// </summary>
  47. public bool IssueRecipeFinishStation2 { get; set; } = false;
  48. public bool IsAllow { get; set; } = false;
  49. public bool IsAllowOut { set; get; } = false;
  50. /// <summary>
  51. /// 当前料仓的位置
  52. /// </summary>
  53. public int StockInIsWork { get; set; } = 0;
  54. /// <summary>
  55. /// 单个配方执行完成标志
  56. /// </summary>
  57. public bool RecipeFinish { get; set; } = false;
  58. /// <summary>
  59. /// 记录AGV进站送货的指令顺序
  60. /// </summary>
  61. public int AgvDeliveryPosition { get; set; }= 0;
  62. /// <summary>
  63. /// 记录AGV进站取货的指令顺序
  64. /// </summary>
  65. public int AgvPickUpPosition { get; set; } = 0;
  66. /// <summary>
  67. /// 是否使用粉仓
  68. /// </summary>
  69. public bool IsUseWindSend;
  70. /// <summary>
  71. /// 风送配料完成标志
  72. /// </summary>
  73. public bool WindSendDosingFinish;
  74. /// <summary>
  75. /// 是否占用托盘1
  76. /// </summary>
  77. public bool IsOccupationTray1 { get; set; } = true;
  78. /// <summary>
  79. /// 是否占用托盘2
  80. /// </summary>
  81. public bool IsOccupationTray2 { get; set; } = true;
  82. /// <summary>
  83. /// 顶升气缸的信号
  84. /// </summary>
  85. public bool[] Cylinder_JackInfo = new bool[15];
  86. #region 本地模拟配方
  87. /// <summary>
  88. /// 是否使用本地模拟配方
  89. /// </summary>
  90. public bool IsUseLocalRecipe { get; set; }
  91. /// <summary>
  92. /// 是否使用本地模拟订单+风送配方
  93. /// </summary>
  94. public bool IsUseWindSendDosing { get; set; }
  95. #endregion
  96. }
  97. }