| | |
| | | |
| | | namespace Bro.Common.Model |
| | | { |
| | | public class SimpleMonitorSet : IMonitorSet, IComplexDisplay |
| | | public class MonitorSetBase : IMonitorSet, IComplexDisplay |
| | | { |
| | | [Browsable(false)] |
| | | public string Id { get; set; } = Guid.NewGuid().ToString(); |
| | |
| | | } |
| | | } |
| | | |
| | | public SimpleMonitorSet() { } |
| | | public MonitorSetBase() { } |
| | | |
| | | public virtual string GetDisplayText() |
| | | { |
| | |
| | | /// <summary> |
| | | /// PLC监听设置 |
| | | /// </summary> |
| | | public class MonitorSet : SimpleMonitorSet |
| | | public class PLCMonitorSet : MonitorSetBase |
| | | { |
| | | /// <summary> |
| | | /// 监听地址索引 按照监听地址从0开始的索引 |
| | |
| | | [DisplayName("通知地址")] |
| | | public int NoticeAddress { get; set; } = -1; |
| | | |
| | | public MonitorSet() { } |
| | | public PLCMonitorSet() { } |
| | | |
| | | public override string GetDisplayText() |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 运动板卡监听配置对象 |
| | | /// 运动板卡IO监听配置对象 |
| | | /// </summary> |
| | | public class MotionCardMonitorSet : SimpleMonitorSet |
| | | public class MotionCardMonitorSet : MonitorSetBase |
| | | { |
| | | /// <summary> |
| | | /// 监听类型 |
| | |
| | | [Category("监听设置")] |
| | | [DisplayName("监听类型")] |
| | | [Description("监听运动板卡 IO 类型(IN OUT)")] |
| | | public IOModel MonitorIOModel { get; set; } |
| | | public IOType MonitorIOModel { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 监听地址索引 |