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

42 lines
1.6 KiB

  1. using BPASmartClient.Helper;
  2. using BPASmartClient.Modbus;
  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.JXJFoodSmallStation.Model.HK_PLC
  10. {
  11. public class DataComm
  12. {
  13. public volatile static DataComm Instance;
  14. public static DataComm GetInstance => Instance ?? (new DataComm());
  15. public DataComm() { }
  16. /// <summary>
  17. /// 是否允许配料
  18. /// </summary>
  19. public bool IsAllowDosing { get { return _mIsAllowDosing; } set { _mIsAllowDosing = value; } }
  20. private bool _mIsAllowDosing;
  21. public bool DosingFinishToPLC { get { return _mDosingFinishToPLC; } set { _mDosingFinishToPLC = value; } }
  22. private bool _mDosingFinishToPLC;
  23. private int _mStockBinLocationToPLC;
  24. public int StockBinLocationToPLC { get { return _mStockBinLocationToPLC; } set { _mStockBinLocationToPLC = value; } }
  25. public bool StatusSignToBPA { get { return _mStatusSignToBPA; } set { _mStatusSignToBPA = value; } }
  26. private bool _mStatusSignToBPA;
  27. private int _mStockBinLocationToBPA;
  28. public int StockBinLocationToBPA { get { return _mStockBinLocationToBPA; } set { _mStockBinLocationToBPA = value; } }
  29. private int _mBarrelNumToPLC;
  30. public int BarrelNumToPLC { get { return _mBarrelNumToPLC; } set { _mBarrelNumToPLC = value; } }
  31. /*public ConcurrentDictionary<int, StockBinLocations> DeviceLists = new ConcurrentDictionary<int, StockBinLocations>();*/
  32. }
  33. }