using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HBLConsole.Model
{
public class Siemens : TcpDeviceBase
{
public Siemens()
{
Init();
}
///
/// 插槽号
///
public int Slot { get; set; } = 0;
///
/// 机架号
///
public int Rack { get; set; } = 0;
///
/// PLC 类型
///
public string PlcType { get; set; }
public ObservableCollection PlcTypes { get; set; } = new ObservableCollection();
private void Init()
{
PlcTypes.Clear();
foreach (var item in Enum.GetNames(typeof(ESiemensPlcType)))
{
PlcTypes.Add(item.Substring(1));
}
}
}
}