using Bro.Common.Base; using Bro.Common.Helper; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bro.Device.OmronFins { [Device("OmronFins", "欧姆龙PLC-Fins通讯", EnumHelper.DeviceAttributeType.OperationConfig)] [Serializable] public class OmronFinsOperationConfig : PLCOperationConfigBase { [ConfigOutputResource("OutputResultCommon")] public override int ResultOutput { get; set; } public int StartAddress { get; set; } public int OpLength { get; set; } public List OpValues { get; set; } } public class OmronFinsDeviceConfig : PLCDeviceConfigBase { } [DefaultProperty("DNA")] public class OmronFinsInitialConfig : PLCInitialConfigBase { /// /// PLC网络号 /// [Description("PLC网络号")] [Category("通信设置-PLC")] [Browsable(false)] public byte DNA { get; set; } = 0; /// /// PLC节点号 /// [Description("PLC节点号")] [Category("通信设置-PLC")] [Browsable(false)] public byte DA1 { get; set; } = 1; /// /// PLC单元号 /// [Description("PLC单元号")] [Category("通信设置-PLC")] [Browsable(false)] public byte DA2 { get; set; } = 0; /// /// PLC监听端口 /// [Description("PLC IP地址")] [Category("通信设置-PLC")] public string PLCIpAddress { get; set; } /// /// PLC监听端口 /// [Description("PLC监听端口")] [Category("通信设置-PLC")] public int PLCPort { get; set; } = 9600; /// /// PC网络号 /// [Description("PC网络号")] [Category("通信设置-本机")] [Browsable(false)] public byte SNA { get; set; } = 0; /// /// PC节点号 /// [Description("PC节点号")] [Category("通信设置-本机")] [Browsable(false)] public byte SA1 { get; set; } = 10; /// /// PC单元号 /// [Description("PC单元号")] [Category("通信设置-本机")] [Browsable(false)] public byte SA2 { get; set; } = 0; } public class OmronFinsInputConfig : PLCInputConfigBase { } }