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.
|
- using BPASmart.VariableManager.Enums;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
-
- namespace BPASmart.VariableManager.Models
- {
- public class Siemens : ICommunicationDevice
- {
- //public Siemens()
- //{
- // Init();
- //}
-
- /// <summary>
- /// 显示/隐藏设置
- /// </summary>
- //public Visibility SiemensVisible { get; set; } = Visibility.Collapsed;
-
- /// <summary>
- /// IP地址
- /// </summary>
- public string IP { get; set; } = "192.168.0.1";
-
- /// <summary>
- /// 插槽号
- /// </summary>
- public int Slot { get; set; } = 0;
-
- /// <summary>
- /// 机架号
- /// </summary>
- public int Rack { get; set; } = 0;
-
- /// <summary>
- /// 端口号,默认 102
- /// </summary>
- public int PortNum { get; set; } = 102;
-
- /// <summary>
- /// PLC 类型
- /// </summary>
- public string PlcType { get; set; }
-
- //public ObservableCollection<string> PlcTypes { get; set; } = new ObservableCollection<string>();
-
- //private void Init()
- //{
- // PlcTypes.Clear();
- // foreach (var item in Enum.GetNames(typeof(ESiemensPlcType)))
- // {
- // PlcTypes.Add(item.Substring(1));
- // }
- //}
-
-
- }
-
-
- }
|