WCS_PLC.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading;
  7. using WCS.Data;
  8. using WCS.Data.Models;
  9. namespace WCS_Client.Frm
  10. {
  11. public class WCS_PLC
  12. {
  13. #region 属性
  14. [SugarColumn(IsPrimaryKey = true)]
  15. public string PLC_NAME { get; set; }
  16. public string PLC_IP { get; set; }
  17. public string PLC_EQUIPMENTTYPE { get; set; }
  18. public bool PLC_ISENABLE { get; set; }
  19. public bool PLC_CONNECTSTATUS { get; set; }
  20. public int PLC_PORT { get; set; }
  21. public int PLC_SLOT { get; set; }
  22. public int PLC_RACK { get; set; }
  23. /// <summary>
  24. /// WCS系统
  25. /// </summary>
  26. public string PLC_WCSSYSTEM { get; set; }
  27. public string PLC_NOTES { get; set; }
  28. //DB集合
  29. public List<WCS_DBDEFINITION> WCS_DBSet = new List<WCS_DBDEFINITION>();
  30. //扫描的条码集合
  31. [SugarColumn(IsIgnore = true)]
  32. public List<WCS_SCANN> WCS_ScannSet { get; set; }
  33. //设备信号集合
  34. [SugarColumn(IsIgnore = true)]
  35. public List<WCS_SC521> WCS_EquipmentInfoSet { get; set; }
  36. #endregion;
  37. #region 函数
  38. public void Init()
  39. {
  40. foreach (var item in WCS_DBSet)
  41. {
  42. item.DB_EQUDATA = new byte[item.DB_TOLLENGTH];
  43. }
  44. }
  45. #endregion;
  46. }
  47. }