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

65 lines
1.5 KiB

  1. using BPASmart.VariableManager.Enums;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. namespace BPASmart.VariableManager.Models
  10. {
  11. public class Siemens : ICommunicationDevice
  12. {
  13. //public Siemens()
  14. //{
  15. // Init();
  16. //}
  17. /// <summary>
  18. /// 显示/隐藏设置
  19. /// </summary>
  20. //public Visibility SiemensVisible { get; set; } = Visibility.Collapsed;
  21. /// <summary>
  22. /// IP地址
  23. /// </summary>
  24. public string IP { get; set; } = "192.168.0.1";
  25. /// <summary>
  26. /// 插槽号
  27. /// </summary>
  28. public int Slot { get; set; } = 0;
  29. /// <summary>
  30. /// 机架号
  31. /// </summary>
  32. public int Rack { get; set; } = 0;
  33. /// <summary>
  34. /// 端口号,默认 102
  35. /// </summary>
  36. public int PortNum { get; set; } = 102;
  37. /// <summary>
  38. /// PLC 类型
  39. /// </summary>
  40. public string PlcType { get; set; }
  41. //public ObservableCollection<string> PlcTypes { get; set; } = new ObservableCollection<string>();
  42. //private void Init()
  43. //{
  44. // PlcTypes.Clear();
  45. // foreach (var item in Enum.GetNames(typeof(ESiemensPlcType)))
  46. // {
  47. // PlcTypes.Add(item.Substring(1));
  48. // }
  49. //}
  50. }
  51. }