using SqlSugar; using System; namespace WCS.Entity { /// /// WCS_PLC /// [SugarTable(nameof(WCS_PLC), "PLC信息")] public class WCS_PLC : OBJ { [SugarColumn(IsIgnore = true)] [Obsolete] public override int ID { get; set; } /// /// 编号 /// [SugarColumn(IsPrimaryKey = true, ColumnDescription = "编号", Length = 20)] public string CODE { get; set; } /// /// 名称 /// [SugarColumn(ColumnDescription = "名称", Length = 20)] public string NAME { get; set; } /// /// IP /// [SugarColumn(ColumnDescription = "IP", Length = 20)] public string IP { get; set; } /// /// 端口 /// [SugarColumn(ColumnDescription = "端口")] public int PORT { get; set; } = 102; /// /// 插槽号 /// [SugarColumn(ColumnDescription = "插槽号")] public int SLOT { get; set; } /// /// 机架号 /// [SugarColumn(ColumnDescription = "机架号")] public int RACK { get; set; } /// /// 厂商 /// [SugarColumn(ColumnDescription = "厂商")] public PLCType TYPE { get; set; } /// /// 型号 /// [SugarColumn(ColumnDescription = "型号")] public PLCMODEL MODEL { get; set; } } /// /// 设备厂商 /// public enum PLCType { /// /// 西门子 /// Siemens = 1, /// /// 三菱 /// Mitsubishi = 2, /// /// AB /// AB = 3, /// /// 欧姆龙 /// OMRON = 4, /// /// 汇川 /// INOVANCE = 5, } /// /// PLC型号 /// public enum PLCMODEL { #region 西门子 /// /// 1200系列 /// S1200 = 1, /// /// 300系列 /// S300 = 2, /// /// 400系列 /// S400 = 3, /// /// 1500系列PLC /// S1500 = 4, /// /// 200的smart系列 /// S200Smart = 5, /// /// 200系统,需要额外配置以太网模块 /// S200 = 6 #endregion 西门子 } }