using Bro.Common.Base; using Bro.Common.Base.UI; using Bro.Common.Helper; using Bro.Common.Interface; using System.Collections.Generic; using System.ComponentModel; namespace SchneiderPLC_ModbusTcp { [Device("SchneiderPLC", "施耐德PLC", EnumHelper.DeviceAttributeType.OperationConfig)] public class SchneiderOperationConfig : PLCOperationConfigBase { public int StartAddress { get; set; } public int OpLength { get; set; } public List OpValues { get; set; } } [Device("SchneiderPLC", "施耐德PLC", EnumHelper.DeviceAttributeType.InitialConfig)] public class SchneiderInitialConfig : PLCInitialConfigBase { [Category("PLC设置")] [Description("PLCIP地址")] [DisplayName("PLC IP")] public string PLCIpAddress { get; set; } [Category("PLC设置")] [Description("PLC端口号")] [DisplayName("PLC端口")] [DefaultValue(502)] public int PLCPort { get; set; } = 502; [Category("PLC设置")] [Description("PLC节点号")] [DisplayName("PLC节点")] public int PLCUnitNum { get; set; } = 1; } [Device("SchneiderPLC", "施耐德PLC", EnumHelper.DeviceAttributeType.RunCtrl)] public class SchneiderPLCRunCtrl : CtrlPLCRunBase { public SchneiderPLCRunCtrl(IDevice device) : base(device) { } } }